/* I font vengono caricati da WordPress in base alle scelte del tema. */

/* Cinzel, self-hosted (nessuna richiesta a Google Fonts). */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cinzel-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cinzel-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  color-scheme: light;

  /* Brand */
  --maroon: #7a1f1a;
  --maroon-dark: #5e1712;
  --gold: #a9812c;
  --gold-hover: #c49633;

  /* Superfici */
  --paper: #f7f3ea;
  --paper-2: #efe9db;
  --card: #fff;
  --ink: #241f1b;
  --muted: #6f6659;
  --line: #e7e0d2;

  /* Tinte maroon riutilizzabili */
  --maroon-04: rgba(122, 31, 26, .04);
  --maroon-08: rgba(122, 31, 26, .08);
  --maroon-15: rgba(122, 31, 26, .15);
  --maroon-18: rgba(122, 31, 26, .18);
  --maroon-20: rgba(122, 31, 26, .20);
  --maroon-50: rgba(122, 31, 26, .50);
  --gold-05:   rgba(169, 129, 44, .05);

  /* Ombre */
  --shadow-sm: 0 1px 2px rgba(42, 37, 33, .05), 0 8px 24px rgba(42, 37, 33, .06);
  --shadow-md: 0 6px 18px rgba(60, 40, 20, .20);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, .10);
  --shadow-xl: 0 20px 40px -15px rgba(0, 0, 0, .20);
  --shadow: var(--shadow-sm);

  /* Raggi */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 10px;
  --r-2xl: 12px;
  --r: 14px;
  --r-3xl: 20px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* Layout */
  --max: 1180px;
  --pad-x: 20px;

  /* Tipografia */
  --sans: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --logo-font: 'Cinzel', Georgia, serif;
}

/* =========================================
   RESET / BASE
   ========================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 20%, var(--gold-05) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, var(--maroon-04) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 200;
  background: #fff; color: #000;
  padding: 10px 16px; border-radius: var(--r-lg);
}

/* =========================================
   HEADER
   ========================================= */
.topbar {
  background: var(--maroon); color: #fff;
  font-size: .8rem; border-bottom: none;
}
.topbar .wrap {
  display: flex; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; padding: 8px var(--pad-x);
}
.topbar a { color: #fff; text-decoration: none; transition: color .2s ease; }
.topbar a:hover { color: var(--gold); text-decoration: underline; }

header.site {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px var(--pad-x);
  max-width: var(--max); margin: 0 auto;
}

.brand {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; color: inherit;
  flex-shrink: 0; min-width: 0;
}
.brand img {
  height: 84px; width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .08));
  margin-right: 20px;
  flex-shrink: 0;
}
.brand > span {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--gold);
  padding-left: 18px; justify-content: center;
  min-width: 0;
}
.brand b {
  display: block;
  font-family: var(--logo-font); font-weight: 700;
  font-size: 1rem; line-height: 1.3;
  color: var(--maroon); text-transform: uppercase;
  letter-spacing: .04em; white-space: normal; max-width: 230px;
}
.brand span span {
  display: block;
  font-family: var(--logo-font); font-weight: 600;
  font-size: .8rem; letter-spacing: .15em;
  color: var(--gold); text-transform: uppercase; margin-top: 4px;
}

