:root {
  --ink: #18315c;
  --teal: #18315c;
  --teal-soft: #287cae;
  --gold: #70b945;
  --sand: #f1eadf;
  --paper: #fbf8f2;
  --white: #fff;
  --line: rgba(24, 49, 92, .16);
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
a { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; color: var(--white); background: var(--teal); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: absolute; z-index: 10; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 92px; padding: 0 clamp(24px, 5vw, 72px); color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; letter-spacing: .02em; }
.brand img { display: block; width: min(244px, 48vw); height: auto; }
nav { display: flex; gap: 28px; align-items: center; font-size: 13px; }
nav a { text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.nav-access { padding: 10px 14px; border: 1px solid var(--teal); }

.hero { position: relative; display: grid; min-height: 780px; height: 100svh; color: var(--white); overflow: hidden; place-items: center start; }
.hero-photo, .hero-shade { position: absolute; inset: 0; }
.hero-photo { background: url("/public/photos/cefalu.jpg") center/cover no-repeat; transform: scale(1.02); }
.hero-shade { background: linear-gradient(90deg, rgba(12,29,59,.94) 0%, rgba(18,44,83,.75) 42%, rgba(18,44,83,.14) 76%), linear-gradient(0deg, rgba(0,0,0,.28), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(790px, 90%); padding: 160px 0 40px clamp(24px, 8vw, 124px); }
.eyebrow { margin: 0 0 24px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: var(--teal-soft); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
h1 { font-size: clamp(54px, 7.2vw, 104px); }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
.hero-lead { max-width: 620px; margin: 30px 0 34px; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.4vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 50px; padding: 0 22px; gap: 24px; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary, .button-gold { color: var(--teal); background: var(--gold); }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.55); }
.hero-caption { position: absolute; right: 28px; bottom: 20px; margin: 0; color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .04em; writing-mode: vertical-rl; }

.section { padding: clamp(78px, 10vw, 150px) clamp(24px, 8vw, 124px); }
.intro { position: relative; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, .72fr); gap: clamp(48px, 10vw, 150px); }
.section-number { position: absolute; top: 44px; left: clamp(24px, 8vw, 124px); color: var(--gold); font-size: 11px; }
.intro h2, .territory h2 { font-size: clamp(46px, 5.6vw, 78px); }
.intro-copy { padding-top: 42px; }
.intro-copy p { color: #516466; }
.intro-copy .lead { color: var(--ink); font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.principles { display: grid; margin-top: 40px; border-top: 1px solid var(--line); }
.principles span { display: flex; padding: 14px 0; gap: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.principles b { color: var(--gold); }

.vision { display: grid; min-height: 500px; padding: clamp(72px, 9vw, 130px) clamp(24px, 8vw, 124px); color: var(--white); background: var(--teal); grid-template-columns: minmax(300px, 720px) 1fr; gap: 60px; align-items: end; }
.vision h2 { font-size: clamp(45px, 5.4vw, 76px); }
.vision-copy > p:last-child { max-width: 620px; color: rgba(255,255,255,.66); }
.vision-line { display: flex; padding-bottom: 12px; justify-content: space-between; color: var(--gold); border-bottom: 1px solid rgba(255,255,255,.24); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.discover h2 { font-size: clamp(46px, 5.6vw, 78px); }
.discover-lead { max-width: 870px; margin: 30px 0 42px; font-family: var(--serif); font-size: clamp(20px, 2.1vw, 28px); line-height: 1.45; }
.discover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.discover-grid article { display: flex; padding: 26px; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.discover-grid article > span { color: var(--teal-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.discover-grid h3 { margin: 22px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.discover-grid p { color: #516466; font-size: 14px; }
.discover-grid a { margin-top: auto; padding-top: 22px; color: var(--ink); font-weight: 600; font-size: 13px; }
.source-note { max-width: 850px; margin: 30px 0 0; color: #516466; font-size: 12px; }

.public-dashboard { background: #f4efe6; }
.dashboard-heading { display: grid; grid-template-columns: 1fr minmax(300px, 430px); gap: 50px; align-items: end; }
.dashboard-heading h2 { font-size: clamp(46px, 5.6vw, 78px); }
.dashboard-update { display: grid; padding-left: 22px; gap: 4px; border-left: 2px solid var(--gold); }
.dashboard-update span { color: var(--teal-soft); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-update strong { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.dashboard-update small { color: #647477; }
.dashboard-highlights { display: grid; margin-top: 64px; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dashboard-highlights article { display: flex; min-height: 185px; padding: 22px; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dashboard-highlights span, .public-kpis > article > span { color: var(--teal-soft); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-highlights strong { margin: auto 0 4px; font-family: var(--serif); font-size: clamp(42px, 5vw, 68px); font-weight: 400; line-height: 1; }
.dashboard-highlights small, .public-kpis small { color: #647477; font-size: 11px; }
meter { width: 100%; height: 8px; border: 0; background: #ddd4c5; }
meter::-webkit-meter-bar { background: #ddd4c5; border: 0; border-radius: 0; }
meter::-webkit-meter-optimum-value { background: var(--gold); }
meter::-moz-meter-bar { background: var(--gold); }
.progress-highlight meter { margin-top: 12px; }
.dashboard-detail-grid { display: grid; margin-top: 32px; grid-template-columns: .7fr 1.3fr; gap: 32px; }
.dashboard-panel { padding: 28px; background: var(--paper); border: 1px solid var(--line); }
.panel-heading { margin-bottom: 24px; }
.panel-heading h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.panel-heading p { margin: 5px 0 0; color: #647477; font-size: 12px; }
.status-list { display: grid; }
.status-list > div { display: flex; padding: 14px 0; justify-content: space-between; border-top: 1px solid var(--line); }
.status-list span { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.status-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.status-dot.completed { background: var(--teal-soft); }
.status-dot.planned { background: #9ba5a1; }
.status-dot.delayed { background: #a95d45; }
.territory-list { display: grid; max-height: 345px; overflow-y: auto; }
.territory-row { display: grid; padding: 11px 0; grid-template-columns: minmax(130px, 1fr) minmax(100px, 1fr) 42px; gap: 14px; align-items: center; border-top: 1px solid var(--line); }
.territory-row div { display: flex; flex-direction: column; }
.territory-row strong { font-size: 12px; }
.territory-row span { color: #718083; font-size: 10px; }
.territory-row b { font-size: 11px; text-align: right; }
.public-kpis { display: grid; margin-top: 32px; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.public-kpis article { padding: 24px; color: var(--white); background: var(--teal); }
.public-kpis h3 { min-height: 44px; margin: 12px 0 28px; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.public-kpis strong { display: block; color: var(--gold); font-family: var(--serif); font-size: 38px; font-weight: 400; }
.public-kpis small { color: rgba(255,255,255,.6); }
.dashboard-method { max-width: 800px; margin: 34px 0 0; color: #647477; font-size: 11px; }
.dashboard-empty { display: flex; margin-top: 56px; padding: 44px; gap: 18px; align-items: center; color: #647477; border: 1px solid var(--line); }
.dashboard-empty span { color: var(--gold); font-size: 32px; }
.dashboard-empty p { margin: 0; }

.territory-heading { display: grid; grid-template-columns: 1fr minmax(280px, 430px); gap: 50px; align-items: end; }
.territory-heading > p { color: #607174; }
.municipality-grid { display: grid; margin-top: 70px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.municipality-card { min-width: 0; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.municipality-card figure { position: relative; height: 245px; margin: 0; overflow: hidden; background: var(--sand); }
.municipality-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.municipality-card:hover img { transform: scale(1.035); }
.municipality-card figcaption { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; color: rgba(255,255,255,.86); background: rgba(3,36,39,.72); font-size: 8px; opacity: 0; transition: opacity .2s; }
.municipality-card:hover figcaption, .municipality-card:focus-within figcaption { opacity: 1; }
.card-copy { padding: 20px 6px 12px; }
.card-copy h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.card-copy p { margin: 0; color: #647477; font-size: 13px; }
.card-copy h3 a { text-decoration: none; }
.card-copy h3 a:hover, .card-links a:hover { text-decoration: underline; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 12px; font-weight: 600; }
.card-links a:last-child { color: #28709a; }

.municipality-hero { display: grid; padding: 154px clamp(24px, 8vw, 124px) 70px; color: var(--white); background: var(--teal); grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.municipality-hero h1 { font-size: clamp(48px, 6vw, 84px); overflow-wrap: anywhere; }
.municipality-hero-copy > p:not(.eyebrow) { max-width: 560px; color: rgba(255,255,255,.85); font-size: 19px; }
.municipality-hero .button { margin-top: 20px; }
.municipality-hero figure { margin: 0; }
.municipality-hero img { display: block; width: 100%; max-height: 430px; aspect-ratio: 3 / 2; object-fit: cover; }
.municipality-hero figcaption { padding-top: 8px; font-size: 11px; color: rgba(255,255,255,.85); }
.municipality-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 350px); gap: clamp(40px, 8vw, 110px); }
.municipality-story h2 { font-size: clamp(42px, 5vw, 68px); }
.municipality-story .lead { font-family: var(--serif); font-size: 24px; line-height: 1.4; }
.municipality-story > p:not(.eyebrow), .municipality-sources p { color: #516466; }
.municipality-story h3 { margin: 36px 0 10px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.place-list { display: grid; padding: 0; list-style: none; }
.place-list li { padding: 15px 0; border-top: 1px solid var(--line); }
.place-list li p { margin: 6px 0 0; color: #516466; }
.place-list li:last-child { border-bottom: 1px solid var(--line); }
.municipality-sources { margin-top: 38px; }
.municipality-sources a { display: inline-block; margin: 6px 0; }
.municipality-aside { align-self: start; padding: 26px; background: #f4efe6; }
.municipality-aside h2 { font-family: var(--serif); font-size: 27px; }
.municipality-aside ul { margin: 20px 0; padding: 0; list-style: none; }
.municipality-aside li { border-top: 1px solid var(--line); }
.municipality-aside li:last-child { border-bottom: 1px solid var(--line); }
.municipality-aside li a { display: flex; padding: 9px 0; justify-content: space-between; text-decoration: none; font-size: 13px; }
.municipality-aside a[aria-current="page"] { font-weight: 700; color: #225d86; }
.all-towns { font-size: 12px; }
.municipality-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 6px; }
.municipality-index a { padding: 7px 11px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; text-decoration: none; }
.municipality-index a:hover { background: #f4efe6; text-decoration: underline; }
.municipality-topic { padding-top: 12px; scroll-margin-top: 24px; }
.municipality-topic h3 { border-top: 1px solid var(--line); padding-top: 22px; }
.municipality-topic p { color: #516466; }
.municipality-topic .municipality-caution, .municipality-sources .municipality-caution { padding: 12px 16px; color: var(--ink); background: #f4efe6; border-left: 3px solid var(--gold); font-size: 13px; }
.municipality-itineraries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.municipality-itineraries > div { padding: 18px; background: var(--white); border: 1px solid var(--line); }
.municipality-itineraries h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.municipality-itineraries p { margin: 0; font-size: 14px; }
.municipality-itineraries p + p { margin-top: 12px; }

.access { display: grid; padding: clamp(70px, 9vw, 120px) clamp(24px, 8vw, 124px); color: var(--white); background: #18315c; grid-template-columns: 1fr minmax(340px, 500px); gap: 60px; align-items: center; }
.access h2 { max-width: 650px; font-size: clamp(46px, 5vw, 72px); }
.access > div > p:last-child { max-width: 590px; color: rgba(255,255,255,.64); }
.access-panel { display: grid; padding: 32px; border: 1px solid rgba(255,255,255,.22); grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; }
.access-panel p { margin: 0; color: rgba(255,255,255,.65); font-size: 13px; }
.access-panel strong { color: var(--white); }
.access-panel .button { grid-column: 1 / -1; margin-top: 12px; }
.lock { color: var(--gold); font-size: 28px; }

footer { padding: 58px clamp(24px, 8vw, 124px) 38px; color: rgba(255,255,255,.66); background: #122647; font-size: 12px; }
.footer-brand { display: inline-block; }
.footer-brand img { display: block; max-width: min(244px, 65vw); height: auto; }
.footer-meta { display: flex; margin-top: 36px; padding-top: 20px; gap: 24px; border-top: 1px solid rgba(255,255,255,.14); }
footer details { margin-top: 20px; }
footer summary { cursor: pointer; }
footer ul { columns: 2; padding-left: 18px; }

@media (max-width: 900px) {
  nav > a:not(.nav-access) { display: none; }
  .hero { min-height: 720px; }
  .intro, .vision, .territory-heading, .access, .dashboard-heading, .dashboard-detail-grid, .municipality-hero, .municipality-body { grid-template-columns: 1fr; }
  .discover-grid { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .municipality-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-highlights { grid-template-columns: repeat(2, 1fr); }
  .vision { min-height: auto; }
  .access-panel { max-width: 520px; }
}

@media (max-width: 600px) {
  .site-header { height: 76px; padding: 0 20px; }
  .brand img { width: min(195px, 50vw); }
  .nav-access { padding: 8px 10px; font-size: 11px; }
  .hero-content { padding: 140px 20px 30px; }
  .hero-shade { background: linear-gradient(90deg, rgba(12,29,59,.9), rgba(18,44,83,.38)), linear-gradient(0deg, rgba(0,0,0,.4), transparent 55%); }
  .hero-caption { display: none; }
  .button { width: 100%; }
  .section { padding: 84px 20px; }
  .section-number { top: 28px; left: 20px; }
  .municipality-grid { margin-top: 42px; grid-template-columns: 1fr; }
  .dashboard-highlights, .public-kpis, .municipality-itineraries { grid-template-columns: 1fr; }
  .dashboard-highlights article { min-height: 150px; }
  .territory-row { grid-template-columns: 1fr 80px 36px; }
  .municipality-card figure { height: 235px; }
  .municipality-card figcaption { opacity: 1; }
  .vision, .access { padding: 74px 20px; }
  .municipality-hero { padding: 120px 20px 52px; }
  .access-panel { min-width: 0; padding: 22px; }
  .footer-meta { flex-direction: column; gap: 8px; }
  footer ul { columns: 1; }
}

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