/* ==========================================================================
   Pilgrimage Italy — theme
   Bootstrap 5.3 + Raleway. Palette: white & light blue (azzurro).
   Change the colours in :root to restyle the whole site.
   ========================================================================== */

:root {
  /* Palette */
  --pi-white:      #ffffff;
  --pi-mist:       #f5f9fc;   /* alternate section background */
  --pi-sky-50:     #eaf3fa;   /* pale azure surfaces */
  --pi-sky-100:    #d6e8f5;
  --pi-sky-300:    #8fc3e8;   /* light accent, ornaments */
  --pi-azure:      #2b7bb9;   /* primary — buttons, links */
  --pi-azure-600:  #1f6aa3;   /* hover */
  --pi-azure-800:  #164e78;   /* deep accent */
  --pi-ink:        #1b2f45;   /* headings */
  --pi-text:       #2c3e50;   /* body text */
  --pi-muted:      #5d6f80;
  --pi-line:       #e1ebf3;
  --pi-star:       #e2a93b;

  --pi-radius:     16px;
  --pi-radius-sm:  10px;
  --pi-shadow:     0 1px 2px rgba(22, 78, 120, .04), 0 8px 24px rgba(22, 78, 120, .06);
  --pi-shadow-lg:  0 2px 4px rgba(22, 78, 120, .05), 0 18px 44px rgba(43, 123, 185, .16);
  --pi-hero-grad:  linear-gradient(180deg, rgba(12, 44, 72, .55) 0%, rgba(12, 44, 72, .18) 38%, rgba(12, 44, 72, .82) 100%);

  /* Bootstrap overrides */
  --bs-body-font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.75;
  --bs-body-color: var(--pi-text);
  --bs-body-bg: var(--pi-white);
  --bs-primary: #2b7bb9;
  --bs-primary-rgb: 43, 123, 185;
  --bs-link-color: var(--pi-azure);
  --bs-link-color-rgb: 43, 123, 185;
  --bs-link-hover-color: var(--pi-azure-800);
  --bs-link-hover-color-rgb: 22, 78, 120;
  --bs-border-color: var(--pi-line);
  --bs-border-radius: var(--pi-radius-sm);
  --bs-secondary-color: var(--pi-muted);
}

/* ---------- Base typography ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-feature-settings: "lnum" 1, "pnum" 1;   /* Raleway: lining numerals for readability */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--bs-body-font-family);
  color: var(--pi-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}
h1, .h1 { font-weight: 600; }
p { text-wrap: pretty; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong, b { font-weight: 600; color: var(--pi-ink); }
::selection { background: var(--pi-sky-100); color: var(--pi-ink); }
:focus-visible { outline: 3px solid var(--pi-sky-300); outline-offset: 2px; }
.text-muted { color: var(--pi-muted) !important; }
.text-star { color: var(--pi-star); }

main, .site-footer { overflow-x: clip; }   /* wide Bootstrap gutters (g-5) never cause horizontal scroll */

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--pi-azure); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pi-azure); margin-bottom: .75rem;
}
.eyebrow-light { color: #cfe6f7; }
.lead-text { font-size: 1.15rem; color: var(--pi-muted); max-width: 46rem; line-height: 1.75; }

/* Ornament: thin lines with a small cross */
.ornament { display: flex; align-items: center; justify-content: center; gap: .75rem; color: var(--pi-sky-300); margin: .9rem auto 1.1rem; }
.ornament span { height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--pi-sky-300)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--pi-sky-300), transparent); }

