/* Orizzonte 31 · foglio di stile della landing page
   Palette presa dal manifesto: navy #1F3748, blu #0682C2, teal chiaro #61BBCD, teal icone #387D8B.
   Per il testo corrente il blu viene scurito (#056BA1) per tenere il contrasto sopra 4,5:1. */

:root {
  --navy: #1F3748;
  --navy-scuro: #142633;
  --blu: #0682C2;
  --blu-testo: #056BA1;
  --teal: #61BBCD;
  --teal-chiaro: #DDF0F4;
  --teal-icone: #387D8B;
  --inchiostro: #1B2430;
  --grigio: #4A5563;
  --linea: #D9E3EA;
  --sfondo: #FFFFFF;
  --sfondo-tenue: #F3F8FB;
  --fuoco: #FFB000;
  --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-mano: 'Caveat', 'Bradley Hand', cursive;
  --raggio: 14px;
  --ombra: 0 10px 30px rgba(31, 55, 72, .10);
  --misura: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; font-size: 100%; }
html.testo-grande { font-size: 118%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--inchiostro);
  background: var(--sfondo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu-testo); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.contenitore { width: min(100% - 2.5rem, var(--misura)); margin-inline: auto; }
.occhiello {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blu-testo); margin-bottom: .75rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Fuoco visibile ovunque */
:focus-visible { outline: 3px solid var(--fuoco); outline-offset: 3px; border-radius: 4px; }

/* Salta al contenuto */
.salta {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 8px; font-weight: 700;
  transition: top .15s;
}
.salta:focus { top: 1rem; }

