:root {
  --pink: #f7d0c9;
  --sky: #5684c0;
  --azzurro: #5684c0;
  --blu: #2c4a85;
  --notte: #13205a; /* hover delle superfici blu notte */
  --navy: #040726;
  --veil: rgba(4, 7, 38, .45); /* velo notte: in fondo alla pagina, sul blu, il testo bianco resta a 8,6:1 */
  --orange: #f7d0c9; /* nome storico: è il colore dei pulsanti */
  --orange-h: #f2b9ae;
  --orange-d: #192957; /* accento leggibile su fondo chiaro (pannello) */
  --on-orange: #040726; /* testo dei pulsanti: 13,9:1 sul rosa */
  --ink: #183b55;
  --text: #34495c;
  --muted: #627587;
  --line: #dbe6f0;
  --soft: #f3f8fd;
  --white: #fff;
  --radius: 22px;
  --display: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --sans: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --grad: linear-gradient(180deg, var(--navy) 0%, var(--sky) 100%); /* dalla notte al blu, cambia colore con lo scorrimento */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.1875rem; /* 14pt, come da brief */ line-height: 1.6; color: var(--text); background: var(--soft); top: 0 !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0 0 .5em; }
::selection { background: var(--pink); color: var(--navy); }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #000; border-radius: 6px; } /* bianco + nero: visibile su fondi scuri e chiari */
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
main:empty { min-height: 100vh; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; border: 0; border-radius: 999px; padding: .8em 1.5em; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; background: var(--orange); color: var(--on-orange); transition: background .2s, transform .2s; }
.btn:hover { background: var(--orange-h); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.navy { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn.navy:hover { background: var(--notte); }
.btn.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: .5em 1.1em; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.2rem; cursor: pointer; }

/* ---------- barra in alto ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 12px max(16px, calc((100% - 1180px) / 2)); transition: background .3s, box-shadow .3s; }
.topbar.solid { background: rgba(4, 7, 38, .92); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-home { font: 600 1rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-orange); text-decoration: none; padding: .55em 1.2em; border-radius: 999px; background: var(--orange); }
.btn-home:hover { background: var(--orange-h); }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--veil); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 0 16px; }
.search svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: 500 1rem var(--sans); padding: .65em 0; outline: none; }
.search input::placeholder { color: rgba(255,255,255,.95); }
.search:focus-within { background: rgba(4, 7, 38, .82); border-color: #fff; }
.lang { display: flex; gap: 6px; margin-left: auto; }
.lang button { display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.4); background: var(--veil); color: #fff; font: 600 .85rem var(--sans); padding: .45em .7em; border-radius: 999px; cursor: pointer; }
.lang button svg { width: 20px; height: 14px; border-radius: 2px; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.burger { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--veil); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { width: 22px; height: 2.5px; background: #fff; border-radius: 2px; }
.burger:hover { background: var(--navy); }

/* ---------- menu "Esplora il sito" ---------- */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(440px, 100%); border: 0; padding: 0; background: #fff; color: var(--text); box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer[open] { animation: slide .3s ease-out; }
.drawer::backdrop { background: rgba(4, 7, 38, .45); backdrop-filter: blur(2px); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; background: var(--soft); border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 600 1.6rem var(--display); display: flex; align-items: center; gap: 12px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); display: inline-block; flex: none; }
.drawer-body { padding: 22px 26px 40px; display: grid; gap: 12px; }
.group { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.group-head { display: flex; align-items: center; }
.group-head a { flex: 1; padding: 16px 20px; font: 600 1.15rem var(--sans); color: var(--ink); text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-transform: uppercase; }
.group-head a:hover { color: var(--orange-d); }
.group-head .tag { font-size: .8rem; font-weight: 600; color: var(--orange-d); background: #fdeee2; padding: .25em .8em; border-radius: 999px; }
.group-head .hint { font-size: .85rem; color: var(--muted); font-weight: 500; text-transform: none; }
.toggle { border: 0; background: transparent; width: 48px; height: 48px; margin-right: 6px; cursor: pointer; color: var(--ink); font-size: 1rem; transition: transform .25s; }
.group .sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.group .sub > ul { overflow: hidden; margin: 0; padding: 0 20px; list-style: none; }
.group:hover .sub, .group:focus-within .sub, .group.open .sub { grid-template-rows: 1fr; }
.group:hover .toggle, .group.open .toggle { transform: rotate(180deg); }
.group .sub li:first-child { border-top: 1px solid var(--line); padding-top: 8px; }
.group .sub li:last-child { padding-bottom: 12px; }
.group .sub a { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; font-size: 1rem; color: var(--text); }
.group .sub a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.group.blue .sub a::before { background: var(--azzurro); }
.group .sub a:hover { color: var(--orange-d); }
.drawer-label { margin: 16px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ente { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: #fff; text-decoration: none; border-radius: 20px; padding: 20px 22px; }
.ente strong { display: block; font-size: 1.3rem; margin: 6px 0 2px; }
.ente small { opacity: .85; font-size: .9rem; }
.ente .badge { background: var(--pink); color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 6px; }
.ente .arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.ente:hover { background: var(--notte); }
.ente + .ente { margin-top: 10px; }
.ente-links { display: flex; flex-wrap: wrap; gap: 10px; }
a[aria-disabled="true"] { cursor: default; } /* link non ancora impostato: il bottone c'è ma non porta da nessuna parte */

/* ---------- hero (home e testate delle pagine) ---------- */
.hero { color: #fff; position: relative; overflow: hidden; }
.home-hero { min-height: 100svh; display: grid; align-items: center; padding: 110px 0 60px; }
.home-hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.home-hero h1 { font: 400 clamp(2.8rem, 5.4vw, 5rem) / .95 var(--display); color: #fff; margin: 0 0 22px; letter-spacing: -.015em; text-wrap: balance; }
.home-hero p { font-size: 1.35rem; max-width: 34ch; margin: 0 0 32px; color: #fff; }
.home-hero .logo { width: min(420px, 100%); justify-self: center; border-radius: 50%; box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; color: #fff; opacity: .8; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.page-hero { padding: 130px 0 60px; }
.page-hero h1 { font: 400 clamp(2.8rem, 6.5vw, 5.2rem) / 1 var(--display); color: #fff; margin: 0 0 14px; letter-spacing: -.01em; text-wrap: balance; }
.page-hero p { font-size: 1.2rem; max-width: 60ch; color: #fff; margin: 0; }
.crumbs { font-size: .95rem; margin-bottom: 14px; color: #fff; }
.crumbs a { color: #fff; }

/* home a scorrimento: sfondo sfumato continuo, testi bianchi */
.home { color: #fff; }
.story { padding: 90px 0; }
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story:nth-of-type(even) .media { order: -1; }
.story .wrap > .reveal:not(.media) { align-self: stretch; display: flex; flex-direction: column; justify-content: center; } /* riquadro del testo alto quanto la foto */
.story .wrap > .reveal:not(.media) > * { align-self: flex-start; }
.story .wrap > .reveal:not(.media) > .prose { align-self: stretch; }
.story .kicker { color: #fff; font: 700 .95rem var(--display); letter-spacing: .16em; text-transform: uppercase; }
.story h2 { font: 400 clamp(2rem, 3.4vw, 2.9rem) / 1.05 var(--display); margin: 10px 0 22px; text-wrap: balance; text-transform: uppercase; }
.story .media img { border-radius: var(--radius); width: 100%; max-height: 80vh; object-fit: cover; /* foto verticali restano verticali, senza superare lo schermo */ box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.readmore { margin-top: 6px; padding: 0; background: none; border: 0; color: var(--pink); font: 700 1.05rem var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.readmore:hover { color: #fff; }
.readmore[aria-expanded="true"] span:first-child, .readmore span + span { display: none; }
.readmore[aria-expanded="true"] span + span { display: inline; }
.home-hero p, .story .prose p { text-align: justify; hyphens: auto; /* giustificato: la sillabazione (lang="it") evita i buchi tra le parole */ }
.prose p { margin: 0 0 1em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose a { color: var(--orange-d); }
.band { padding: 80px 0; }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.band-head h2 { font: 400 clamp(1.8rem, 3vw, 2.6rem) / 1 var(--display); margin: 0; text-transform: uppercase; }
.home .band-head a { color: #fff; }

/* reveal allo scorrimento */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .home-hero .logo, .drawer[open] { animation: none; } html { scroll-behavior: auto; } }

/* ---------- card con angoli arrotondati ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.card .img { aspect-ratio: 16/10; flex: 1 0 auto; position: relative; background: var(--soft); } /* foto adattiva: base 16:10, si allunga se la scheda vicina ha un titolo più lungo */
.card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* fuori dal flusso: una foto alta non allunga la scheda */
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; } /* il testo resta della sua altezza */
.card h3 { font: 600 1.35rem / 1.2 var(--sans); margin: 8px 0 10px; }
.card p { margin: 0; font-size: 1rem; color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 20px; font-size: .9rem; color: var(--muted); }
.chip { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--azzurro); background: #e8f2fb; padding: .3em .8em; border-radius: 8px; align-self: flex-start; }
.chip.orange { color: var(--orange-d); background: #fdeee2; }
.chip.grey { color: var(--muted); background: #eef1f4; }
.route { font: 700 1.5rem / 1.15 var(--display); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: .3em; margin: 6px 0 8px; }
.route .arr { color: var(--orange); }

/* ---------- sezione chiara (pagine interne) ---------- */
.section { padding: 70px 0 90px; }
.lead { font-size: 1.2rem; max-width: 70ch; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- itinerario singolo (testo più piccolo: ~12pt) ---------- */
.itin { font-size: 1rem; }
.itin-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
#map, .map { height: 520px; border-radius: var(--radius); overflow: hidden; border: 4px solid rgba(255,255,255,.2); z-index: 0; }
.stops { list-style: none; counter-reset: s; margin: 0; padding: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 3px dotted rgba(255,255,255,.5); }
.stops li { counter-increment: s; position: relative; }
.stops a { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: #fff; text-decoration: none; font-weight: 600; }
.stops a::before { content: counter(s); width: 37px; height: 37px; border-radius: 50%; background: var(--orange); color: var(--on-orange); display: grid; place-items: center; font-size: .9rem; font-weight: 700; flex: none; position: relative; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.stops a:hover { color: #ffd2b0; }
.stop-nav { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.pin { background: var(--navy); color: #fff; border: 3px solid #fff; border-radius: 50%; display: grid !important; place-items: center; font: 700 13px var(--sans); box-shadow: 0 3px 10px rgba(0,0,0,.35); }

/* ---------- articoli: linea del tempo ---------- */
.timeline { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px 26px; margin-bottom: 40px; overflow-x: auto; }
.timeline h2 { font: 700 1.5rem var(--display); margin-bottom: 26px; }
.tl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.tl-filter a { padding: .4em .95em; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.tl-filter a span { opacity: .7; font-weight: 500; margin-left: 2px; }
.tl-filter a:hover { border-color: var(--pink); }
.tl-filter a[aria-current="true"] { background: var(--pink); border-color: var(--pink); color: var(--navy); }
.tl-scroll { overflow-x: auto; padding: 8px 0; }
.tl { position: relative; height: 84px; margin: 0 40px; } /* margine: i pallini agli estremi non vengono tagliati */
.tl::before { content: ""; position: absolute; left: -32px; right: -32px; top: 17px; height: 3px; background: linear-gradient(90deg, var(--pink), #fff); border-radius: 3px; }
.tl-pt { position: absolute; top: 0; translate: -50% 0; display: grid; justify-items: center; gap: 10px; background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; }
.tl-pt .pt { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); border: 4px solid #fff; display: grid; place-items: center; font: 700 .8rem var(--sans); transition: transform .2s, background .2s, border-color .2s; }
.tl-pt .yr { font: 700 1.15rem var(--display); white-space: nowrap; }
.tl-pt:hover .pt, .tl-pt[aria-expanded="true"] .pt { background: var(--pink); border-color: var(--pink); color: var(--navy); transform: scale(1.15); }
.tl-pt[aria-expanded="true"] .yr { color: var(--pink); }
.tl-list { margin-top: 18px; padding: 20px 24px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.tl-list h3 { font: 700 1.4rem var(--display); margin: 0 0 10px; color: var(--pink); }
.tl-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tl-list a { color: #fff; font-weight: 700; font-size: 1.05rem; }
.tl-list a:hover { color: var(--pink); }
.tl-list span { display: block; font-size: .92rem; color: rgba(255,255,255,.85); }
.tl-note { font-size: .95rem; color: var(--muted); margin: 18px 0 0; }

/* ---------- articolo ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; }
.article .cover { border-radius: var(--radius); width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 30px; }
.article .prose { font-size: 1.125rem; }
.meta { font-size: .95rem; color: #fff; display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.aside h3 { font: 700 1.3rem var(--display); }
.aside a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
.aside a:hover { color: var(--orange-d); }

/* ---------- eventi ---------- */
.ev { cursor: pointer; text-align: left; font: inherit; padding: 0; }
.ev .date { display: flex; gap: 14px; align-items: center; }
.ev .day { background: var(--orange); color: var(--on-orange); border-radius: 14px; width: 64px; padding: 6px 0; text-align: center; line-height: 1; flex: none; }
.ev .day b { display: block; font: 700 1.8rem var(--display); }
.ev .day span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.ev.past { opacity: .7; }
.ev.past .day { background: var(--muted); color: #fff; }
.modal { width: min(720px, 100% - 24px); max-height: calc(100dvh - 24px); border: 0; border-radius: 26px; padding: 0; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(11, 37, 64, .55); }
.modal .m-img { aspect-ratio: 21/8; width: 100%; object-fit: cover; }
.modal .m-body { padding: 26px 30px 30px; }
.modal .close { position: absolute; top: 14px; right: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 18px; font-size: .95rem; color: var(--muted); }
.facts b { color: var(--ink); }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .lbl-up { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 1rem var(--sans); padding: .8em 1em; border: 1px solid #c9d6e2; border-radius: 14px; background: #fff; color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azzurro); box-shadow: 0 0 0 4px rgba(47,134,201,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); }
.notice { padding: 12px 16px; border-radius: 12px; font-size: .95rem; }
.notice.ok { background: #e6f6ec; color: #1d6b3b; }
.notice.err { background: #fdecea; color: #9b2c1f; }

/* ---------- contatti ---------- */
.panel { background: var(--soft); border: 1px solid var(--line); border-radius: 26px; padding: 34px 40px; }
.panel.white { background: #fff; }
.panel + .panel { margin-top: 28px; }
.panel .blk + .blk { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.panel h2 { font: 600 1.45rem var(--sans); }
.big-link { color: var(--azzurro); font-weight: 600; font-size: 1.2rem; text-decoration: none; display: block; margin-bottom: 12px; word-break: break-all; }
.small-muted { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }

/* ---------- ricerca ---------- */
.results { display: grid; gap: 14px; }
.result { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; text-decoration: none; color: var(--text); }
.result:hover { border-color: var(--azzurro); }
.result img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.result h3 { font-size: 1.1rem; margin: 4px 0; }
.result p { margin: 0; font-size: .92rem; color: var(--muted); }
mark { background: #fde3cf; color: inherit; border-radius: 3px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #fff; padding: 70px 0 30px; font-size: 1rem; }
.footer .cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 50px; }
.footer h2 { color: #fff; font: 700 1.8rem var(--sans); display: flex; align-items: center; gap: 12px; }
.footer h3 { color: var(--pink); font: 600 1.05rem var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer p { margin: 0 0 18px; }
.footer .line { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.footer .line svg { width: 20px; height: 20px; stroke: var(--pink); fill: none; stroke-width: 2; flex: none; }
.footer .line a { color: #fff; text-decoration: none; }
.footer .social-col { text-align: right; }
.social { display: flex; gap: 12px; justify-content: flex-end; }
.social a { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social a:hover { background: var(--pink); }
.social a:hover svg { fill: var(--navy); }
.social svg { width: 24px; height: 24px; fill: #fff; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .92rem; }
.footer .bottom nav { display: flex; gap: 10px; flex-wrap: wrap; }
.footer .bottom a { color: #fff; text-decoration: none; }
.footer .bottom a:hover { color: #fff; text-decoration: underline; }


/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .home-hero .wrap, .story .wrap, .itin-top, .article, .footer .cols { grid-template-columns: 1fr; }
  .home-hero .logo { width: 220px; order: -1; }
  .story:nth-of-type(even) .media { order: 0; }
  .story { padding: 60px 0; }
  #map, .map { height: 380px; }
  .footer .social-col { text-align: left; }
  .social { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .topbar { gap: 8px; flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .lang button { padding: .4em .5em; }
  .form .row { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .page-hero { padding-top: 150px; }
  .home-hero { padding-top: 150px; }
}

/* ---------- Napoli condivisa ---------- */
.prose a[href="#contribuisci"], .home .prose a[href="#contribuisci"] { display: inline-flex; margin-top: 8px; padding: .8em 1.5em; border-radius: 999px; background: var(--orange); color: var(--on-orange); font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.prose a[href="#contribuisci"]:hover { background: var(--orange-h); transform: translateY(-1px); }
.story-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.story-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.story-photos a:only-child img { aspect-ratio: auto; max-height: 70vh; }
.signature { margin: 34px 0 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.notice { background: var(--soft); color: var(--ink); }
.hint-s { display: block; margin-top: 5px; font-size: .85rem; color: var(--muted); }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumbs span { font-size: .85rem; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.thumbs .too-big { border-color: #b3261e; color: #9b2c1f; }
.consents { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px 16px; margin: 0; display: grid; gap: 10px; }
.consents legend { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 0 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input:disabled { background: var(--soft); color: var(--muted); }

/* ---------- Palette del sito pubblico ----------
   Il fondo della pagina sfuma dal blu notte al blu mentre si scorre; i testi sono bianchi
   e poggiano su un riquadro velato (--veil): quasi invisibile in alto, dove il fondo è già scuro, necessario in fondo sul blu. */
.site { background: var(--grad); color: #fff; }
.site h1, .site h2, .site h3 { color: #fff; }
.site .prose a { color: #fff; text-underline-offset: 3px; }
.site .prose a:hover { color: var(--pink); }

/* blocchi di testo sopra il tramonto */
.site .home-hero .wrap > div:first-child,
.site .page-hero .wrap,
.site .story .wrap > .reveal:not(.media),
.site .itin-top > div:last-child,
.site .article > article,
.site .article > aside:not(:empty),
.site .veil-box { background: var(--veil); border-radius: var(--radius); padding: 36px 40px; }
.site .page-hero .wrap { padding: 32px 40px; }
.site .band-head { background: var(--veil); border-radius: 18px; padding: 16px 24px; align-items: center; }
.site .band-head a { color: #fff; }
.site .wrap > h2 { display: inline-block; background: var(--veil); border-radius: 14px; padding: 10px 22px; }
.site .scroll-cue { background: var(--veil); padding: .45em 1.1em; border-radius: 999px; opacity: 1; }

/* card, pannelli e risultati: stessa superficie velata */
.site .card, .site .panel, .site .result, .site .timeline, .site .empty {
  background: var(--veil); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.site .card { box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.site .card:hover { background: rgba(4, 7, 38, .78); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.site .card .img { background: rgba(255,255,255,.1); }
.site .card p, .site .result p, .site .small-muted, .site .tl-note, .site .hint-s, .site .facts { color: rgba(255,255,255,.9); }
.site .card .foot { border-top-color: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }
.site .empty { border-style: dashed; border-color: rgba(255,255,255,.4); }
.site .chip { color: #fff; background: rgba(255,255,255,.16); }
.site .chip.orange { color: var(--navy); background: var(--pink); }
.site .chip.grey { color: #fff; background: rgba(255,255,255,.1); }
.site .route { color: #fff; }
.site .route .arr { color: var(--pink); }
.site .panel .blk + .blk { border-top-color: rgba(255,255,255,.2); }
.site .big-link { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site .result:hover { border-color: var(--pink); }
.site mark { background: var(--pink); color: var(--navy); }

/* numeri, tappe, linea del tempo, date: l'accento rosa con testo blu notte (9,9:1) */
.site .stops::before { border-left-color: rgba(255,255,255,.5); }
.site .stops a { color: #fff; }
.site .stops a::before, .site .ev .day { background: var(--pink); color: var(--navy); }
.site .stops a:hover { color: var(--pink); }
.site .ev.past .day { background: rgba(255,255,255,.18); color: #fff; }
.site .aside a { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.site .aside a:hover { color: var(--pink); }
.site .signature { color: rgba(255,255,255,.9); border-top-color: rgba(255,255,255,.25); }

/* menu "Esplora il sito" */
.site .drawer { background: var(--navy); color: #fff; }
.site .drawer-head { background: rgba(255,255,255,.06); border-bottom-color: rgba(255,255,255,.15); }
.site .group { border-color: rgba(255,255,255,.2); }
.site .group-head a, .site .toggle { color: #fff; }
.site .group-head a:hover, .site .group .sub a:hover { color: var(--pink); }
.site .group-head .tag { color: var(--navy); background: var(--pink); }
.site .group-head .hint { color: rgba(255,255,255,.8); }
.site .group .sub li:first-child { border-top-color: rgba(255,255,255,.15); }
.site .group .sub a { color: rgba(255,255,255,.92); }
.site .group .sub a::before, .site .group.blue .sub a::before { background: var(--pink); }
.site .drawer-label { color: rgba(255,255,255,.75); border-top-color: rgba(255,255,255,.15); }
.site .ente { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.site .ente:hover { background: rgba(255,255,255,.14); }

/* finestre (evento, invio contributi): superficie blu notte piena, campi bianchi */
.site .modal { background: #0f1a4d; color: #fff; }
.site .modal::backdrop { background: rgba(4, 7, 38, .6); }
.site .facts b, .site .field label, .site .lbl-up, .site .consents legend { color: #fff; }
.site .consents { border-color: rgba(255,255,255,.3); }
.site .modal a { color: #fff; }
.site .notice { background: rgba(255,255,255,.12); color: #fff; }
.site .notice.ok { background: #e6f6ec; color: #1d6b3b; }
.site .notice.err { background: #fdecea; color: #9b2c1f; }
.site .thumbs span { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.site .thumbs .too-big { border-color: #ffb4a8; color: #ffd9d2; }
.site .field input, .site .field select, .site .field textarea { color: var(--navy); border-color: rgba(255,255,255,.5); }
.site .field input:focus, .site .field select:focus, .site .field textarea:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(247,208,201,.45); }
.site .check input { accent-color: var(--pink); }

@media (max-width: 640px) {
  .site .home-hero .wrap > div:first-child, .site .page-hero .wrap, .site .story .wrap > .reveal:not(.media),
  .site .itin-top > div:last-child, .site .article > article, .site .article > aside:not(:empty), .site .veil-box { padding: 24px 20px; }
}