/* ---------- Layout helpers ---------- */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-mist { background: var(--pi-mist); }
.section-sky { background: linear-gradient(180deg, var(--pi-white) 0%, var(--pi-sky-50) 100%); }
.section-title { margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 0; }
.prose { max-width: 46rem; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.85; }
.prose h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--pi-azure); }
.prose a { font-weight: 500; }
.content-wrap { padding: 3rem 0 5rem; }
.article-body section { scroll-margin-top: 100px; }
mark[title] { background: linear-gradient(transparent 60%, var(--pi-sky-100) 60%); color: inherit; padding: 0 .1em; cursor: help; font-weight: 600; }
.block { margin: 4.5rem 0; }
.block-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.5rem; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: .7rem 1.4rem; transition: all .25s ease; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.02rem; }
.btn-sm { padding: .4rem .9rem; }
.btn .bi { font-size: .95em; margin-left: .15rem; }
.btn-primary {
  --bs-btn-bg: var(--pi-azure); --bs-btn-border-color: var(--pi-azure);
  --bs-btn-hover-bg: var(--pi-azure-600); --bs-btn-hover-border-color: var(--pi-azure-600);
  --bs-btn-active-bg: var(--pi-azure-800); --bs-btn-active-border-color: var(--pi-azure-800);
  --bs-btn-disabled-bg: var(--pi-sky-300); --bs-btn-disabled-border-color: var(--pi-sky-300);
  box-shadow: 0 6px 16px rgba(43, 123, 185, .22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(43, 123, 185, .3); }
.btn-soft { background: var(--pi-sky-50); color: var(--pi-azure-800); border: 1px solid var(--pi-sky-100); }
.btn-soft:hover, .btn-soft:focus { background: var(--pi-sky-100); color: var(--pi-azure-800); }
.btn-soft:disabled { opacity: .5; }
.btn-white { background: #fff; color: var(--pi-azure-800); border: 1px solid #fff; }
.btn-white:hover { background: var(--pi-sky-50); color: var(--pi-azure-800); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--pi-azure-800); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--pi-azure); text-decoration: none; font-size: .95rem; }
.link-arrow .bi { transition: transform .25s ease; }
a:hover .link-arrow .bi, .link-arrow:hover .bi { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1030; transition: background .3s ease, box-shadow .3s ease, transform .3s ease; }
.site-header .navbar { padding: 1rem 0; transition: padding .3s ease; }
.site-header.is-solid { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--pi-line), 0 6px 24px rgba(22, 78, 120, .05); }
.site-header.is-solid .navbar { padding: .6rem 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pi-azure); color: #fff; box-shadow: 0 4px 12px rgba(43, 123, 185, .3); }
.brand-name { font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; color: var(--pi-ink); }
.brand-name em { font-style: normal; font-weight: 300; color: var(--pi-azure); }
.site-header .nav-link { font-weight: 500; font-size: .96rem; color: var(--pi-ink); padding: .5rem .85rem !important; position: relative; }
.site-header .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--pi-azure); transform: scaleX(0); transition: transform .25s ease; }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--pi-azure); }
.navbar-toggler { border: 0; font-size: 1.6rem; color: var(--pi-ink); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }
/* transparent header over photo heroes */
.site-header:not(.is-solid) .brand-name, .site-header:not(.is-solid) .nav-link, .site-header:not(.is-solid) .navbar-toggler { color: #fff; }
.site-header:not(.is-solid) .brand-name em { color: #cfe6f7; }
.site-header:not(.is-solid) .nav-link::after { background: #fff; }
.site-header:not(.is-solid) .brand-name { text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.no-hero main { padding-top: 84px; }

.mobile-nav { --bs-offcanvas-width: 320px; }
.mobile-nav .brand-name { font-size: 1.2rem; }
.mobile-link { display: block; padding: .85rem 0; border-bottom: 1px solid var(--pi-line); font-size: 1.2rem; font-weight: 500; color: var(--pi-ink); text-decoration: none; }
.mobile-link.active, .mobile-link:hover { color: var(--pi-azure); }

/* ---------- Home hero ---------- */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--pi-azure-800); }
.home-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 44, 72, .5) 0%, rgba(12, 44, 72, .3) 45%, rgba(12, 44, 72, .78) 100%); z-index: 1; }
.home-hero .container-xl { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 5rem; }
.home-hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.25rem; }
.home-hero h1 strong { font-weight: 700; color: #fff; }
.home-hero .hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .9); max-width: 38rem; margin: 0 auto 2.25rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 760px; margin: 3.5rem auto 0; background: rgba(255, 255, 255, .18); border-radius: var(--pi-radius); overflow: hidden; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .22); }
.hero-stats > div { background: rgba(12, 44, 72, .25); padding: 1.1rem .5rem; text-align: center; }
.hero-stats .num { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: #fff; line-height: 1.1; }
.hero-stats .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .8); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; z-index: 2; transform: translateX(-50%); color: #fff; font-size: 1.5rem; animation: bob 2.2s ease-in-out infinite; text-decoration: none; opacity: .85; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }
@media (max-width: 575.98px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page hero (detail pages) ---------- */
.page-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--pi-azure-800); }
.page-hero-tall { min-height: 68vh; }
/* Hero without a photo (itineraries that do not have their own verified image yet) */
.page-hero-plain { min-height: 46vh; background:
  url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 2h3v6.5H20v3h-6.5V22h-3V11.5H4v-3h6.5z' fill='%23ffffff' fill-opacity='0.035'/%3E%3C/svg%3E"),
  radial-gradient(900px 400px at 85% 0%, rgba(143, 195, 232, .45), transparent 60%),
  linear-gradient(135deg, #123f63 0%, #1f6aa3 55%, #3f8fca 100%); }
.page-hero-plain .page-hero-content { padding-top: 7.5rem; padding-bottom: 3rem; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: var(--pi-hero-grad); }
.page-hero-content { position: relative; z-index: 2; padding-top: 8rem; padding-bottom: 3.5rem; }
.page-hero-title { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 600; margin-bottom: .75rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.page-hero-lead { font-size: 1.2rem; color: rgba(255, 255, 255, .9); max-width: 42rem; margin-bottom: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: rgba(255, 255, 255, .8); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; opacity: .7; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); color: #fff; }
.hero-badge-solid { background: #fff; color: var(--pi-azure-800); border-color: #fff; font-weight: 600; }

/* ---------- Light page header ---------- */
.page-head { padding: 4.5rem 0 3rem; background: radial-gradient(1200px 400px at 50% -10%, var(--pi-sky-50), transparent 70%), var(--pi-white); border-bottom: 1px solid var(--pi-line); }
.page-head-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 1rem; }
.page-head-narrow { max-width: 50rem; }
.page-head-narrow .lead-text { margin-left: auto; margin-right: auto; }
.page-head-inner { max-width: 52rem; }

/* ---------- Cards ---------- */
.card-soft { background: #fff; border: 1px solid var(--pi-line); border-radius: var(--pi-radius); box-shadow: var(--pi-shadow); }
.card-tint { background: var(--pi-sky-50); border: 1px solid var(--pi-sky-100); border-radius: var(--pi-radius); }
.lift { transition: transform .3s ease, box-shadow .3s ease; }
.lift:hover { transform: translateY(-5px); box-shadow: var(--pi-shadow-lg); }

/* Region card */
.region-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--pi-line); border-radius: var(--pi-radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--pi-shadow); transition: transform .3s ease, box-shadow .3s ease; }
.region-card:hover { transform: translateY(-5px); box-shadow: var(--pi-shadow-lg); color: inherit; }
.region-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.region-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.region-card:hover .region-card-media img { transform: scale(1.05); }
.region-card-count { position: absolute; top: .9rem; right: .9rem; background: rgba(255, 255, 255, .95); color: var(--pi-azure-800); font-weight: 700; border-radius: 999px; padding: .2rem .75rem; font-size: .95rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.region-card-count small { font-weight: 500; font-size: .75rem; color: var(--pi-muted); }
.region-card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.region-card-macro { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pi-azure); font-weight: 600; margin-bottom: .25rem; }
.region-card-title { font-size: 1.3rem; margin-bottom: .6rem; }
.region-card-text { font-size: .95rem; color: var(--pi-muted); line-height: 1.65; }
.region-card-sites { list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .9rem; color: var(--pi-muted); line-height: 1.55; }
.region-card-sites li { position: relative; padding-left: 1rem; margin-bottom: .2rem; }
.region-card-sites li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--pi-sky-300); }
.region-card .link-arrow { margin-top: auto; }
.region-grid-item.is-hidden { display: none; }