nav.main { margin-left: auto; }
ul.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
ul.nav li { position: relative; }
ul.nav a {
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; color: #1a1511;
  padding: 10px 14px; border-radius: var(--r-lg);
  font: 700 .95rem/1.4 var(--sans); white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
ul.nav a.active { font-weight: 800; color: var(--maroon); }
ul.nav a:hover,
ul.nav a.active { background: var(--paper-2); }
ul.nav a:hover { color: var(--maroon); }
ul.nav .caret { font-size: .6rem; opacity: .8; font-weight: 700; }

/* Dropdown: visibility+opacity+transform (animazione robusta) */
ul.nav ul {
  position: absolute; left: 0; top: calc(100% + 8px);
  min-width: 240px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 90;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
ul.nav li:hover > ul,
ul.nav li:focus-within > ul,
ul.nav li.open > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
ul.nav ul li > a {
  padding: 10px 12px; border-radius: var(--r-md);
  font-size: .88rem; font-weight: 600;
  white-space: normal; color: #1a1511;
}
ul.nav ul li > a:hover { background: var(--paper-2); color: var(--maroon); }
ul.nav ul ul { left: 100%; top: -8px; }

.burger {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 8px 12px;
  font-size: 1.2rem; cursor: pointer; color: var(--ink);
}

/* =========================================
   ELEMENTI CONDIVISI
   ========================================= */
.eyebrow {
  display: inline-block;
  font: 600 .72rem/1 var(--sans);
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--gold); margin-bottom: 8px;
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.section-head.center { display: block; text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-title {
  font: 700 1.6rem/1.2 var(--serif); color: var(--maroon);
  margin: 0; border-bottom: 2px solid var(--line);
  padding-bottom: 12px; display: inline-block;
}
.section-title.center { border: 0; padding: 0; display: block; }
.section-lead {
  font-size: 1rem; color: var(--muted);
  margin: 14px auto 0; max-width: 600px; line-height: 1.6;
}
.section-link {
  font-size: .9rem; font-weight: 600; color: var(--maroon);
  text-decoration: none; white-space: nowrap;
  transition: color .2s ease;
}
.section-link:hover { text-decoration: underline; color: var(--gold); }

/* =========================================
   HERO & CAROSELLO
   ========================================= */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--paper-2); color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .05);
}
.hero .wrap {
  position: relative; padding: 0 var(--pad-x);
  display: flex; align-items: center;
  min-height: 380px; z-index: 2;
}
.carousel {
  position: relative; max-width: 820px; width: 100%;
  z-index: 3; padding: 0 50px;
}
.carousel-track {
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: center;
}
.carousel-slide { display: none; margin: 0; }
.carousel-slide.active { display: block; animation: fadeInSlide .6s ease forwards; }
.carousel-slide p {
  font: italic 700 clamp(1.4rem, 2.5vw, 2.2rem)/1.3 var(--serif);
  color: var(--maroon); margin: 0 0 16px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, 1);
}
.carousel-slide cite {
  display: block; font-size: 1rem; line-height: 1.5; color: #3f3832;
  font-style: normal; font-weight: 600;
  padding-left: 20px; border-left: 3px solid var(--gold);
  text-shadow: 0 1px 4px rgba(255, 255, 255, .9);
}
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: var(--r-circle);
  border: 1px solid var(--maroon-20);
  background: rgba(255, 255, 255, .9); color: var(--maroon);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  z-index: 5;
}
.carousel-nav:hover {
  background: #fff; transform: translateY(-50%) scale(1.1);
  border-color: var(--maroon);
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots { display: flex; gap: 8px; margin-top: 24px; padding-left: 0; }
.carousel-dots button {
  width: 10px; height: 10px; border-radius: var(--r-circle);
  border: 0; background: var(--maroon-20);
  cursor: pointer; padding: 0;
  transition: background .3s ease, transform .3s ease;
}
.carousel-dots button:hover { background: var(--maroon-50); }
.carousel-dots button.active { background: var(--maroon); transform: scale(1.3); }
.carousel-dots button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   INTRO / BENVENUTO
   ========================================= */
.intro-section {
  padding: 80px 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px; align-items: center;
}
.intro-text h2 {
  font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.25 var(--serif);
  color: var(--maroon); margin: 0 0 20px;
  text-wrap: balance;
}
.intro-text p { font-size: 1.05rem; line-height: 1.75; color: #4a423a; margin: 0 0 20px; }
.intro-image img {
  border-radius: var(--r-3xl);
  box-shadow: var(--shadow-xl);
  width: 100%; height: 100%;
  object-fit: cover; aspect-ratio: 4 / 3;
}

/* =========================================
   NOTIZIE IN PRIMO PIANO
   ========================================= */
.featured-news { padding: 70px 0; background: var(--paper); }
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.featured-main {
  position: relative; display: block;
  border-radius: var(--r); overflow: hidden;
  min-height: 480px; text-decoration: none; color: #fff;
  box-shadow: var(--shadow); background: var(--paper-2);
}
.featured-main > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease;
}
.featured-main:hover > img { transform: scale(1.04); }
.featured-main::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .4) 45%, transparent 75%);
}
.featured-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px; z-index: 2;
}
.featured-tag {
  display: inline-block; padding: 5px 12px;
  background: var(--gold); color: var(--maroon-dark);
  font: 700 .7rem/1 var(--sans); text-transform: uppercase;
  letter-spacing: .12em; border-radius: var(--r-sm);
  margin-bottom: 14px;
}
.featured-overlay h3 {
  font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--serif);
  color: #fff; margin: 0 0 12px;
}
.featured-overlay p {
  color: rgba(255, 255, 255, .85); font-size: .95rem;
  line-height: 1.6; margin: 0 0 18px;
}
.featured-link {
  display: inline-block; font-weight: 700; color: var(--gold);
  font-size: .9rem; text-transform: uppercase; letter-spacing: .08em;
}

