/* Eventi Sirio: elenco editoriale e articolo, senza librerie aggiuntive. */
.events-heading { padding-block: 2rem 3rem; }
.events-heading .eyebrow, .event-hero .eyebrow { color: #647988; }
.events-heading h1 { margin-bottom: 1.25rem; max-width: 17ch; }
.events-heading h1 em, .event-hero h1 em { color: #426887; }
.events-heading .lead { max-width: 48ch; color: var(--color-muted); margin-bottom: 0; }
.events-list { padding-bottom: clamp(4rem, 7vw, 7rem); }
.event-card { border: 1px solid #dde5e8; border-radius: 24px; overflow: hidden; background: #f3f7f8; }
.event-card > a { display: grid; grid-template-columns: 1.15fr 1fr; min-width: 0; text-decoration: none; }
.event-card > a:focus-visible { outline-offset: -6px; }
.event-card-visual { position: relative; min-width: 0; min-height: 350px; overflow: hidden; background: #b0bec7; }
.event-card-visual > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center bottom; }
.event-date { position: absolute; top: 1.5rem; left: 1.5rem; display: grid; justify-items: center; gap: .1rem; min-width: 5rem; padding: .85rem .8rem; border: 1px solid rgb(255 255 255 / .55); border-radius: 14px; color: #183d60; background: rgb(255 255 255 / .95); line-height: 1.1; }
.event-date strong { font-size: 2.25rem; font-weight: 600; letter-spacing: -.05em; }
.event-date > span { font-size: .6875rem; letter-spacing: .13em; font-weight: 650; }
.event-date small { margin-top: .25rem; font-size: .6875rem; color: #657887; }
.event-card-copy { min-width: 0; padding: clamp(2rem, 4vw, 4rem); display: flex; flex-direction: column; align-items: start; justify-content: center; }
.event-category { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; font-size: .6875rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: #587082; }
.event-category::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #c59a48; }
.event-card h2 { font-size: clamp(1.9rem, 2.8vw, 2.8rem); font-weight: 570; margin-bottom: 1.1rem; }
.event-card-description { color: #596c7b; font-size: .9375rem; line-height: 1.8; margin-bottom: 1.5rem; }
.event-facts { display: grid; gap: .7rem; list-style: none; padding: 0; margin: 0; color: #344e63; font-size: .8125rem; line-height: 1.7; }
.event-facts li { display: flex; align-items: start; gap: .65rem; }
.event-facts svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .2rem; fill: none; stroke: #6a8292; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.event-card-link { display: inline-flex; align-items: center; gap: 1.5rem; margin-top: 2rem; min-height: 44px; font-size: .8125rem; font-weight: 600; color: #224e71; }
.event-card-link > span:last-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(120deg, #edcb82, #e9b18d); color: #27445b; font-size: 1.15rem; }
.event-card a:hover .event-card-link > span:first-child { text-decoration: underline; text-underline-offset: .35em; }
.event-hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 3rem; padding-block: 2rem 3rem; }
.event-hero h1 { font-size: clamp(2.7rem, 5.2vw, 5rem); line-height: 1.05; margin-bottom: 0; font-weight: 570; }
.event-hero-summary { max-width: 37ch; justify-self: end; padding-bottom: .25rem; }
.event-hero-summary > time { display: block; margin-bottom: 1rem; font-size: .875rem; font-weight: 600; color: #315777; }
.event-hero-summary > p { color: #586d7d; font-size: .9375rem; line-height: 1.8; margin-bottom: 0; }
.event-cover { margin-block: 0 0; }
.event-cover img { width: 100%; aspect-ratio: 2.35; object-fit: cover; object-position: center bottom; border-radius: 24px; background: #c5d0d6; }
.event-cover figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; color: #657987; padding-top: .8rem; font-size: .6875rem; }
.event-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(3rem, 6vw, 6rem); align-items: start; padding-block: 3.5rem 5rem; }
.event-content { min-width: 0; }
.event-content h2 { font-size: clamp(1.65rem, 2.6vw, 2.3rem); margin-bottom: 1.5rem; }
.event-content p { color: #566a79; font-size: 1rem; line-height: 1.9; }
.event-content .event-intro { font-size: 1.125rem; line-height: 1.85; color: #2c485d; }
.event-program { margin-top: 3rem; }
.event-timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid #dbe3e8; }
.event-timeline li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.25rem; align-items: center; padding-block: 1.5rem; border-bottom: 1px solid #dbe3e8; }
.event-timeline time { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: #345e7f; }
.event-timeline h3 { margin: 0; font-size: 1.0625rem; font-weight: 550; }
.event-details { padding: 1.75rem; border: 1px solid #dce5e9; border-radius: 20px; background: #f3f7f8; }
.event-details h2 { margin-bottom: 1.25rem; font-size: 1.125rem; font-weight: 600; }
.event-details dl { margin: 0; }
.event-details dl > div { padding-block: .9rem; border-top: 1px solid #d9e3e8; }
.event-details dt { color: #657a89; font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.event-details dd { margin: 0; color: #2d4a60; font-size: .875rem; line-height: 1.65; }
.event-download { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; margin-top: 1rem; padding: .75rem 1rem; background: #244d70; border-radius: 999px; color: #fff; font-size: .75rem; font-weight: 600; text-decoration: none; }
.event-download:hover { background: #143a5b; }
.event-download small { display: block; font-size: .625rem; color: #d4e0e8; font-weight: 400; }
.event-download > span:last-child { font-size: 1.2rem; }
.event-poster { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; align-items: center; margin: 1.75rem 0 0; }
.event-poster > a { display: block; border: 1px solid #d9e1e6; border-radius: 10px; overflow: hidden; background: #e3eaee; }
.event-poster img { width: 100%; height: auto; }
.event-poster figcaption { margin: 0; font-size: .75rem; line-height: 1.7; color: #647a8a; }
.event-article-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; padding-block: 1.5rem 3.5rem; border-top: 1px solid #dce4e9; }
.event-article-footer > a { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: #2a5271; font-size: .875rem; font-weight: 550; text-decoration: none; }
.event-article-footer > a:hover { text-decoration: underline; }
.event-article-footer > p { margin: 0; font-size: .8125rem; color: #647987; }
.event-article-footer p a { color: #274c6a; }
@media (max-width: 63.99rem) {
  .event-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; }
  .event-card > a { grid-template-columns: 1fr 1fr; }
  .event-card-copy { padding: 2rem; }
  .event-details { padding: 1.4rem; }
}
@media (max-width: 47.99rem) {
  .events-heading { padding-block: 1.5rem 2rem; }
  .events-heading h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .events-heading .lead { font-size: 1rem; }
  .event-card > a { grid-template-columns: 1fr; }
  .event-card-visual { min-height: 0; aspect-ratio: 1.6; }
  .event-card-copy { padding: 1.65rem 1.4rem 1.8rem; }
  .event-card h2 { font-size: 2rem; }
  .event-card-description { font-size: .875rem; }
  .event-date { top: 1rem; left: 1rem; min-width: 4.25rem; padding: .65rem; }
  .event-date strong { font-size: 1.85rem; }
  .event-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.5rem 2rem; }
  .event-hero h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .event-hero-summary { justify-self: start; }
  .event-hero-summary > time { margin-bottom: .65rem; }
  .event-cover img { aspect-ratio: 1.45; border-radius: 18px; }
  .event-cover figcaption { font-size: .625rem; }
  .event-body { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2.5rem 3rem; }
  .event-content .event-intro { font-size: 1.0625rem; }
  .event-content p { font-size: .9375rem; }
  .event-timeline li { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1rem; }
  .event-poster { max-width: 340px; margin-inline: auto; }
  .event-article-footer { padding-bottom: 2.5rem; }
  .event-download { min-height: 56px; font-size: .8125rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .event-card { transition: border-color .2s ease, box-shadow .2s ease; }
  .event-card:hover { border-color: #b3c5d0; box-shadow: 0 15px 40px rgb(24 57 83 / .07); }
}
@media print {
  .event-poster, .event-download, .event-article-footer { display: none; }
  .event-body { display: block; }
  .event-details { margin-top: 2rem; }
  .event-cover img { max-height: 250px; }
}

/* Iscrizione al singolo evento. */
.event-register-button { display: inline-flex; justify-content: center; align-items: center; gap: 1.5rem; min-height: 54px; padding: .9rem 1.5rem; border: 1px solid transparent; border-radius: 999px; background: #244d70; color: #fff; font: 600 .875rem/1.4 var(--font-sans); text-decoration: none; cursor: pointer; }
.event-register-button > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #29465c; background: #edcb82; }
.event-register-button:hover { background: #163c5b; }
.event-register-button:disabled { cursor: wait; opacity: .7; }
.event-hero-summary .event-register-button { margin-top: 1.5rem; }
.event-registration-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem 3rem; margin-bottom: 2rem; border-radius: 24px; background: #edf4f7; }
.event-registration-cta .eyebrow { margin-bottom: .75rem; color: #607889; font-size: .625rem; }
.event-registration-cta h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); margin-bottom: .75rem; }
.event-registration-cta p:last-child { color: #576f80; font-size: .875rem; margin: 0; }
.event-registration-cta .event-register-button { flex-shrink: 0; }
.event-registration { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.4fr); gap: 3rem 4rem; padding: clamp(2rem, 5vw, 4rem); margin-bottom: 4rem; border: 1px solid #d9e4e9; border-radius: 24px; background: #fff; }
.registration-heading .eyebrow { color: #627b8c; font-size: .625rem; margin-bottom: 1.5rem; }
.registration-heading h2 { font-size: clamp(2.1rem, 3.4vw, 3.3rem); margin-bottom: 1.75rem; }
.registration-heading h2 em { color: #426887; }
.registration-heading > p { color: #5a7283; font-size: .875rem; line-height: 1.85; }
.registration-heading .registration-date { font-weight: 650; color: #315b7d; margin-bottom: .5rem; }
.registration-body { min-width: 0; }
.registration-required { font-size: .75rem; color: #607483; margin-bottom: 1.5rem; }
.registration-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.registration-fields > div { min-width: 0; }
.registration-fields label { display: block; margin-bottom: .5rem; font-size: .8125rem; font-weight: 600; color: #294c67; }
.registration-fields input { display: block; width: 100%; min-width: 0; min-height: 54px; padding: .75rem .85rem; border: 1px solid #b5c7d3; border-radius: 10px; color: #183e5a; background: #fbfdfe; font: 400 1rem/1.4 var(--font-sans); }
.registration-fields input:hover { border-color: #7895a9; }
.registration-fields input:focus-visible { outline: 2px solid #315f82; outline-offset: 2px; }
.registration-fields input[aria-invalid="true"] { border-color: #a52d3e; }
.field-hint { margin: .5rem 0 0; font-size: .6875rem; line-height: 1.6; color: #627887; }
.field-error { margin: .4rem 0 0; color: #9d2536; font-size: .75rem; line-height: 1.6; }
.field-error:empty { display: none; }
.registration-privacy { margin-block: 1.75rem; }
.registration-consent { min-height: 44px; padding-block: .4rem; display: flex; align-items: start; gap: .8rem; color: #536b7c; font-size: .75rem; line-height: 1.8; cursor: pointer; }
.registration-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: .15rem 0 0; accent-color: #244d70; }
.registration-consent span { min-width: 0; }
.registration-privacy > a { display: inline-block; padding-block: .6rem; margin-left: 2rem; color: #315b7a; font-size: .75rem; }
.registration-submit { width: 100%; }
.registration-form-status { min-height: 1.6em; margin: .8rem 0 0; font-size: .8125rem; line-height: 1.7; color: #526e81; }
.registration-form-status.is-error { color: #9d2536; }
.registration-trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.registration-preview { padding: .9rem 1rem; margin-bottom: 1.25rem; border-left: 3px solid #bb9241; background: #fcf7e9; color: #6a572c; font-size: .75rem; line-height: 1.7; }
.registration-success { padding: 2rem; border: 1px solid #80b59b; border-radius: 18px; background: #edf8f0; color: #24563e; }
.registration-success:focus { outline: 2px solid #276e4c; outline-offset: 4px; }
.registration-success-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.5rem; border-radius: 50%; background: #2d7955; color: white; font-size: 1.65rem; }
.registration-success h3 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-bottom: 1.2rem; color: #1f5b3f; }
.registration-success p { font-size: .9375rem; line-height: 1.8; }
.registration-success a { display: inline-flex; align-items: center; gap: 1.5rem; min-height: 44px; margin-top: .5rem; font-size: .8125rem; font-weight: 600; }
.registration-policy { grid-column: 1 / -1; border-top: 1px solid #dce5ea; padding-top: 1.25rem; min-width: 0; }
.registration-policy summary { padding-block: .65rem; color: #315b7a; font-size: .8125rem; cursor: pointer; }
.registration-policy > div { max-width: 85ch; margin-top: 1.5rem; }
.registration-policy p { max-width: none; font-size: .8125rem; line-height: 1.9; color: #566d7d; overflow-wrap: anywhere; }
.registration-policy .registration-policy-version { color: #6a8090; font-size: .6875rem; }
@media (max-width: 63.99rem) {
  .event-registration { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 2rem; }
  .registration-fields { grid-template-columns: 1fr; }
  .event-registration-cta { padding: 2rem; }
}
@media (max-width: 47.99rem) {
  .event-hero-summary .event-register-button { margin-top: 1.2rem; }
  .event-registration-cta { flex-direction: column; align-items: start; padding: 1.75rem 1.4rem; gap: 1.5rem; }
  .event-registration-cta .event-register-button { width: 100%; }
  .event-registration { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 1.4rem; margin-bottom: 3rem; }
  .registration-heading h2 { font-size: 2.4rem; margin-bottom: 1.25rem; }
  .registration-heading > p:last-child { margin-bottom: 0; }
  .registration-fields { gap: 1.1rem; }
  .registration-success { padding: 1.5rem; }
}
@media print {
  .event-hero-summary .event-register-button, .event-registration-cta, .event-registration { display: none; }
}