/* Difficulty badges */
.diff { display: inline-block; font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .02em; }
.diff-easy { background: #e5f5ee; color: #1e6b4f; }
.diff-moderate { background: var(--pi-sky-50); color: var(--pi-azure-800); }
.diff-challenging { background: #fbeceb; color: #9c3b36; }

/* Itinerary card */
.itin-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--pi-line); border-radius: var(--pi-radius); overflow: hidden; box-shadow: var(--pi-shadow); transition: transform .3s ease, box-shadow .3s ease; }
.itin-card:hover { transform: translateY(-5px); box-shadow: var(--pi-shadow-lg); }
.itin-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.itin-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.itin-card:hover .itin-card-media img { transform: scale(1.05); }
.itin-card-duration { position: absolute; left: .9rem; bottom: .9rem; background: rgba(255, 255, 255, .95); color: var(--pi-azure-800); font-weight: 600; font-size: .82rem; padding: .3rem .75rem; border-radius: 999px; }
.itin-card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.itin-card-region { font-size: .8rem; color: var(--pi-azure); font-weight: 600; margin-bottom: .35rem; letter-spacing: .02em; }
.itin-card-title { font-size: 1.25rem; margin-bottom: .6rem; }
.itin-card-title a { color: var(--pi-ink); text-decoration: none; }
.itin-card-title a:hover { color: var(--pi-azure); }
.itin-card-text { font-size: .94rem; color: var(--pi-muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.itin-card-stops { list-style: none; counter-reset: s; padding: 0; margin: .25rem 0 .75rem; font-size: .9rem; }
.itin-card-stops li { counter-increment: s; position: relative; padding-left: 1.8rem; margin-bottom: .35rem; color: var(--pi-text); line-height: 1.45; }
.itin-card-stops li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--pi-sky-50); color: var(--pi-azure-800); font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.itin-card-season { font-size: .85rem; color: var(--pi-muted); margin-bottom: .75rem; }
.itin-card-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--pi-line); }

