/* =========================================================
   Parrocchia Immacolata Concezione – San Vito dei Normanni
   CSS nativo, nessun framework
   ========================================================= */

:root {
  --blue-900: #10264d;
  --blue-800: #173263;
  --blue-600: #2b4f8c;
  --blue-100: #e7eef8;
  --gold: #b8923a;
  --gold-light: #e6c36a;
  --gold-text: #7d5f1a;   /* oro per testi su fondo chiaro (contrasto AA) */
  --gold-btn: #8a6a1f;    /* oro per pulsanti con testo bianco */
  --cream: #fbf7ee;
  --paper: #fffdf8;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e4dccb;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 38, 77, .08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-600); }
a:hover { color: var(--gold-text); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--blue-800);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue-800);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .6em;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px var(--paper), 0 2px 8px rgba(16, 38, 77, .2);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--serif); font-size: 1.3rem; color: var(--blue-800); }
.brand__text small { font-size: .8rem; color: var(--muted); }

.topbar { transition: box-shadow .2s ease; }
.topbar.is-scrolled { box-shadow: 0 6px 24px rgba(16, 38, 77, .08); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--blue-800);
  font-weight: 600;
  font-size: .97rem;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--blue-100); color: var(--blue-800); }
.nav a.is-active:not(.nav__cta) { color: var(--blue-600); }
.nav a.is-active:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.nav a.nav__cta {
  margin-left: 10px;
  padding: 10px 20px;
  background: var(--blue-800);
  color: #fff;
}
.nav a.nav__cta:hover,
.nav a.nav__cta.is-active { background: var(--gold-btn); color: #fff; }

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-btn); color: #fff; }
.btn--gold:hover { background: #6f5418; color: #fff; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(230,195,106,.25), transparent 45%),
    linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
}
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero .eyebrow { color: var(--gold-light); }
.hero .lead { font-size: 1.15rem; max-width: 34em; color: #dfe7f4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__art {
  margin: 0;
  border-radius: 200px 200px 18px 18px;
  overflow: hidden;
  border: 6px solid rgba(230,195,106,.55);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  max-width: 420px;
  justify-self: center;
}
.hero__art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Immacolata ---------- */
.section--sky {
  background: linear-gradient(180deg, #dcebf7 0%, #eef4fa 55%, var(--cream) 100%);
}
.marian {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.marian__photo {
  margin: 0;
  max-width: 440px;
  justify-self: center;
  border-radius: 220px 220px 18px 18px;
  overflow: hidden;
  border: 6px solid #fff;
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  box-shadow: 0 24px 50px rgba(23, 50, 99, .2);
}
.marian__photo img { width: 100%; aspect-ratio: 1004 / 1357; object-fit: cover; }
.marian__text h2 { margin-bottom: .4em; }
.marian__quote {
  margin: 0 0 1.2em;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--blue-600);
}
.btn--blue { background: var(--blue-800); color: #fff; margin-top: 8px; }
.btn--blue:hover { background: var(--blue-600); color: #fff; }

/* ---------- Foto ---------- */
.photo-wide {
  margin: 0 auto 48px;
  max-width: 900px;
}
.photo-wide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.photo-wide figcaption {
  text-align: center;
  font-size: .92rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- Accesso rapido ---------- */
.hero { padding-bottom: clamp(88px, 10vw, 136px); }
.quick {
  position: relative;
  z-index: 2;
  margin-top: -52px;
}
.quick__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(16, 38, 77, .14);
  overflow: hidden;
}
.quick__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s ease;
}
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__item:hover { background: var(--cream); color: var(--ink); }
.quick__item svg {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 50%;
  background: var(--blue-100);
  fill: none;
  stroke: var(--blue-800);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick__item span { display: flex; flex-direction: column; min-width: 0; }
.quick__item small {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.quick__item strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-800);
  line-height: 1.25;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* ---------- Contenuti esterni (prima del consenso) ---------- */
.embed-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 340px;
  height: 100%;
  padding: 28px 24px;
  text-align: center;
  color: #dfe7f4;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    rgba(255, 255, 255, .04);
}
.embed-ph svg {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: rgba(230, 195, 106, .12);
}
.embed-ph p { max-width: 30em; margin: 0; }
.embed-ph a { font-size: .92rem; }
.embed-ph .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.embed-ph--light {
  min-height: 300px;
  color: var(--muted);
  background: var(--cream);
  border-radius: 10px;
}
.embed-ph--light svg { stroke: var(--blue-800); background: var(--blue-100); }
.embed-ph--light strong { color: var(--ink); }
.embed-ph--small { min-height: 0; padding: 24px; }

/* ---------- Pagine legali (privacy, 404) ---------- */
.legal__inner { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .6em; }
.legal li::marker { color: var(--gold); }
.legal code { background: var(--blue-100); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.legal .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.legal__updated { color: var(--muted); font-size: .95rem; }
.legal__table { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.legal__table th,
.legal__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table th { background: var(--blue-100); color: var(--blue-800); font-weight: 600; }
.legal__table tr:last-child td { border-bottom: 0; }
.notfound { text-align: center; padding: clamp(72px, 12vw, 140px) 0; }
.notfound__code { font-family: var(--serif); font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; color: var(--gold); margin: 0; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.notfound .hero__actions { justify-content: center; }
.notfound .btn--ghost { color: var(--blue-800); border-color: var(--blue-800); }
.notfound .btn--ghost:hover { background: var(--blue-100); color: var(--blue-800); }

/* ---------- Banner consenso ---------- */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  justify-content: center;
}
.consent[hidden] { display: none; }
.consent__box {
  max-width: 760px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(16, 38, 77, .25);
  font-size: .96rem;
}
.consent__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: .3em;
}
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.consent .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn--outline { background: transparent; color: var(--blue-800); box-shadow: inset 0 0 0 1.5px var(--blue-800); }
.btn--outline:hover { background: var(--blue-100); color: var(--blue-800); }

.linklike {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #dfe7f4;
  text-decoration: underline;
  cursor: pointer;
}
.linklike:hover { color: var(--gold-light); }
.footer__legal { display: block; margin-top: 6px; }

/* ---------- Torna su ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-800);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(16, 38, 77, .3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold-btn); color: #fff; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Accessibilità ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.quick__item:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.section--blue { background: var(--blue-800); color: #e6ecf6; }
.section--blue h2,
.section--blue h3 { color: #fff; }
.section--blue .eyebrow { color: var(--gold-light); }
.section--blue a { color: var(--gold-light); }
.section--blue a:hover { color: #fff; }

.section__head { text-align: center; margin-bottom: 44px; }
.section__head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- Orari ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .1em; }
.card__days { color: var(--muted); font-size: .95rem; }
.time {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--blue-600);
  margin: 0;
}
.time span { color: var(--gold); }
.time--small { font-size: 2rem; }
.time--multi {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.3;
}
.time--multi span { color: inherit; padding: 0 10px; white-space: nowrap; }
.time--multi span + span { border-left: 2px solid var(--gold); }
.card--feast {
  background: var(--blue-800);
  border-color: var(--blue-800);
}
.card--feast h3,
.card--feast .time { color: #fff; }
.card--feast .card__days { color: #c8d4ea; }
.note {
  max-width: 46em;
  margin: 28px auto 0;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Split / Prose ---------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.prose h3 { margin-top: 1em; }
.prose h3:first-child { margin-top: 0; }

.clergy,
.altars {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
}
.clergy ul { list-style: none; margin: 0 0 20px; padding: 0; }
.clergy li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.clergy li:last-child { border-bottom: 0; }
.role {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.name { font-family: var(--serif); font-size: 1.35rem; color: var(--blue-800); }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

.altars__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.altars ul { margin: 0; padding-left: 1.1em; }
.altars li::marker { color: var(--gold); }

.diocesi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.diocesi-card img { width: min(100%, 300px); height: auto; }
.diocesi-card span { font-weight: 600; color: var(--blue-600); }
.diocesi-card span::after { content: " →"; }
.diocesi-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 128px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 40px;
  padding-bottom: 28px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 122px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold);
}
.timeline li.is-key::before { background: var(--gold); }
.timeline .year {
  font-family: var(--serif);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  font-size: 1.15rem;
  color: var(--gold-text);
  text-align: right;
}
.timeline h3 { font-size: 1.3rem; margin-bottom: .2em; }
.timeline p { margin: 0; color: var(--muted); }
.timeline li.is-key h3 { color: var(--blue-600); }

/* ---------- Convento ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.features article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.ico { color: var(--gold-text); font-size: 1.4rem; }
.features p { margin: 0; color: var(--muted); }

/* ---------- Widget CEI ---------- */
.widgets {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}
.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
}
.widget iframe { max-width: 100%; }

/* ---------- Sostieni ---------- */
.support {
  display: grid;
  max-width: 560px;
  margin-inline: auto;
}
.support__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.support__card p { color: var(--muted); }
.support__card .link-arrow { margin-top: auto; }
.support__card--main { background: var(--blue-800); border-color: var(--blue-800); color: #dfe7f4; }
.support__card--main h3 { color: #fff; }
.support__card--main p { color: #dfe7f4; }
.support__card--main a { color: var(--gold-light); }
.support__card--main a:hover { color: #fff; }
.support__ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue-100);
}
.support__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-800); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support__card--main .support__ico { background: rgba(230, 195, 106, .15); }
.support__card--main .support__ico svg { stroke: var(--gold-light); }
.support__bank { margin: 0 0 16px; display: grid; gap: 6px; font-size: .95rem; }
.support__bank div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.support__bank dt { color: var(--gold-light); font-weight: 600; }
.support__bank dt::after { content: ":"; }
.support__bank dd { margin: 0; color: #fff; }
.support__iban {
  margin-top: auto;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(230, 195, 106, .35);
}
.support__iban-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-light);
}
.support__iban code {
  display: block;
  margin: 4px 0 12px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: .03em;
  color: #fff;
  user-select: all;
}
.support__iban code span { white-space: nowrap; }
.support__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-btn);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.support__copy:hover { background: #6f5418; }
.support__copy.is-copied { background: #2f7a4b; }
.support__copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Social ---------- */
.section__sub { color: var(--muted); max-width: 36em; margin: 18px auto 0; }
.social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.social__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.social__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
  color: var(--ink);
}
.social__item svg {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--blue-800);
  fill: #fff;
}
.social__item span { display: flex; flex-direction: column; min-width: 0; }
.social__item strong { font-family: var(--serif); font-size: 1.25rem; color: var(--blue-800); }
.social__item small { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }

/* ---------- Contatti ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: stretch;
}
.contact__info { font-style: normal; }
.contact__info p { margin-bottom: 18px; }
.label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.contact__info a { overflow-wrap: anywhere; }
.contact__info .btn { color: #fff; margin-top: 6px; }
.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  border: 4px solid rgba(230,195,106,.4);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-900);
  color: #b9c6dd;
  padding: 56px 0 24px;
  font-size: .95rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer h3 { color: #fff; font-size: 1.25rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: #dfe7f4; text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer__brand { display: flex; gap: 20px; align-items: center; }
.footer__brand p { margin-bottom: 14px; }
.footer__diocesi {
  display: inline-block;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.footer__diocesi:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.footer__diocesi img { width: 200px; height: auto; }
.footer__brand > img.footer__logo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px var(--blue-900), 0 0 0 4px rgba(230, 195, 106, .4);
}
.footer__brand strong { color: #fff; }
.footer__copy {
  text-align: center;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .menu-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease;
  }
  .menu-btn:hover { background: var(--blue-100); }
  .menu-btn span,
  .menu-btn span::before,
  .menu-btn span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blue-800);
    border-radius: 2px;
    position: relative;
    content: "";
    transition: transform .2s ease, background .2s ease, top .2s ease;
  }
  .menu-btn span::before { position: absolute; top: -7px; }
  .menu-btn span::after { position: absolute; top: 7px; }
  /* Icona che diventa una X quando il menu è aperto */
  .menu-toggle:checked + .menu-btn span { background: transparent; }
  .menu-toggle:checked + .menu-btn span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle:checked + .menu-btn span::after { top: 0; transform: rotate(-45deg); }
  .menu-toggle:focus-visible + .menu-btn { outline: 3px solid var(--gold); outline-offset: 2px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    box-shadow: 0 18px 30px rgba(16, 38, 77, .12);
  }
  .nav a {
    padding: 15px 8px;
    font-size: 1.05rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:hover { background: transparent; color: var(--blue-600); }
  .nav a.is-active:not(.nav__cta)::after { display: none; }
  .nav a.nav__cta {
    margin: 16px 0 0;
    text-align: center;
    border-radius: 999px;
    border-bottom: 0;
  }
  .menu-toggle:checked ~ .nav { display: flex; }
}

@media (max-width: 960px) {

  .hero__inner,
  .split,
  .marian,
  .contact { grid-template-columns: 1fr; }
  .marian { gap: 36px; }
  .marian__photo { max-width: 340px; }
  .hero__art { max-width: 320px; }
  .cards,
  .features { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .social { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
  .quick__inner { grid-template-columns: 1fr; }
  .quick__item { padding: 16px 20px; }
  .quick__item + .quick__item { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .brand__text small { display: none; }
  .brand img { width: 44px; height: 44px; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .timeline li::before { left: 0; }
  .timeline .year { text-align: left; }
  .altars__cols { grid-template-columns: 1fr; }
  .social { grid-template-columns: 1fr; }
  .footer { padding-bottom: 84px; }
  .consent { left: 10px; right: 10px; bottom: 10px; }
  .consent__box { padding: 16px 18px; font-size: .9rem; line-height: 1.5; }
  .consent__title { font-size: 1.25rem; }
  .consent__actions .btn { flex: 1 1 auto; text-align: center; padding: 11px 14px; }
}