.featured-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.featured-mini {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-2xl); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.featured-mini:hover {
  transform: translateY(-3px);
  border-color: var(--gold); box-shadow: var(--shadow);
}
.featured-mini img {
  width: 100%; flex: 1; min-height: 120px;
  object-fit: cover; display: block;
}
.featured-mini b {
  font: 600 .9rem/1.3 var(--serif);
  color: var(--maroon); padding: 12px 14px;
}

/* =========================================
   EVENTI / AGENDA
   ========================================= */
.events-agenda {
  padding: 70px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.agenda-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
}
.agenda-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 30px; align-items: center;
  padding: 24px 30px;
  background: var(--card); text-decoration: none; color: inherit;
  transition: background .2s ease;
}
.agenda-item:hover { background: var(--paper); }
.agenda-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 30px;
}
.agenda-date .month {
  display: block; font: 700 .75rem/1 var(--sans);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 4px;
}
.agenda-date .day {
  display: block; font: 700 2rem/1 var(--serif);
  color: var(--maroon);
}
.agenda-content h3 {
  font: 600 1.15rem/1.3 var(--serif);
  color: var(--maroon); margin: 0 0 4px;
}
.agenda-content p { font-size: .9rem; color: var(--muted); margin: 0; }
.agenda-location {
  display: flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 600;
  color: var(--ink); white-space: nowrap;
}
.agenda-location svg { color: var(--gold); }
.agenda-arrow {
  font-size: 1.4rem; color: var(--gold);
  transition: transform .2s ease;
}
.agenda-item:hover .agenda-arrow { transform: translateX(4px); }

/* =========================================
   PUBBLICAZIONI
   ========================================= */
.pubblicazioni { padding: 70px 0; background: var(--paper); }
.pub-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 32px;
}
.pub-item {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 26px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.pub-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.pub-type {
  display: inline-block;
  font: 600 .68rem/1 var(--sans);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--maroon);
  background: var(--maroon-08);
  border: 1px solid var(--maroon-15);
  padding: 6px 10px; border-radius: var(--r-pill);
  margin-bottom: 16px; align-self: flex-start;
}
.pub-item h3 {
  font: 700 1.15rem/1.3 var(--serif);
  color: var(--maroon); margin: 0 0 10px;
}
.pub-item p {
  font-size: .92rem; color: var(--muted);
  line-height: 1.55; margin: 0 0 20px; flex: 1;
}
.pub-link {
  font-weight: 700; font-size: .85rem;
  color: var(--maroon); text-transform: uppercase;
  letter-spacing: .06em; margin-top: auto;
}
.pub-archive-link {
  text-align: center; margin: 0;
  font-size: .95rem; font-weight: 600;
}

/* =========================================
   VESCOVI
   ========================================= */
