* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.08rem;
}

.logo-mark {
  display: flex;
  align-items: center;
}

.logo-mark img {
  height: 54px;
  width: auto;
}

.logo-text {
  color: #222;
  text-decoration: none;
}

.logo-text:hover {
  color: #005eb8;
  text-decoration: none;
}

.logo-text:focus {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: #005eb8;
}

.hero {
  min-height: 430px;
  background:
    linear-gradient(rgba(0, 40, 80, 0.55), rgba(0, 40, 80, 0.55)),
    url("assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* Se non hai ancora un'immagine hero.jpg, il sito funziona comunque.
   Puoi caricarla poi in assets/images/hero.jpg */

.hero-overlay {
  padding: 40px 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: 3px;
  font-weight: 800;
}

.hero h2 {
  margin: 10px 0 0;
  font-size: clamp(1.4rem, 4vw, 3rem);
  letter-spacing: 2px;
  font-weight: 600;
}

.section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 64px 60px;
}

.page-title {
  padding-bottom: 18px;
}

.membership-content {
  padding-top: 0;
}

.intro {
  text-align: left;
}

.main-logo {
  display: block;
  max-width: 240px;
  margin: 0 auto 36px;
}

.welcome {
  font-size: 1.25rem;
}

h3 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #003b73;
}

h4 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #003b73;
}

.two-column {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-card,
.card,
.event-card,
.person {
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.info-card {
  padding: 48px;
}

.button {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 22px;
  background: #005eb8;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
}

.button:hover {
  background: #003b73;
}

.inline-box {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid #6fa1d1;
  border-radius: 4px;
  background: #eaf4ff;
  color: #003b73;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.2;
}

.underlined-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.initiatives {
  text-align: center;
}

.page-links {
  margin-top: 48px;
  text-align: left;
}

.page-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 34px;
  margin-top: 28px;
}

.page-link-card {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  color: #003b73;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 24px 48px;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.page-link-card span,
.page-link-card h4 {
  display: block;
  margin: 0;
  line-height: 1;
  color: #003b73;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
  margin-top: 28px;
}

.card {
  padding: 48px;
  color: #222;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.events {
  background: #f7f9fc;
}

.events > h3,
.events > .event-card,
.events > .upcoming-list,
.events > .page-links {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.upcoming-list .event-card:first-child {
  margin-top: 24px;
}

.empty-state {
  margin: 24px 0 0;
  color: #666;
  font-weight: 600;
}

.event-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin-top: 24px;
  background: white;
  overflow: hidden;
}

.event-card.no-flyer {
  grid-template-columns: 120px minmax(0, 1fr);
}

.event-card.no-flyer .event-content {
  border-right: 0;
}

.event-date {
  background: #005eb8;
  color: white;
  text-align: center;
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-date .day {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 6px;
}

.event-meta {
  color: #666;
  font-weight: 600;
}

.seminar-speaker {
  margin-top: -4px;
  color: #555;
  font-weight: 600;
}

.seminar-speaker strong {
  color: #222;
}

.event-link {
  margin-top: -8px;
  font-weight: 700;
}

.event-link a {
  color: #005eb8;
}

.event-abstracts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e4e4e4;
}

.event-abstracts h5 {
  margin: 0 0 18px;
  color: #003b73;
  font-size: 1.1rem;
}

.event-abstract {
  margin-top: 18px;
}

.event-abstract-speaker {
  margin-bottom: 4px;
  color: #666;
  font-weight: 700;
}

.event-abstract h6 {
  margin: 0 0 10px;
  color: #003b73;
  font-size: 1rem;
}

.event-content {
  padding: 48px;
  border-right: 1px solid #e4e4e4;
}

.event-flyer {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: pointer;
}

.event-flyer img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e4e4e4;
  background: #f7f9fc;
}

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

.person {
  padding: 44px;
}

.person h4 {
  margin: 0;
  line-height: 1.2;
}

.person p {
  margin-bottom: 0;
}

.past-committee-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #005eb8;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.past-committee-card h4 {
  margin: 0;
  color: white !important;
}

.past-committee-card:hover {
  background: #003b73;
  transform: translateY(-2px);
}

.committee-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.committee-year {
  padding: 28px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.committee-year h4 {
  margin: 0 0 18px;
}

.committee-year ul {
  margin: 0;
  padding-left: 20px;
}

.committee-year li {
  margin-top: 8px;
}

.committee-year li:first-child {
  margin-top: 0;
}

.committee-year strong {
  color: #003b73;
}

.logo-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.logo-link-card {
  min-height: 150px;
  padding: 44px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  color: #003b73;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  gap: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.logo-link-card-dark {
  background: #003b73;
  color: white;
}

.logo-link-card img {
  max-height: 72px;
  max-width: 100%;
}

.contact {
  border-top: 1px solid #e5e5e5;
}

.contact a {
  color: #005eb8;
}

footer {
  text-align: center;
  padding: 28px;
  background: #003b73;
  color: white;
}

footer p {
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
}

.social-link {
  width: 44px;
  height: 44px;
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}

.social-facebook {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.85rem;
}

.social-youtube {
  font-size: 1.35rem;
  padding-left: 2px;
}

@media (max-width: 800px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    gap: 12px;
  }

  .two-column,
  .cards,
  .page-link-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .event-date {
    max-width: 120px;
  }

  .section {
    padding: 48px 34px;
  }

  .info-card,
  .card,
  .event-content,
  .person,
  .logo-link-card {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-content {
    border-right: 0;
    border-bottom: 1px solid #e4e4e4;
  }

  .event-date {
    max-width: none;
  }
}
