*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #2c2c2c;
  background: #fafafa;
}

/* --- Header / Hero --- */

header {
  background: #1a1a1a;
  color: #f5f5f5;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

header .dates {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

header blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: #d4d4d4;
  max-width: 32em;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Medaglia hero banner --- */

.medaglia-hero {
  background: linear-gradient(135deg, #5a0a0a, #7a1a1a, #5a0a0a);
  color: #f5f0e8;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.medaglia-hero .medal-icon {
  font-size: 3rem;
  margin-bottom: 0.6rem;
}

.medaglia-hero h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  color: #f5deb3;
}

.medaglia-hero .medal-year {
  font-size: 0.95rem;
  color: #d4b896;
  margin-bottom: 1.2rem;
}

.medaglia-hero .motivazione {
  max-width: 38rem;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.8;
  font-size: 1rem;
  color: #f0ece4;
}

/* --- Main content --- */

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Bio sections --- */

.bio-section {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.bio-section:last-of-type {
  border-bottom: none;
}

.bio-section h2 {
  font-size: 1.3rem;
  color: #7a1a1a;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.bio-section p {
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
}

.bio-section p:last-child {
  margin-bottom: 0;
}

/* --- Inline figures (images/video between text) --- */

.inline-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.inline-figure img {
  width: 100%;
  max-width: 32rem;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.inline-figure img:hover {
  opacity: 0.9;
}

.inline-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

/* --- Video --- */

.video-section {
  margin: 1.5rem 0;
  text-align: center;
  padding: 1.5rem 0;
}

.video-section .video-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a1a1a;
  margin-bottom: 0.3rem;
}

.video-section .video-title {
  font-size: 1.1rem;
  color: #555;
  font-style: italic;
  margin-bottom: 1rem;
}

.video-section video {
  width: 100%;
  max-width: 38rem;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  background: #000;
}

/* --- Lightbox (CSS-only) --- */

.lightbox-link {
  display: inline-block;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
  padding: 1rem;
}

.lightbox-overlay:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: 300;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #ccc;
  font-size: 0.95rem;
  font-style: italic;
}

/* --- Footer --- */

footer {
  background: #1a1a1a;
  color: #999;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 2rem;
}

footer strong {
  color: #ccc;
}

/* --- Responsive --- */

@media (min-width: 600px) {
  header h1 {
    font-size: 2.5rem;
  }

  header blockquote {
    font-size: 1.15rem;
  }

  .medaglia-hero h2 {
    font-size: 1.6rem;
  }

  .medaglia-hero .motivazione {
    font-size: 1.05rem;
  }
}