.vescovi {
  padding: 70px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
}
.vc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.vc-card {
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: center; height: 100%;
}
.vc-card b {
  font: 600 1.1rem/1.25 var(--serif);
  color: var(--maroon); margin: 0;
}
.vc-card span {
  font-size: .9rem; color: var(--muted);
  margin: 0; min-height: 2.8em;
  display: flex; align-items: center; justify-content: center;
}
.vc-card em {
  font-size: .85rem; color: var(--maroon);
  font-weight: 600; margin-top: auto; padding-top: 12px;
}
/* Preferisci classe .photo nel markup. [alt*=…] mantenuti per retro-compatibilità. */
.vc-card img.photo,
.vc-card img[alt*="Cantalamessa"],
.vc-card img[alt*="Martinelli"],
.vc-card img[alt*="Peri"],
.vc-card img[alt*="Neri"],
.vc-card img[alt*="Roncari"],
.vc-card img[alt*="Pagano"] {
  width: 90px; height: 90px;
  object-fit: cover; border-radius: var(--r-circle);
  border: 2px solid var(--line);
  margin: 0 auto 10px;
  background: var(--paper-2);
}
.vc-card img.stemma {
  width: 60px; height: 60px;
  object-fit: contain; margin: 4px auto 0;
  background: #fff; padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* =========================================
   ACCOGLIENZA (galleria)
   ========================================= */
.accoglienza-gallery {
  padding: 70px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative; display: block;
  height: 280px; border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .15) 50%, transparent 80%);
}
.gallery-item > span {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  z-index: 2; font: 600 1.05rem/1.3 var(--serif); color: #fff;
}
.gallery-item em {
  font-style: normal; font-weight: 500;
  font-size: .82rem; color: rgba(255, 255, 255, .85);
  letter-spacing: .04em;
}

/* =========================================
   CTA FINALE
   ========================================= */
.cta-final {
  padding: 100px 0;
  color: #fff; text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* performance mobile */
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .cta-final { background-attachment: fixed; }
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(169, 129, 44, .15), transparent 70%);
  pointer-events: none;
}
.cta-final .wrap { position: relative; z-index: 1; }
.cta-quote { margin: 20px auto 44px; max-width: 820px; }
.cta-quote p {
  font: italic 700 clamp(1.5rem, 3.5vw, 2.4rem)/1.4 var(--serif);
  color: #fff; margin: 0 0 16px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .6);
}
.cta-quote cite {
  display: block; font: 600 1rem/1.5 var(--sans);
  color: var(--gold); text-transform: uppercase;
  letter-spacing: .15em;
}
.cta-buttons {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}
.btn-gold {
  display: inline-block; padding: 14px 28px;
  background: var(--gold); color: var(--maroon-dark);
  font-weight: 700; border-radius: var(--r-xl);
  text-decoration: none; border: 1px solid var(--gold);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(169, 129, 44, .4);
}
.btn-ghost-light {
  display: inline-block; padding: 14px 28px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--r-xl); text-decoration: none;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* =========================================
   PAGINE INTERNE
   ========================================= */
main { padding: 0; }

.pagehead { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pagehead .wrap { padding: 24px var(--pad-x) 20px; }
.crumb {
  font-size: .84rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--maroon); text-decoration: underline; }
.crumb .sep { opacity: .5; }
.pagehead h1 {
  margin: 8px 0 0;
  font: 700 clamp(1.5rem, 3.4vw, 2.3rem)/1.18 var(--serif);
  color: var(--maroon); text-wrap: balance;
}

h2.section {
  font: 700 1.4rem/1.25 var(--serif);
  color: var(--maroon);
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  margin: 36px 0 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; height: 100%;
  transition: transform .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card b { font: 600 1.05rem/1.35 var(--serif); color: var(--maroon); margin-bottom: 6px; }
.card img {
  width: 100%; height: 155px;
  object-fit: cover; border-radius: var(--r-lg);
  margin-bottom: 12px; display: block; background: var(--paper-2);
}
.card span { font-size: .9rem; color: var(--muted); flex: 1; }
.card em { font-style: normal; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 12px; }

.latest-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.latest-card img { height: 170px; }

.pubs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.acc-card { padding: 0; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.acc-card img {
  width: 100%; height: 150px;
  object-fit: cover;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  margin: 0;
}
.acc-card b { font: 600 1rem/1.25 var(--serif); color: var(--maroon); margin: 0 16px; }
.acc-card em { font-size: .85rem; color: var(--muted); margin: auto 16px 16px; padding-top: 8px; }

.pub-card { padding: 20px; }
.pub-card .tag {
  display: inline-block; flex: none; align-self: flex-start;
  font: 600 .68rem/1 var(--sans);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--maroon); background: var(--maroon-08);
  border: 1px solid var(--maroon-18);
  border-radius: var(--r-pill);
  padding: 6px 10px; margin-bottom: 12px;
}
.pub-card b { margin-bottom: 8px; }
.pub-card em { font-weight: 600; color: var(--maroon); }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: 40px; align-items: start;
}

