/* Stile del programma del convegno Fon.ca.ne.sa. */
:root {
  --blue: #173f7d;
  --blue-dark: #102e5e;
  --blue-light: #eaf2fb;
  --ink: #1d2b40;
  --muted: #5d6b7d;
  --line: #d8e2ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 16px;
  color: var(--ink);
  background: #edf2f7;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
}

.page {
  width: min(900px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(19, 47, 82, .14);
}

/*header {
  padding: 34px 42px 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), #2d65a5);
}*/

.foundation {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: .045em;
}

.ets { font-size: .38em; vertical-align: super; letter-spacing: .02em; }

.subtitle {
  max-width: 720px;
  margin: 7px auto 0;
  font-size: .95rem;
  letter-spacing: .025em;
}

.legal { margin: 8px auto 0; font-size: .78rem; opacity: .88; }

.mission {
  max-width: 690px;
  margin: 16px auto 0;
  font-size: .9rem;
  font-style: italic;
  opacity: .96;
}

.hero {
  padding: 30px 28px 26px;
  text-align: center;
  background: linear-gradient(180deg, #f4f8fd, #e5effa);
}

.eyebrow-40 { margin: 0 0 4px; color: var(--blue); font-size: 1.3rem; font-style: italic; }

.h1-40 {
  margin: 0!important;
  color: var(--blue-dark)!important;
  font-size: clamp(2.5rem, 7vw, 4.8rem)!important;
  line-height: 1.02!important;
  font-weight: 700!important;
}

.theme {
  margin: 10px 0 0;
  color: var(--blue);
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  font-weight: 700;
}

.date-band {
  padding: 12px 18px;
  color: #fff;
  background: var(--blue);
  text-align: center;
  font-size: clamp(1.25rem, 3.5vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
}

.venue {
  padding: 18px 20px 22px;
  text-align: center;
  color: var(--blue-dark);
  background: #f7faff;
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
}

.venue span { display: block; font-size: 1.08rem; font-weight: 600; }

.poster-link {
  display: block;
  max-width: 390px;
  margin: 24px auto 0;
  padding: 0 16px;
  color: var(--blue);
  text-align: center;
  text-decoration: none;
}

.poster-link img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d6e1ee;
  box-shadow: 0 5px 18px rgba(16, 46, 94, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}

.poster-link:hover img,
.poster-link:focus-visible img {
  transform: scale(1.015);
  box-shadow: 0 9px 24px rgba(16, 46, 94, .24);
}

.poster-caption {
  display: block;
  margin-top: 9px;
  font: 600 .9rem Arial, sans-serif;
}

main { padding: 26px 38px 34px; }

.program-title {
  margin: 0 0 20px;
  color: var(--blue-dark);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: Arial, sans-serif;
  font-size: .9rem;
}

.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.session { min-width: 0; }

.item-40 {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 0 0 14px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.time {
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.talk strong {
  display: block;
  color: #172b49;
  font-size: 1rem;
  line-height: 1.25;
}

.speaker {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .94rem;
    font-weight: bold;
}

.moderator {
  margin: -4px 0 14px 66px;
  color: var(--muted);
  font-size: .92rem;
  font-style: italic;
}

.break .talk strong { color: var(--blue); }

footer {
  padding: 16px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1c4e8c, #2e70b5);
  font-family: Arial, sans-serif;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: .06em;
}

footer a { color: inherit; text-decoration: none; }

.note {
  margin: 0;
  padding: 12px 20px 18px;
  color: #667487;
  background: #fff;
  text-align: center;
  font: .75rem Arial, sans-serif;
}

@media (max-width: 680px) {
  body { padding: 0; background: #fff; }
  .page { box-shadow: none; }
  header { padding: 26px 18px 22px; }
  main { padding: 24px 20px; }
  .schedule { grid-template-columns: 1fr; gap: 0; }
  .session + .session { margin-top: 4px; }
  .item-40 { grid-template-columns: 54px 1fr; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { padding: 0; background: #fff; }
  .page { width: 100%; box-shadow: none; }
  header, .hero, .date-band, .venue, footer {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  main { padding: 18px 24px 22px; }
  .schedule { gap: 20px; }
}


/* Locandina ingrandita nella stessa pagina */
.poster-link {
  width: calc(100% - 32px);
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font-family: inherit;
}

.poster-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 24px;
  background: rgba(0, 0, 0, .92);
}

.poster-modal.is-open { display: flex; }

.poster-modal img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

.poster-close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  font: 36px/38px Arial, sans-serif;
  cursor: pointer;
}

.poster-close:hover,
.poster-close:focus-visible {
  color: #102e5e;
  background: #fff;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.modal-open { overflow: hidden; }

@media (max-width: 680px) {
  .poster-modal { padding: 58px 10px 14px; }
  .poster-close { top: 8px; right: 10px; }
}