/* Generic image card (faith, related) */
.media-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--pi-line); border-radius: var(--pi-radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--pi-shadow); transition: transform .3s ease, box-shadow .3s ease; }
.media-card:hover { transform: translateY(-5px); box-shadow: var(--pi-shadow-lg); color: inherit; }
.media-card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.media-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media-card:hover .media-card-img img { transform: scale(1.05); }
.media-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.media-card-body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.media-card-body p { font-size: .94rem; color: var(--pi-muted); line-height: 1.65; }
.media-card .link-arrow { margin-top: auto; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pi-azure); background: var(--pi-sky-50); border-radius: 999px; padding: .25rem .7rem; }

/* Photo tile (related regions) */
.photo-tile { position: relative; display: block; height: 15rem; border-radius: var(--pi-radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--pi-shadow); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile::after { content: ""; position: absolute; inset: 0; background: var(--pi-hero-grad); }
.photo-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.4rem; z-index: 1; }
.photo-tile-body h3 { color: #fff; font-size: 1.35rem; margin: 0; }
.photo-tile-body p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .85rem; }

/* ---------- Quick answer + freshness ---------- */
.quick-answer { position: relative; margin: 2rem 0; padding: 1.75rem 1.9rem; border-radius: var(--pi-radius); background: linear-gradient(135deg, var(--pi-sky-50), #fff 70%); border: 1px solid var(--pi-sky-100); border-left: 4px solid var(--pi-azure); }
.quick-answer-q { font-size: 1.2rem; font-weight: 600; color: var(--pi-ink); margin-bottom: .6rem; }
.quick-answer-body p:last-child { margin-bottom: 0; }
.quick-answer-body { font-size: 1.05rem; line-height: 1.8; }
.freshness { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--pi-line); border-bottom: 1px solid var(--pi-line); font-size: .88rem; color: var(--pi-muted); }
.freshness .bi { color: var(--pi-azure); margin-right: .2rem; }
.freshness .sep { color: var(--pi-sky-300); }

/* ---------- Key facts / stats ---------- */
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--pi-line); font-size: .97rem; }
.facts li:last-child { border-bottom: 0; }
.facts .bi { color: var(--pi-azure); font-size: 1.1rem; margin-top: .1rem; }
.fact-tile { text-align: center; padding: 1.4rem 1rem; height: 100%; }
.fact-tile .bi { font-size: 1.5rem; color: var(--pi-azure); }
.fact-tile .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--pi-muted); margin: .5rem 0 .25rem; }
.fact-tile .val { font-weight: 600; color: var(--pi-ink); font-size: .98rem; line-height: 1.45; }