/* Prose */
.prose {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 34px 38px; overflow-wrap: anywhere;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--serif); color: var(--maroon);
  line-height: 1.25; margin: 1.5em 0 .55em;
}
.prose h1 { font-size: 1.7rem; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.2rem; }
.prose h4 { font-size: 1.05rem; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.prose li { margin: .25em 0; }
.prose img { border-radius: var(--r-xl); max-width: 100%; height: auto; }
.prose table { max-width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { padding: 6px 10px; vertical-align: top; }
.prose table[border],
.prose table[style*="border"] { border: 1px solid var(--line); }
.prose blockquote {
  margin: 1.2em 0; padding: 12px 20px;
  background: var(--paper-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  font-family: var(--serif); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.prose .art-button-wrapper { display: inline-block; margin: 4px 6px 4px 0; }
.prose .art-button {
  display: inline-block; padding: 8px 16px;
  border-radius: var(--r-lg);
  background: var(--maroon); color: #fff;
  text-decoration: none; font-size: .9rem;
}
.prose .art-button span { color: #fff; }
.prose span.art-button-wrapper a { text-decoration: none; }
.prose figure { margin: 1.2em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.prose .imgleft { float: left; margin: 0 22px 12px 0; }
.prose .imgright { float: right; margin: 0 0 12px 22px; }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--r-xl); }
.prose .pdf {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: var(--r-xl);
  text-decoration: none; margin: 6px 8px 6px 0; font-weight: 600;
}

/* Aside */
aside .block {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px 22px; margin-bottom: 22px;
}
aside .block h2 {
  font: 700 1.02rem/1.3 var(--serif);
  margin: 0 0 14px; color: var(--maroon);
  padding-bottom: 9px; border-bottom: 2px solid var(--paper-2);
}
aside .block p { margin: .4em 0; }
aside .block ul { margin: .3em 0; padding-left: 1.2em; }
aside .block a { text-decoration: none; }
aside .block a:hover { text-decoration: underline; }
aside .block img { max-width: 100%; height: auto; border-radius: var(--r-lg); }
aside .block table { max-width: 100%; }
aside .block .art-blockcontent-body { padding: 0; }

/* Pager */
.pager {
  display: flex; justify-content: space-between;
  gap: 14px; margin: 28px 0 0; flex-wrap: wrap;
}
.pager a {
  display: block; max-width: 48%;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: 14px 18px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
}
.pager a:hover { border-color: var(--gold); }
.pager b { display: block; font: 600 .95rem/1.35 var(--serif); color: var(--maroon); }
.pager span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.sectionlink { margin: 22px 0 0; font-size: .92rem; font-weight: 600; }
.more-btn {
  display: block; margin: 26px auto 0;
  padding: 12px 26px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--card); color: var(--maroon);
  font: 600 .95rem var(--sans); cursor: pointer;
  box-shadow: var(--shadow);
}
.more-btn:hover { border-color: var(--gold); }
[hidden] { display: none !important; }

/* Card full */
.card-full { grid-column: 1 / -1; display: block; }
.card-full img {
  width: auto; max-width: 100%; height: auto;
  max-height: 420px; object-fit: contain;
  margin: 0 auto 14px;
}
.card-full p { margin: 0 0 12px; line-height: 1.7; }
.card-full iframe { max-width: 100%; }

/* Home blocks */
.home-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin: 54px 0 10px;
  padding-top: 34px; border-top: 1px solid var(--line);
}
.home-blocks .block { margin: 0; }
.latest-all { margin: 28px 0 0; }

/* Stats */
.stats {
  background: var(--paper-2); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; padding: 0;
}
.stat { padding: 22px 16px; text-align: center; background: var(--card); }
.stat b { display: block; font: 700 1.8rem/1 var(--serif); color: var(--maroon); }
.stat span { font-size: .8rem; color: var(--muted); }

/* =========================================
   FOOTER
   ========================================= */
footer.site {
  background: var(--paper-2); color: var(--ink);
  padding: 46px 0 0; font-size: .9rem;
  margin-top: 0; border-top: 2px solid var(--maroon);
}
.fgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 34px;
}
footer.site h3 {
  font: 600 1rem/1.3 var(--serif);
  color: var(--maroon); margin: 0 0 12px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { color: var(--maroon); text-decoration: underline; }
.fbar {
  border-top: 1px solid var(--line);
  padding: 16px 0; text-align: center;
  font-size: .8rem; color: var(--muted);
}
.flegal {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 16px; margin: 0 0 10px;
}
.flegal a,
.flegal button {
  color: var(--muted); background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer; text-decoration: none;
}
.flegal a:hover,
.flegal button:hover { color: var(--maroon); text-decoration: underline; }
.flegal .flegal-consent:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  width: 44px; height: 44px; border-radius: var(--r-circle);
  border: 0; background: var(--maroon); color: #fff;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* =========================================
   BANDE TEMATICHE
   ========================================= */
.if-band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 56px;
}
.if-band .wrap { padding-top: 46px; padding-bottom: 50px; }
.if-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.if-head h2 { font: 700 1.5rem/1.25 var(--serif); color: var(--maroon); margin: 10px 0 8px; }
.if-head p { max-width: 66ch; margin: 0; color: var(--muted); }
.if-head .btn { flex: none; }

.covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cover {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .16s ease, border-color .16s ease;
}
.cover:hover { transform: translateY(-3px); border-color: var(--gold); }
.cover img {
  width: auto; height: 200px; max-width: 100%;
  object-fit: contain; border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  background: var(--paper-2); display: block; margin: 0 auto;
}
.cover .issue { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 13px 0 5px; }
.cover b { font: 600 1rem/1.35 var(--serif); color: var(--maroon); }
.cover em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--maroon); margin-top: auto; padding-top: 12px; }

