:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #18212b;
  --muted: #5f6b76;
  --border: #dbe3ec;
  --accent: #0b4f8a;
  --accent-dark: #083a65;
  --accent-soft: #edf5fb;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  --radius-lg: 22px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #7cb6e6;
  outline-offset: 3px;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 0 0 14px 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  color: var(--text);
}

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

.brand-logo {
  width: 60px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 340px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
}

.site-nav .lang-switch {
  color: var(--accent);
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.menu-toggle:focus-visible {
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.hero,
.page-hero {
  padding: 6.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  margin-bottom: 1.25rem;
}

.hero-copy h1 {
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.lead {
  font-size: 1.35rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 0;
  line-height: 1.7;
}

p,
li {
  font-size: 1.05rem;
}

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

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
}

.hero-panel,
.card,
.register-box,
.profile-card,
.member-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 2rem;
}

.glance-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.glance-list li + li {
  margin-top: 0.45rem;
}

.section {
  padding: 4.5rem 0;
}

section[id] {
  scroll-margin-top: 6rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 2rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

.card-accent {
  background: var(--accent-soft);
  border-color: #cfe0ef;
}

.steps {
  padding-left: 1.25rem;
}

.register-box {
  margin-top: 2rem;
  padding: 2rem;
}

.profile-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
}

.profile-card + .profile-card {
  margin-top: 1.25rem;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 44%;
  border-radius: 18px;
  display: block;
}

.profile-photo-paolo {
  object-position: center 2%;
}

.profile-content p {
  margin-top: 0;
}

.profile-label {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.profile-role {
  color: var(--muted);
  font-weight: 600;
  margin-top: -0.2rem;
  margin-bottom: 1rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.member-card {
  overflow: hidden;
}

.member-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.member-content {
  padding: 1.5rem;
}

.member-content h3 {
  margin-bottom: 0.4rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

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

.paper-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.paper-meta {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.paper-item p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.paper-links a {
  font-weight: 600;
}

.faq-item {
  padding: 1.25rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
}

.footer-grid p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 1rem;
}

.footer-secondary-link {
  color: var(--muted);
}

.footer-secondary-link:hover {
  color: var(--accent);
}

@media (max-width: 960px) {
  .hero-grid,
  .card-grid-3,
  .footer-grid,
  .profile-card,
  .members-grid,
  .paper-list {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .brand {
    gap: 0.7rem;
  }

  .brand-logo {
    width: 50px;
  }

  .brand-text {
    font-size: 0.75rem;
    max-width: 220px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .page-hero {
    padding: 4rem 0 3rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}