/* ---------- Accordions ---------- */
.accordion-soft { --bs-accordion-border-color: var(--pi-line); --bs-accordion-border-radius: var(--pi-radius); --bs-accordion-inner-border-radius: calc(var(--pi-radius) - 1px); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(43, 123, 185, .2); --bs-accordion-active-bg: var(--pi-sky-50); --bs-accordion-active-color: var(--pi-ink); --bs-accordion-btn-padding-y: 1.15rem; --bs-accordion-btn-padding-x: 1.4rem; --bs-accordion-body-padding-x: 1.4rem; --bs-accordion-body-padding-y: 1.2rem; background: #fff; box-shadow: var(--pi-shadow); border-radius: var(--pi-radius); }
.accordion-soft .accordion-button { font-weight: 600; color: var(--pi-ink); font-size: 1.02rem; }
.accordion-soft .accordion-body { color: var(--pi-text); line-height: 1.8; }

/* Regional itineraries list */
.ritin { border: 1px solid var(--pi-line); border-radius: var(--pi-radius); background: #fff; box-shadow: var(--pi-shadow); overflow: hidden; }
.ritin + .ritin { margin-top: .85rem; }
.ritin-head { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: none; border: 0; text-align: left; transition: background .2s ease; }
.ritin-head:hover { background: var(--pi-mist); }
.ritin-num { flex: 0 0 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--pi-sky-50); color: var(--pi-azure-800); font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1px solid var(--pi-sky-100); }
.ritin-title { font-size: 1.08rem; font-weight: 600; color: var(--pi-ink); margin: 0 0 .3rem; line-height: 1.35; }
.ritin-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .82rem; color: var(--pi-muted); }
.ritin-chevron { margin-left: auto; color: var(--pi-muted); transition: transform .3s ease; }
.ritin-head[aria-expanded="true"] .ritin-chevron { transform: rotate(180deg); }
.ritin-body { padding: 0 1.3rem 1.4rem 4.9rem; border-top: 1px solid var(--pi-line); }
.ritin-body p { margin: 1.1rem 0; }
.ritin-body h4 { font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
.ritin-body ul { padding-left: 1.1rem; font-size: .93rem; margin-bottom: 0; }
.ritin-body ul li::marker { color: var(--pi-azure); }
@media (max-width: 575.98px) { .ritin-body { padding-left: 1.3rem; } }

/* Region index of itineraries (each row links to its own page) */
.itin-index { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.itin-row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--pi-line); border-radius: var(--pi-radius); background: #fff; box-shadow: var(--pi-shadow); text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.itin-row:hover { transform: translateY(-2px); box-shadow: var(--pi-shadow-lg); border-color: var(--pi-sky-100); color: inherit; }
.itin-row:hover .ritin-title { color: var(--pi-azure); }
.itin-row:hover .ritin-chevron { color: var(--pi-azure); transform: translateX(4px); }
.itin-row-text { display: block; font-size: .92rem; color: var(--pi-muted); line-height: 1.55; }
.min-w-0 { min-width: 0; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.05rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--pi-sky-100), var(--pi-sky-300)); }
.timeline > li { position: relative; padding-left: 3.4rem; margin-bottom: 1rem; }
.timeline-dot { position: absolute; left: 0; top: .9rem; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--pi-azure); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px #fff; }