/* Testata */
.testata {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.testata__riga { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.marchio { text-decoration: none; color: var(--navy); display: flex; flex-direction: column; line-height: 1.1; }
.marchio__nome { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.marchio__nome em { font-style: normal; color: var(--blu); }
.marchio__sotto { font-size: .72rem; color: var(--grigio); font-weight: 600; letter-spacing: .04em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; }
.nav a {
  display: inline-block; padding: .55rem .8rem; border-radius: 8px; text-decoration: none;
  font-weight: 600; color: var(--navy); font-size: .95rem;
}
.nav a:hover { background: var(--sfondo-tenue); }
.strumenti { display: flex; gap: .4rem; }
.strumento {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--linea); background: #fff; color: var(--navy); border-radius: 10px;
  font: 700 .95rem var(--font); cursor: pointer;
}
.strumento:hover { border-color: var(--blu); }
.strumento[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Eroe */
.eroe { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.eroe__foto, .eroe__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.eroe__velo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 38, 51, .88) 0%, rgba(20, 38, 51, .74) 45%, rgba(20, 38, 51, .30) 100%),
    linear-gradient(180deg, rgba(20, 38, 51, .25) 0%, rgba(20, 38, 51, 0) 40%, rgba(20, 38, 51, .55) 100%);
}
.eroe__testo { padding: 5.5rem 0 7rem; max-width: 46rem; }
.eroe__occhiello { font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 1rem; opacity: .95; }
.eroe__occhiello strong { font-weight: 800; }
.eroe__titolo { font-size: clamp(3.2rem, 2rem + 6vw, 6.5rem); font-weight: 800; letter-spacing: -.035em; color: #fff; margin: 0 0 .25rem; line-height: .95; }
.eroe__data { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 600; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; }
.eroe__luogo { font-size: .62em; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; }
.eroe__temi { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.eroe__temi span {
  font-weight: 800; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
}
.eroe__claim { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 400; margin-bottom: 2rem; max-width: 36rem; }
.eroe__azioni { display: flex; flex-wrap: wrap; gap: .8rem; }
.onda { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.onda svg { width: 100%; height: 70px; display: block; }

/* Bottoni */
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1rem; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s;
}
.bottone--pieno { background: var(--blu); color: #fff; }
.bottone--pieno:hover { background: #056BA1; color: #fff; transform: translateY(-1px); }
.eroe .bottone--vuoto { border-color: rgba(255, 255, 255, .8); color: #fff; }
.eroe .bottone--vuoto:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.info .bottone--vuoto { border-color: var(--navy); color: var(--navy); }
.info .bottone--vuoto:hover { background: var(--navy); color: #fff; }

/* Numeri */
.numeri { padding: 2.5rem 0 1rem; }
.numeri__griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.numero {
  background: var(--sfondo-tenue); border-radius: var(--raggio); padding: 1.25rem 1.4rem;
  display: flex; align-items: baseline; gap: .8rem; border-left: 4px solid var(--teal);
}
.numero strong { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.numero span { font-size: .95rem; color: var(--grigio); font-weight: 600; }

/* Evento */
.evento { padding: 4rem 0; }
.evento__griglia { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.evento__testo p { font-size: 1.1rem; max-width: 60ch; }
.pillole { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pillole li {
  background: var(--teal-chiaro); color: var(--navy); font-weight: 700; font-size: .88rem;
  padding: .4rem .85rem; border-radius: 999px;
}
.ospite {
  background: var(--navy); color: #fff; border-radius: var(--raggio); padding: 2rem; box-shadow: var(--ombra);
  position: relative; overflow: hidden;
}
.ospite::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 187, 205, .35), transparent 70%);
}
.ospite .occhiello { color: var(--teal); }
.ospite__icona { color: var(--teal); margin-bottom: 1rem; }
.ospite__nome { font-size: 1.9rem; font-weight: 800; margin: 0 0 .3rem; letter-spacing: -.02em; }
.ospite__ruolo { font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.ospite__nota { font-size: .95rem; opacity: .9; margin: 0; }

/* Programma */
.programma { padding: 4rem 0; background: var(--sfondo-tenue); }
.programma__intro { max-width: 62ch; font-size: 1.1rem; margin-bottom: 2.5rem; }
.giorni { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.giorno { background: #fff; border-radius: var(--raggio); box-shadow: var(--ombra); overflow: hidden; }
.giorno__titolo {
  margin: 0; padding: 1.1rem 1.6rem; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  display: flex; gap: .5rem; align-items: baseline;
}
.giorno--venerdi .giorno__titolo { background: var(--blu); }
.giorno--sabato .giorno__titolo { background: var(--teal); color: var(--navy); }
.giorno__nome { font-weight: 800; }
.incontri { padding: .5rem 1.6rem 1rem; }
.incontro { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--linea); }
.incontro:last-child { border-bottom: 0; }
.incontro__icona {
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal-icone); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.incontro__icona svg { width: 30px; height: 30px; }
.incontro__quando { font-size: .9rem; font-weight: 700; color: var(--blu-testo); margin-bottom: .35rem; }
.giorno--sabato .incontro__quando { color: var(--teal-icone); }
.incontro__titolo { font-size: 1.12rem; font-weight: 800; margin-bottom: .4rem; color: var(--navy); }
.incontro__corpo p:last-child { margin: 0; font-size: .97rem; color: var(--grigio); }
.programma__nota { margin-top: 1.5rem; font-size: .9rem; color: var(--grigio); }

/* Sedi */
.sedi { padding: 4rem 0; }
.sedi__griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.sede { border: 1.5px solid var(--linea); border-radius: var(--raggio); padding: 1.5rem; display: flex; flex-direction: column; }
.sede h3 { font-size: 1.15rem; }
.sede p { font-size: .97rem; color: var(--grigio); }
.sede__quando { font-weight: 700; color: var(--navy) !important; }
.sede a { margin-top: auto; font-weight: 700; }

/* Fascia con skyline */
.fascia { background: linear-gradient(180deg, #fff 0%, var(--teal-chiaro) 100%); padding-top: 4rem; text-align: center; overflow: hidden; }
.fascia__motto { font-family: var(--font-mano); font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); color: var(--blu); margin: 0 0 .5rem; line-height: 1.05; font-weight: 600; }
.fascia__testo { max-width: 52ch; margin-inline: auto; font-size: 1.1rem; color: var(--navy); }
.fascia__skyline { width: min(100%, 1100px); margin: 2rem auto 0; }

/* Info */
.info { padding: 4rem 0 5rem; }
.info__griglia { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.info p { max-width: 58ch; }
.info__scheda { background: var(--sfondo-tenue); border-radius: var(--raggio); padding: 2rem; }
.info__scheda dl { margin: 0 0 1.5rem; }
.info__scheda dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--blu-testo); margin-top: 1rem; }
.info__scheda dd { margin: .15rem 0 0; font-weight: 600; color: var(--navy); }

/* Piè di pagina */
.pie { background: var(--navy-scuro); color: #fff; padding: 3rem 0 2.5rem; }
.loghi { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3rem; margin-bottom: 2rem; }
.loghi li { background: #fff; border-radius: 12px; padding: 1rem 1.25rem; }
.loghi img { max-height: 120px; width: auto; }
.pie__riga { text-align: center; margin: 0 auto; max-width: 70ch; font-weight: 600; }
.pie__riga--piccola { font-size: .85rem; font-weight: 400; opacity: .85; margin-top: 1rem; }

/* Alto contrasto */
html.alto-contrasto {
  --navy: #000; --navy-scuro: #000; --blu: #0033A0; --blu-testo: #0033A0; --teal: #FFD400; --teal-chiaro: #FFF4B8;
  --teal-icone: #000; --inchiostro: #000; --grigio: #000; --linea: #000; --sfondo-tenue: #fff; --ombra: none;
}
html.alto-contrasto a { text-decoration: underline; }
html.alto-contrasto .eroe__velo { background: rgba(0, 0, 0, .8); }
html.alto-contrasto .eroe__temi span { background: #000; border-color: #fff; }
html.alto-contrasto .giorno, html.alto-contrasto .sede, html.alto-contrasto .numero, html.alto-contrasto .info__scheda, html.alto-contrasto .loghi li { border: 2px solid #000; }
html.alto-contrasto .giorno--sabato .giorno__titolo { color: #000; }
html.alto-contrasto .motto__testo, html.alto-contrasto .fascia__motto { color: #0033A0; }
html.alto-contrasto .fascia { background: #fff; }
html.alto-contrasto .strumento[aria-pressed="true"] { background: #000; }
html.alto-contrasto .bottone--pieno { background: #000; border-color: #fff; }

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Schermi stretti */
@media (max-width: 900px) {
  .evento__griglia, .giorni, .info__griglia { grid-template-columns: 1fr; }
  .nav { display: none; }
  .strumenti { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .testata__riga { min-height: 3.75rem; gap: .75rem; }
  .marchio__sotto { display: none; }
  .eroe { min-height: 0; }
  .eroe__foto img { object-position: 62% 50%; }
  .eroe__testo { padding: 4rem 0 5.5rem; }
  .eroe__azioni .bottone { width: 100%; }
  .numeri__griglia { grid-template-columns: 1fr 1fr; }
  .numero { flex-direction: column; gap: .2rem; padding: 1rem; }
  .numero strong { font-size: 2rem; }
  .incontro { grid-template-columns: 44px 1fr; gap: .8rem; }
  .incontro__icona { width: 44px; height: 44px; }
  .incontro__icona svg { width: 24px; height: 24px; }
  .incontri { padding-inline: 1.1rem; }
  .giorno__titolo { padding-inline: 1.1rem; font-size: 1.15rem; }
  .ospite { padding: 1.5rem; }
  .loghi { gap: 1rem; }
  .loghi img { max-height: 90px; }
}

/* Stampa */
@media print {
  .testata, .strumenti, .eroe__azioni, .onda, .salta { display: none; }
  .eroe { min-height: 0; color: #000; }
  .eroe__foto, .eroe__velo { display: none; }
  .eroe__titolo, .eroe__occhiello, .eroe__data, .eroe__claim { color: #000; }
  .giorni { grid-template-columns: 1fr 1fr; }
  .giorno { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  a { color: #000; }
}
