* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f4f1;
  color: #252525;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: #315d78;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #cfcfc9;
}

.header-inner {
  width: 1080px;
  max-width: calc(100% - 32px);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #222;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.brand-subtitle {
  color: #777;
  font-size: 13px;
  margin-top: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.main-nav a {
  color: #333;
  font-size: 14px;
}

.main-nav a:hover {
  color: #315d78;
  text-decoration: none;
}

main {
  width: 1080px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.hero {
  margin: 32px 0 42px;
  margin-top: 80px;
  background: #fff;
  border: 1px solid #d2d2cd;
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 390px;
}

.hero-image {
  min-height: 390px;
  overflow: hidden;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: contain;
}
.hero-text {
  padding: 34px 38px;
}

h1, h2, h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
  color: #222;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 22px;
}

h2 {
  font-size: 28px;
  border-bottom: 1px solid #c9c9c3;
  padding-bottom: 8px;
  margin: 0 0 25px;
}

h3 {
  font-size: 21px;
  margin: 4px 0 8px;
}

.hero-text p {
  margin: 0 0 16px;
}

.competences {
  padding-top: 4px;
}

.content-section {
  margin: 0 0 52px;
}

.news-item {
  background: #fff;
  border: 1px solid #d2d2cd;
  padding: 23px 27px;
  margin-bottom: 18px;
}

.news-date {
  color: #777;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.news-item h3 {
  margin-top: 7px;
}

.news-item p {
  margin-bottom: 8px;
}

.news-with-image {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 26px;
  align-items: center;
}

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

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.person-card {
  background: #fff;
  border: 1px solid #d2d2cd;
}

.person-photo {
  height: 230px;
  background: #e3e3de;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  width: 105px;
  height: 105px;
  border: 1px solid #bdbdb6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-family: Georgia, serif;
  font-size: 24px;
}

.person-info {
  padding: 18px 20px 20px;
}

.person-period {
  color: #777;
  font-size: 13px;
  margin-bottom: 10px;
}

.person-info p {
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: #fff;
  border: 1px solid #d2d2cd;
  padding: 22px;
  min-height: 180px;
}

.project-card h3 {
  margin-top: 0;
}

.project-card p {
  min-height: 72px;
}

.resource-list {
  border-top: 1px solid #d2d2cd;
}

.resource-list a {
  display: block;
  background: #fff;
  border: 1px solid #d2d2cd;
  border-top: 0;
  padding: 16px 20px;
  color: #252525;
}

.resource-list a:hover {
  background: #fafafa;
  text-decoration: none;
}

.resource-list strong {
  display: block;
  color: #315d78;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
}

.resource-list span {
  color: #666;
  font-size: 14px;
}

footer {
  margin-top: 70px;
  border-top: 1px solid #c9c9c3;
  background: #e9e9e4;
  color: #666;
  padding: 26px max(16px, calc((100% - 1080px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .header-inner {
    width: 100%;
    min-height: 0;
    padding: 15px 0;
    align-items: flex-start;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .main-nav {
    gap: 14px;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 3px;
  }

  .main-nav a {
    font-size: 13px;
  }

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

  .hero-image,
  .hero-image img {
    min-height: 250px;
    height: 250px;
  }

  .hero-text {
    padding: 25px;
  }

  .news-with-image,
  .people-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

html {
  /* Sostituisci 80px con l'altezza esatta del tuo header */
  scroll-padding-top: 80px; 
  scroll-behavior: smooth; /* Opzionale: rende lo scorrimento fluido */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Altezza dell'header */
  z-index: 1000; /* Mantiene l'header sopra i contenuti */
}