/* ---------- Map ---------- */
.map-wrap { position: relative; max-width: 640px; margin: 0 auto; }
.italy-map { width: 100%; height: auto; display: block; }
.italy-map .rg { fill: var(--pi-sky-50); stroke: var(--pi-sky-300); stroke-width: .7; cursor: pointer; transition: fill .2s ease, opacity .3s ease; outline: none; }
.italy-map .rg:hover, .italy-map .rg:focus { fill: var(--pi-sky-300); stroke: var(--pi-azure); stroke-width: 1; }
.italy-map .rg.dim { opacity: .3; }
.italy-map .rg.l1 { fill: #eaf3fa; } .italy-map .rg.l2 { fill: #d3e7f6; } .italy-map .rg.l3 { fill: #b3d6f0; } .italy-map .rg.l4 { fill: #8fc3e8; }
.italy-map .rg:hover { fill: var(--pi-azure) !important; }
.italy-map .mk { fill: #fff; stroke: var(--pi-azure); stroke-width: 1.5; pointer-events: none; }
.map-tip { position: absolute; pointer-events: none; z-index: 5; background: #fff; border: 1px solid var(--pi-line); box-shadow: var(--pi-shadow-lg); border-radius: 12px; padding: .7rem .9rem; min-width: 190px; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .15s ease; font-size: .85rem; line-height: 1.45; }
.map-tip.show { opacity: 1; }
.map-tip strong { display: block; font-size: 1rem; }
.map-legend { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .8rem; color: var(--pi-muted); margin-top: 1rem; }
.map-legend i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; }
.filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.filter-pill { border: 1px solid var(--pi-line); background: #fff; color: var(--pi-ink); padding: .45rem 1.15rem; border-radius: 999px; font-weight: 500; font-size: .92rem; transition: all .2s ease; }
.filter-pill:hover { border-color: var(--pi-sky-300); }
.filter-pill.active { background: var(--pi-azure); border-color: var(--pi-azure); color: #fff; }

/* ---------- Faith / popes / stories ---------- */
.pope-card { padding: 1.6rem; height: 100%; display: flex; flex-direction: column; }
.pope-flag { font-size: 1.6rem; line-height: 1; }
.pope-card h3 { font-size: 1.25rem; margin: .6rem 0 .15rem; }
.pope-card .birth { font-size: .88rem; color: var(--pi-muted); font-style: italic; margin-bottom: .6rem; }
.pope-card .pontificate { font-size: .8rem; font-weight: 600; color: var(--pi-azure-800); background: var(--pi-sky-50); border-radius: 999px; padding: .2rem .7rem; display: inline-block; margin-bottom: .8rem; }
.pope-card p { font-size: .94rem; line-height: 1.7; }
.pope-card .connection { font-size: .9rem; background: var(--pi-mist); border-radius: var(--pi-radius-sm); padding: .8rem 1rem; color: var(--pi-text); }
.story-card .story-meta { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; flex-wrap: wrap; }

/* ---------- Planner ---------- */
.planner { max-width: 820px; background: #fff; border: 1px solid var(--pi-line); border-radius: 22px; box-shadow: var(--pi-shadow-lg); padding: clamp(1.5rem, 4vw, 2.75rem); }
.planner-progress { margin-bottom: 1.75rem; color: var(--pi-muted); }
.planner-progress .progress { background: var(--pi-sky-50); }
.planner-progress .progress-bar { background: var(--pi-azure); transition: width .35s ease; }
.planner-step { display: none; border: 0; padding: 0; margin: 0; min-height: 230px; }
.planner-step.is-active { display: block; animation: fadeUp .35s ease; }
.no-js .planner-step { display: block; margin-bottom: 2rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.planner-title { font-size: 1.5rem; font-weight: 600; color: var(--pi-ink); margin-bottom: .25rem; float: none; width: auto; }
.planner-help { color: var(--pi-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; text-align: center; height: 100%; min-height: 110px; padding: 1rem .75rem; border: 1.5px solid var(--pi-line); border-radius: 14px; cursor: pointer; transition: all .2s ease; font-weight: 600; font-size: .92rem; color: var(--pi-ink); background: #fff; }
.choice .bi { font-size: 1.6rem; color: var(--pi-azure); }
.choice:hover { border-color: var(--pi-sky-300); background: var(--pi-mist); }
.btn-check:checked + .choice { border-color: var(--pi-azure); background: var(--pi-sky-50); box-shadow: 0 0 0 3px rgba(43, 123, 185, .12); }
.btn-check:focus-visible + .choice, .btn-check:focus-visible + .chip { outline: 3px solid var(--pi-sky-300); outline-offset: 2px; }
.chip { display: inline-block; padding: .45rem 1rem; border: 1.5px solid var(--pi-line); border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 500; transition: all .2s ease; background: #fff; }
.chip:hover { border-color: var(--pi-sky-300); }
.btn-check:checked + .chip { background: var(--pi-azure); border-color: var(--pi-azure); color: #fff; }
.duration-value { font-size: 2.6rem; font-weight: 300; color: var(--pi-ink); }
.duration-value b { font-weight: 600; color: var(--pi-azure); }
.duration-label { font-size: 1.15rem; font-weight: 600; color: var(--pi-azure-800); }
.form-range::-webkit-slider-thumb { background: var(--pi-azure); }
.form-range::-moz-range-thumb { background: var(--pi-azure); }
.form-range::-webkit-slider-runnable-track { background: var(--pi-sky-100); }
.planner-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--pi-line); }
.planner-success { text-align: center; padding: 2rem 1rem; }
.success-icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; margin: 0 auto 1.25rem; background: var(--pi-sky-50); color: var(--pi-azure); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .9rem; color: var(--pi-ink); }
.form-control, .form-select { border-color: var(--pi-line); border-radius: 12px; padding: .7rem 1rem; }
.form-control-lg, .form-select-lg { font-size: 1.02rem; }
.form-control:focus, .form-select:focus { border-color: var(--pi-sky-300); box-shadow: 0 0 0 .22rem rgba(43, 123, 185, .14); }
.form-note { font-size: .82rem; color: var(--pi-muted); margin: .9rem 0 0; }
.form-feedback:empty { display: none; }
.form-feedback { margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; font-size: .93rem; font-weight: 500; }
.form-feedback.ok { background: #e5f5ee; color: #1e6b4f; }
.form-feedback.err { background: #fbeceb; color: #9c3b36; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Newsletter ---------- */
.newsletter-card { background: #fff; border: 1px solid var(--pi-sky-100); border-radius: 24px; padding: clamp(1.75rem, 5vw, 3.5rem); box-shadow: var(--pi-shadow-lg); position: relative; overflow: hidden; }
.newsletter-card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--pi-sky-50), transparent 70%); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--pi-azure); font-size: 1.15rem; }

/* ---------- Partners ---------- */
.partner-card { padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.partner-card h3 { font-size: 1.25rem; }
.partner-card .langs span { font-size: .72rem; font-weight: 700; border: 1px solid var(--pi-line); border-radius: 6px; padding: .1rem .4rem; color: var(--pi-muted); }
.partner-card .trust { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--pi-muted); margin-top: 1rem; }
.partner-card .trust .bi { color: #1e6b4f; }

/* ---------- Site spotlight ---------- */
.site-card .media-card-body .loc { font-size: .85rem; color: var(--pi-azure); font-weight: 600; margin-bottom: .6rem; }
.site-card .visiting { font-size: .88rem; background: var(--pi-mist); border-radius: var(--pi-radius-sm); padding: .75rem .9rem; margin-bottom: 1rem; }

/* CTA tiles */
.cta-tile { display: block; padding: 1.75rem; border-radius: var(--pi-radius); text-decoration: none; height: 100%; transition: transform .3s ease, box-shadow .3s ease; }
.cta-tile:hover { transform: translateY(-4px); box-shadow: var(--pi-shadow-lg); }
.cta-tile .k { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .5rem; }
.cta-tile h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.cta-tile p { margin: 0; font-size: .93rem; }
.cta-azure { background: var(--pi-azure); color: #fff; }
.cta-azure h3, .cta-azure .k { color: #fff; }
.cta-azure p { color: rgba(255, 255, 255, .88); }
.cta-sky { background: var(--pi-sky-50); color: var(--pi-text); border: 1px solid var(--pi-sky-100); }
.cta-sky .k { color: var(--pi-azure); }
.cta-white { background: #fff; color: var(--pi-text); border: 1px solid var(--pi-line); box-shadow: var(--pi-shadow); }
.cta-white .k { color: var(--pi-azure); }

/* Tables */
.table-soft { --bs-table-bg: #fff; --bs-table-striped-bg: var(--pi-mist); border: 1px solid var(--pi-line); border-radius: var(--pi-radius); overflow: hidden; box-shadow: var(--pi-shadow); }
.table-soft thead th { background: var(--pi-sky-50); color: var(--pi-ink); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; padding: 1rem; border-bottom: 1px solid var(--pi-sky-100); }
.table-soft td { padding: .9rem 1rem; vertical-align: middle; }
.bar-row { margin-bottom: 1rem; }
.bar-row .bar { height: 10px; border-radius: 999px; background: var(--pi-sky-50); overflow: hidden; }
.bar-row .bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pi-sky-300), var(--pi-azure)); }

/* Calendar */
.month-block { margin-bottom: 2.5rem; }
.month-block h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.month-block h2::after { content: ""; flex: 1; height: 1px; background: var(--pi-line); }
.event-card { padding: 1.4rem 1.5rem; height: 100%; }
.event-card .date { display: inline-block; font-weight: 700; color: var(--pi-azure-800); background: var(--pi-sky-50); border-radius: 999px; padding: .2rem .75rem; font-size: .82rem; margin-bottom: .6rem; }
.event-card h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.event-card .where { font-size: .85rem; color: var(--pi-azure); font-weight: 600; margin-bottom: .5rem; }
.event-card p { font-size: .94rem; margin: 0; color: var(--pi-muted); }

/* Guide TOC */
.toc { position: sticky; top: 100px; }
.toc a { display: block; padding: .4rem 0 .4rem .9rem; border-left: 2px solid var(--pi-line); color: var(--pi-muted); text-decoration: none; font-size: .92rem; }
.toc a:hover, .toc a.active { color: var(--pi-azure); border-left-color: var(--pi-azure); }

/* Sitemap */
.sitemap-col h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.sitemap-col ul { list-style: none; padding: 0; }
.sitemap-col li { margin-bottom: .45rem; }
.sitemap-col a { text-decoration: none; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.notfound .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 200; color: var(--pi-sky-300); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pi-sky-50); border-top: 1px solid var(--pi-sky-100); padding: 4.5rem 0 2rem; margin-top: 0; color: var(--pi-text); }
.site-footer .brand-name { font-size: 1.25rem; }
.footer-text { color: var(--pi-muted); font-size: .95rem; max-width: 22rem; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pi-azure-800); margin-bottom: 1.1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .45rem; }
.footer-list a { color: var(--pi-text); text-decoration: none; font-size: .93rem; }
.footer-list a:hover { color: var(--pi-azure); text-decoration: underline; }
.footer-regions { columns: 2; column-gap: 1rem; }
.footer-regions a { font-size: .87rem; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--pi-azure-800); border: 1px solid var(--pi-sky-100); text-decoration: none; transition: all .2s ease; }
.social-btn:hover { background: var(--pi-azure); color: #fff; border-color: var(--pi-azure); }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--pi-sky-100); text-align: center; color: var(--pi-muted); font-size: .9rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
  .section { padding: 4rem 0; }
  .block { margin: 3.25rem 0; }
}

/* logo (PNG 400x165, artwork occupies x23-384, y51-113): cropped to its artwork, circle ~50px */
.brand-logo { --s: .8; position: relative; display: block; overflow: hidden; width: calc(361px * var(--s)); height: calc(62px * var(--s)); flex: none; }
.brand-logo img { position: absolute; max-width: none; width: calc(400px * var(--s)); height: auto; left: calc(-23px * var(--s)); top: calc(-51px * var(--s)); }
@media (max-width: 575.98px) { .brand-logo { --s: .65; } }
/* white wordmark: on the solid (white) header the logo sits on a deep-blue pill */
.site-header.is-solid .brand, .site-footer .brand, .mobile-nav .brand { background: #b3d6f0; border-radius: 999px; padding: 4px 14px 4px 6px; }
/* header button when scrolled / solid header: light sky blue, contrasts with the dark-blue logo */
.site-header.is-solid .btn-primary { --bs-btn-bg: var(--pi-sky-300); --bs-btn-border-color: var(--pi-sky-300); --bs-btn-color: var(--pi-azure-800); --bs-btn-hover-bg: #a9d3f0; --bs-btn-hover-border-color: #a9d3f0; --bs-btn-hover-color: var(--pi-azure-800); --bs-btn-active-bg: #a9d3f0; --bs-btn-active-border-color: #a9d3f0; --bs-btn-active-color: var(--pi-azure-800); font-weight: 600; }
/* solid header: keep the circle as is, redraw the white wordmark in deep blue so it reads on the light pill */
.site-header.is-solid .brand-logo img, .site-footer .brand-logo img, .mobile-nav .brand-logo img { clip-path: inset(0 calc((400px - 88px) * var(--s)) 0 0); }
.site-header.is-solid .brand-logo::after, .site-footer .brand-logo::after, .mobile-nav .brand-logo::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: calc(65px * var(--s)); background: var(--pi-azure-800); -webkit-mask: url(../img/logo.png) no-repeat; mask: url(../img/logo.png) no-repeat; -webkit-mask-size: calc(400px * var(--s)) auto; mask-size: calc(400px * var(--s)) auto; -webkit-mask-position: calc(-88px * var(--s)) calc(-51px * var(--s)); mask-position: calc(-88px * var(--s)) calc(-51px * var(--s)); }

/* ---------- Motion layer (assets/js/motion.js, GSAP) ---------- */
.js-motion .home-hero .container-xl > *, .js-motion .page-hero-content > * { visibility: hidden; }
.mw { display: inline-block; }
.js-toc a.active { color: var(--pi-azure); font-weight: 600; }
.italy-map.is-animating .rg { transition: none; }
/* ---------- Cookie consent bar (shown only when ga4_id is set) ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080; max-width: 760px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--pi-line); border-radius: var(--pi-radius); box-shadow: var(--pi-shadow-lg); padding: .9rem 1.1rem; }
.cookie-bar[hidden] { display: none; }
/* transparent header over a photo: all-white logo (circle, cross and rosary included) for contrast */
.brand-logo .logo-white { display: none; }
body.has-hero .site-header:not(.is-solid) .brand-logo .logo-white { display: block; }
body.has-hero .site-header:not(.is-solid) .brand-logo .logo-color { display: none; }