.pub-band { margin-top: 56px; border-top: 1px solid var(--line); }
.pub-band .wrap { padding-top: 46px; }
.pub-band .if-head { margin-bottom: 22px; }
.pub-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* Profilo vescovo */
.profile-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 120px;
  gap: 24px; align-items: start;
  margin: 0 0 26px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.profile-photo {
  width: 160px; height: auto;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}
.profile-stemma {
  width: 120px; height: auto;
  object-fit: contain;
  background: #fff; padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.profile-role { font-size: 1.05rem; color: var(--muted); margin: 0 0 12px; }
.profile-facts { margin: 0; padding-left: 1.2em; }
.profile-facts li { margin: .2em 0; }
.vc-grid.landing { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vc-grid.landing .vc-card { padding: 16px; }
.vc-grid.landing .vc-card img:first-child {
  width: 100%; height: 210px;
  object-fit: cover; border-radius: var(--r-xl);
  margin: 0 0 8px;
}
.vc-grid.landing .vc-card img.stemma { width: 66px; height: 66px; margin: 8px auto 0; }
.vc-grid.landing .vc-card b { font-size: 1.05rem; }
.profile-back {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

/* Indice */
.toc { columns: 2; column-gap: 34px; }
.toc a {
  display: block; text-decoration: none;
  padding: 4px 0; font-size: .92rem;
  break-inside: avoid;
}
.toc a:hover { text-decoration: underline; }
.idxgroup { margin: 30px 0 10px; scroll-margin-top: 90px; }
.idxgroup h2 {
  font: 700 1.35rem/1.25 var(--serif);
  color: var(--maroon);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

/* Ricerca */
.searchbox { display: flex; gap: 8px; margin: 0 0 22px; }
.searchbox input {
  flex: 1; min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--card); color: var(--ink);
  font-size: 1rem;
}
.searchbox button {
  padding: 13px 22px; border: 0;
  border-radius: var(--r-xl);
  background: var(--maroon); color: #fff;
  font-weight: 600; cursor: pointer;
}
#results { list-style: none; padding: 0; margin: 0; }
#results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
#results a { font: 600 1.02rem/1.4 var(--serif); text-decoration: none; }
#results span { display: block; font-size: .8rem; color: var(--muted); }

/* Bande pubbliche */
.pubs-band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 56px;
}
.pubs-band .wrap { padding-top: 46px; padding-bottom: 50px; }
.pubs-band .pubs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pubs-band .pub-card { padding: 22px; }

.accoglienza-band { margin-top: 46px; border-top: 1px solid var(--line); }
.accoglienza-band .wrap { padding-top: 40px; padding-bottom: 30px; }

.vc-band { margin-top: 56px; }
.vc-band .wrap { padding-top: 46px; padding-bottom: 10px; }

/* =========================================
   RESPONSIVE
   ========================================= */

/* --- Tablet / piccolo desktop --- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr; gap: 30px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .toc { columns: 1; }
  .prose { padding: 24px 22px; }
  .pubs-grid { grid-template-columns: repeat(2, 1fr); }
  .covers { grid-template-columns: repeat(2, 1fr); }
  .cards, .latest-cards { grid-template-columns: repeat(2, 1fr); }

  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-image { order: -1; }

  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { min-height: 400px; }
  .featured-side { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; }
  .featured-mini img { min-height: 100px; }

  .agenda-item { grid-template-columns: 70px 1fr auto; gap: 20px; padding: 20px; }
  .agenda-location { display: none; }

  .pub-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .vc-grid { grid-template-columns: repeat(3, 1fr); }
  .vc-grid.landing { grid-template-columns: repeat(3, 1fr); }
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tablet / Mobile landscape --- */
@media (max-width: 800px) {
  /* HEADER */
  .burger { display: block; }
  .head {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
  }
  .brand img {
    height: 52px;
    width: auto;
    margin-right: 0;
    flex-shrink: 0;
  }
  .brand > span {
    padding-left: 10px;
    min-width: 0;
  }
  .brand b {
    font-size: .82rem;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .brand span span {
    font-size: .68rem;
    letter-spacing: .1em;
    margin-top: 2px;
  }
  .burger {
    flex-shrink: 0;
    margin-left: 0;
    align-self: center;
  }
  nav.main {
    width: 100%;
    order: 4;
    margin-top: 4px;
  }
  nav.main:not(.open) { display: none; }
  nav.main.open { display: block; }

  ul.nav { flex-direction: column; align-items: stretch; gap: 0; }
  ul.nav li { width: 100%; }
  ul.nav a {
    padding: 12px 10px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    font-weight: 700;
    justify-content: space-between;
  }
  ul.nav li:first-child > a { border-top: 0; }
  ul.nav ul {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none;
    padding: 0 0 6px 14px;
    min-width: 0;
    background: transparent;
    transition: none;
  }
  ul.nav ul a { font-size: .9rem; border-top: 0; font-weight: 600; padding: 8px 10px; }
  ul.nav li:not(.open) > ul { display: none; }
  ul.nav li.open > ul { display: block; }
  .caret { display: none; }

  /* SEZIONI */
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-title { display: block; }
  .section-lead { margin-left: 0; margin-right: 0; }

  /* HERO / CAROSELLO */
  .hero .wrap { padding: 20px var(--pad-x); min-height: 300px; }
  .carousel { padding: 0; max-width: 100%; }
  .carousel-track { min-height: 180px; }
  .carousel-nav { display: none; }
  .carousel-slide p { font-size: 1.3rem; margin-bottom: 12px; }
  .carousel-slide cite { padding-left: 14px; }
  .carousel-dots { padding-left: 0; justify-content: flex-start; }

  /* INTRO */
  .intro-section { padding: 60px 0; }

  /* FEATURED */
  .featured-main { min-height: 380px; }
  .featured-overlay { padding: 24px; }
  .featured-side { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .featured-mini img { min-height: 100px; }

  /* AGENDA */
  .agenda-item {
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    padding: 14px 16px;
    align-items: center;
  }
  .agenda-date {
    padding: 8px 0;
    background: var(--paper);
    border-right: 0;
    border-radius: var(--r-lg);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
  }
  .agenda-date .month { font-size: .68rem; margin-bottom: 2px; }
  .agenda-date .day { font-size: 1.35rem; }
  .agenda-content h3 { font-size: 1rem; }
  .agenda-content p { font-size: .85rem; }
  .agenda-arrow { font-size: 1.2rem; }

  /* PUBBLICAZIONI */
  .pubs-grid { grid-template-columns: 1fr; }

  /* VESCOVI */
  .vc-grid { grid-template-columns: repeat(2, 1fr); }
  .vc-grid.landing { grid-template-columns: repeat(2, 1fr); }
  .vc-grid.landing .vc-card img:first-child { height: 150px; }

  /* ACCOGLIENZA */
  .acc-grid { grid-template-columns: repeat(2, 1fr); }

  /* GALLERIA */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item { height: 220px; }
  .gallery-item > span { left: 16px; right: 16px; bottom: 16px; font-size: .95rem; }

  /* CTA */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn-gold,
  .cta-buttons .btn-ghost-light { width: 100%; max-width: 320px; text-align: center; }

  /* PAGER */
  .pager a { max-width: 100%; }

  /* PROFILO VESCOVO */
  .profile-head {
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    align-items: start;
    text-align: left;
  }
  .profile-photo { grid-column: 1; grid-row: 1; width: 100%; height: auto; }
  .profile-stemma {
    grid-column: 2; grid-row: 1;
    width: 60px; height: auto;
    justify-self: end;
  }
  .profile-head > div { grid-column: 1 / -1; grid-row: 2; }
}

/* --- Mobile --- */
@media (max-width: 600px) {
  :root { --pad-x: 16px; }

  /* TOPBAR */
  .topbar .wrap {
    flex-direction: column; align-items: center;
    text-align: center; gap: 4px;
  }

  /* BRAND compatto */
  .brand img { height: 44px; }
  .brand b { font-size: .78rem; }
  .brand span span { font-size: .62rem; letter-spacing: .08em; }

  /* FOOTER */
  .fgrid { grid-template-columns: 1fr; gap: 24px; text-align: center; }

  h2.section { margin: 30px 0 16px; }

  /* Griglie a colonna singola */
  .latest-cards, .vc-grid, .acc-grid, .cards, .pub-grid-v2, .pubs-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item { height: 240px; }
  .featured-side { grid-template-columns: 1fr; }
  .featured-mini img { aspect-ratio: 16 / 9; min-height: 0; }
  .featured-main { min-height: 340px; }
  .featured-overlay { padding: 20px; }
  .featured-overlay h3 { font-size: 1.2rem; }
  .featured-overlay p { font-size: .88rem; }

  /* HERO */
  .carousel-slide p { font-size: 1.15rem; line-height: 1.4; }
  .carousel-slide cite { font-size: .9rem; }
  .carousel-dots { justify-content: center; margin-top: 16px; }

  /* CTA */
  .cta-final { padding: 60px 0; }
  .cta-quote p { font-size: 1.3rem; }

  /* BOTTONI */
  .btns { flex-direction: column; }
  .btn { text-align: center; }

  /* AGENDA */
  .agenda-item {
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .agenda-date .day { font-size: 1.2rem; }

  /* STATISTICHE */
  .stat { padding: 18px 12px; }
  .stat b { font-size: 1.5rem; }

  /* VC CARD */
  .vc-card img.photo { width: 80px; height: 80px; }
  .vc-card span { min-height: 0; }

  /* PROSE */
  .prose { padding: 20px 18px; }
  .prose h1 { font-size: 1.5rem; }
  .prose h2 { font-size: 1.25rem; }

  /* ASIDE */
  aside .block { padding: 16px 18px; }

  /* SEARCH */
  .searchbox { flex-direction: column; }
  .searchbox button { width: 100%; }
}

/* --- Telefoni piccoli --- */
@media (max-width: 380px) {
  :root { --pad-x: 14px; }
  .brand img { height: 40px; }
  .brand b { font-size: .72rem; }
  .brand span span { display: none; }
  .carousel-slide p { font-size: 1.05rem; }
  .agenda-item { grid-template-columns: 48px 1fr auto; gap: 8px; padding: 10px 12px; }
  .agenda-date .day { font-size: 1.1rem; }
  .agenda-date .month { font-size: .62rem; }
}

/* =========================================
   PREFERENZE UTENTE
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto !important; }
  .carousel-slide.active { animation: none; }
}

/* =========================================
   STAMPA
   ========================================= */
@media print {
  header.site, .topbar, footer.site, .to-top, aside { display: none !important; }
  .prose { border: 0; box-shadow: none; padding: 0; }
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .85em;
    color: #555;
  }
  body { background: #fff; color: #000; }
}