/*
Theme Name: Sanvitese
Theme URI: https://parrocchiesanvitese.it/
Author: Parrocchie del Sanvitese
Description: Tema personalizzato per le Parrocchie del Sanvitese. Palette grigio-azzurra, layout snello, pensato per gestione contenuti settimanale da parte di volontari.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.2
License: GPL v2 or later
Text Domain: sanvitese
*/

/* ---------- VARIABILI E RESET ---------- */
:root {
  --paper: #fbfcfd;
  --cream: #eef1f4;
  --greige: #e2e7ec;
  --ink: #363b42;
  --soft: #646b73;
  --faint: #969da5;
  --sage: #8aa0b2;
  --sage-deep: #5e7689;
  --brick: #5e7689;
  --brick-soft: #7c92a3;
  --line: rgba(54, 59, 66, 0.12);
  --line-soft: rgba(54, 59, 66, 0.07);
  --shadow: 0 14px 40px -22px rgba(54, 59, 66, 0.26);
}
/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Spectral", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 400;
}
h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 26px;
}

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--soft);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: 14px;
}
.topbar a {
  color: var(--soft);
  transition: color 0.2s;
}
.topbar a:hover {
  color: var(--brick);
}
.topbar .tb-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
@media (max-width: 680px) {
  .topbar .tb-left {
    display: none;
  }
}

/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 253, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.38s;
}
header.nav.hidden {
  transform: translateY(-100%);
}
header.nav.scrolled {
  box-shadow: 0 4px 20px -16px rgba(54, 59, 66, 0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand svg,
.brand img {
  width: 46px;
  height: auto;
  flex: none;
}
.brand .bt b {
  font-family: "Fraunces";
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  display: block;
  line-height: 1.25;
}
.brand .bt small {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-family: "Spectral";
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.menu {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
}
.menu li {
  list-style: none;
}
.menu a {
  font-family: "Fraunces";
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 7px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  display: block;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 6px;
  height: 1px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.menu a:hover {
  color: var(--sage-deep);
}
.menu a:hover::after {
  transform: scaleX(1);
}
.menu .area a,
.menu a.area {
  background: none;
  color: var(--brick);
  font-weight: 500;
  border: 1.5px solid var(--brick-soft);
  border-radius: 999px;
  padding: 8px 18px;
  margin-left: 8px;
  transition: 0.25s;
}
.menu .area a::after,
.menu a.area::after {
  display: none;
}
.menu .area a:hover,
.menu a.area:hover {
  background: var(--brick);
  color: #fff;
  border-color: var(--brick);
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 25px;
  height: 1.8px;
  background: var(--ink);
  transition: 0.3s;
}
@media (max-width: 940px) {
  .menu {
    position: fixed;
    inset: 82px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 26px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.28s;
  }
  .menu.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .menu a {
    padding: 15px 6px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.04rem;
  }
  .menu a::after {
    display: none;
  }
  .menu .area a,
  .menu a.area {
    margin: 14px 0 0;
    text-align: center;
    border-radius: 10px;
  }
  .burger {
    display: flex;
  }
}

@media (min-width: 941px) {
  .brand .bt b {
    letter-spacing: 0.03em;
  }
  .brand .bt small {
    letter-spacing: 0.06em;
  }
}

/* ---------- DROPDOWN (sottomenu Le Parrocchie) ---------- */

/* WordPress aggiunge automaticamente .sub-menu alle ul figlie e
   la classe .menu-item-has-children sulle voci con sottomenu */

.menu .menu-item-has-children {
  position: relative;
}

/* freccia indicativa accanto alla voce padre, solo desktop */
.menu .menu-item-has-children > a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--soft);
  border-bottom: 1.5px solid var(--soft);
  transform: rotate(45deg);
  margin-right: 8px;
  margin-bottom: 2px;
  vertical-align: middle;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.menu .menu-item-has-children:hover > a::before {
  border-color: var(--sage-deep);
  transform: rotate(225deg) translate(2px, 2px);
}

/* ---------- DROPDOWN (sottomenu Le Parrocchie) ---------- */

.menu .menu-item-has-children {
  position: relative;
}

/* freccia desktop — usiamo ::before per non interferire con l'underline ::after */
.menu .menu-item-has-children > a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--soft);
  border-bottom: 1.5px solid var(--soft);
  transform: rotate(45deg);
  margin-right: 8px;
  margin-bottom: 2px;
  vertical-align: middle;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.menu .menu-item-has-children:hover > a::before {
  border-color: var(--sage-deep);
  transform: rotate(225deg) translate(2px, 2px);
}

/* IL DROPDOWN VERO E PROPRIO */
.menu .sub-menu {
  position: absolute;
  top: calc(100% + 2px); /* era +6px, avviciniamo */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    0 18px 50px -16px rgba(54, 59, 66, 0.25),
    0 4px 12px -4px rgba(54, 59, 66, 0.08);
  padding: 8px;
  padding-top: 12px; /* copre il piccolo gap residuo */
  margin: 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s,
    transform 0.22s;
  z-index: 200;
}

/* triangolino sopra il dropdown desktop */
.menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

/* mostra al passaggio desktop */
.menu .menu-item-has-children:hover > .sub-menu,
.menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.menu .sub-menu li {
  list-style: none;
}
.menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: "Fraunces";
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  transition:
    background 0.18s,
    color 0.18s,
    padding 0.2s;
}
.menu .sub-menu a::after {
  display: none;
}
.menu .sub-menu a:hover {
  background: var(--cream);
  color: var(--sage-deep);
  padding-left: 18px;
}

.menu .menu-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px; /* copre il gap */
}

/* ---------- DROPDOWN MOBILE ---------- */
@media (max-width: 940px) {
  /* Nasconde la freccia quadratina desktop */
  .menu .menu-item-has-children > a::before {
    display: none;
  }

  /* Freccia mobile con ::after — ma prima azzeriamo l'underline animato */
  .menu .menu-item-has-children > a::after {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    background: none;
    transform: none;
    content: " ›";
    font-size: 1.2rem;
    color: var(--faint);
    display: inline-block;
    transition:
      transform 0.25s,
      color 0.25s;
    transform-origin: center;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
  }
  .menu .menu-item-has-children > a.parent-open::after {
    transform: rotate(90deg);
    color: var(--sage-deep);
  }

  /* Sub-menu chiuso di default */
  .menu .sub-menu {
    display: none;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* Nasconde il triangolino desktop */
  .menu .sub-menu::before {
    display: none !important;
  }

  /* Sub-menu aperto */
  .menu .sub-menu.sub-open {
    display: block;
  }

  .menu .sub-menu li {
    list-style: none;
  }

  /* Voci figlie indentate */
  .menu .sub-menu a {
    display: block;
    padding: 13px 6px 13px 26px !important;
    font-size: 0.94rem !important;
    color: var(--soft) !important;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0 !important;
    background: transparent !important;
    font-family: "Fraunces";
    font-weight: 400;
    white-space: normal;
  }
  .menu .sub-menu a::before {
    content: "·";
    color: var(--faint);
    margin-right: 10px;
  }
  .menu .sub-menu a::after {
    display: none !important;
  }
  .menu .sub-menu a:hover {
    color: var(--sage-deep) !important;
    padding-left: 32px !important;
    background: transparent !important;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(
      680px 360px at 80% -5%,
      rgba(138, 160, 178, 0.18),
      transparent 70%
    ),
    radial-gradient(
      560px 420px at 8% 110%,
      rgba(94, 118, 137, 0.08),
      transparent 70%
    );
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  padding: 78px 26px 86px;
}
.hero-eyebrow {
  font-family: "Fraunces";
  font-style: italic;
  color: var(--sage-deep);
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--brick);
}
.hero p.lead {
  margin: 24px 0 32px;
  font-size: 1.1rem;
  color: var(--soft);
  max-width: 30em;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: "Fraunces";
  font-weight: 500;
  font-size: 0.96rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-sage {
  background: var(--sage-deep);
  color: #fff;
}
.btn-sage:hover {
  background: var(--sage);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}
.hero-badge {
  display: flex;
  justify-content: center;
}
.hero-badge svg,
.hero-badge img {
  width: min(300px, 68vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(94, 118, 137, 0.18));
}
@media (max-width: 840px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 54px 26px 60px;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero p.lead {
    margin-inline: auto;
  }
  .hero-badge {
    order: -1;
    margin-bottom: 18px;
  }
}

/* ---------- MESSA + AGENDA ---------- */
.today {
  background: var(--cream);
  border-block: 1px solid var(--line-soft);
}
.today .wrap {
  padding: 60px 26px;
}
.today-grid {
  align-items: start;
}
@media (max-width: 860px) {
  .today-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
.kick {
  font-family: "Spectral";
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--sage-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.today h2,
.block h2 {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}
.mass-today {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.mass-today .mt-date {
  font-family: "Fraunces";
  font-style: italic;
  color: var(--brick);
  font-size: 1rem;
  margin-bottom: 4px;
}
.mass-today .mt-feast {
  font-family: "Fraunces";
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.1;
}
.mass-today ul {
  list-style: none;
}
.mass-today li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96rem;
}
.mass-today li:last-child {
  border: 0;
}
.mass-today li .pl {
  color: var(--soft);
}
.mass-today li .tm {
  font-family: "Fraunces";
  font-weight: 600;
  color: var(--sage-deep);
}
.agenda {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.agenda .ag-row {
  display: flex;
  gap: 18px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.agenda .ag-row:last-child {
  border: 0;
}
.agenda .ag-d {
  font-family: "Fraunces";
  font-weight: 600;
  color: var(--brick);
  min-width: 84px;
  font-size: 1.2rem;
  text-transform: capitalize;
}
.agenda .ag-d small {
  display: block;
  color: var(--faint);
  font-weight: 400;
  font-family: "Spectral";
  font-size: 1.2rem;
  text-transform: none;
}
.agenda .ag-e {
  font-size: 1.2rem;
  color: var(--ink);
}
.agenda .ag-e .t {
  color: var(--sage-deep);
  font-weight: 600;
  font-family: "Fraunces";
  margin-right: 6px;
}
.agenda .ag-e .pl {
  color: var(--soft);
  font-size: 0.86rem;
}
.agenda-foot {
  padding: 15px 24px;
  background: var(--cream);
}
.agenda-foot a {
  font-family: "Fraunces";
  color: var(--sage-deep);
  font-size: 0.9rem;
}
.agenda-foot a:hover {
  color: var(--brick);
}

/* ---------- PORTE ---------- */
.block {
  padding: 25px 0;
}
.block-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 44px;
}
.block-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.block-head p {
  color: var(--soft);
  font-weight: 300;
  margin-top: 6px;
}
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .doors {
    grid-template-columns: 1fr;
  }
}
.door {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.door::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sage);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}
.door:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.door:hover::before {
  transform: scaleY(1);
}
.door .di {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--sage-deep);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.door .di svg {
  width: 24px;
  height: 24px;
}
.door h3 {
  font-family: "Fraunces";
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
}
.door p {
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 300;
  flex: 1;
}
.door .go {
  font-family: "Fraunces";
  color: var(--sage-deep);
  font-size: 0.9rem;
  margin-top: 4px;
}
.door:hover .go {
  color: var(--brick);
}

/* ---------- PROPOSTE ---------- */
.props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .props {
    grid-template-columns: 1fr;
  }
}
.prop {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: 0.3s;
}
.prop:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.prop .pimg {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--greige);
}
.prop .pbody {
  padding: 22px;
}
.prop .pk {
  font-family: "Spectral";
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: var(--sage-deep);
  font-weight: 600;
}
.prop h3 {
  font-family: "Fraunces";
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 6px 0;
}
.prop p {
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ---------- FOOTER ---------- */
/* footer {
  background: var(--cream);
  color: var(--ink);
  padding: 60px 0 28px;
  border-top: 1px solid var(--line-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}
@media (max-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
.foot-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.foot-brand svg,
.foot-brand img {
  width: 50px;
  height: auto;
  flex: none;
}
.foot-brand p {
  font-size: 0.88rem;
  color: var(--soft);
  margin-top: 8px;
  max-width: 26em;
  font-weight: 300;
}
footer h4 {
  font-family: "Fraunces";
  font-weight: 500;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 14px;
}
footer ul {
  list-style: none;
}
footer ul li {
  margin-bottom: 9px;
}
footer ul a {
  font-size: 0.88rem;
  color: var(--soft);
  transition: 0.2s;
  font-weight: 300;
}
footer ul a:hover {
  color: var(--brick);
}
.foot-bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--faint);
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.25s;
  color: var(--soft);
}
.socials a:hover {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
}
 */
/* ---------- CONTENUTO PAGINE INTERNE ---------- */
.page-content {
  padding: 60px 0 80px;
}
.page-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 500;
}
.page-content h2 {
  font-size: 1.6rem;
  color: var(--ink);
  margin: 36px 0 14px;
}
.page-content h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 26px 0 10px;
}
.page-content p {
  margin-bottom: 16px;
  color: var(--ink);
}
.page-content ul,
.page-content ol {
  margin: 14px 0 18px 26px;
  color: var(--ink);
}
.page-content li {
  margin-bottom: 6px;
}
.page-content a {
  color: var(--sage-deep);
  border-bottom: 1px solid var(--line);
}
.page-content a:hover {
  color: var(--brick);
  border-color: var(--brick);
}
.page-content img {
  border-radius: 12px;
  margin: 20px 0;
}
.page-content blockquote {
  border-left: 3px solid var(--sage);
  padding: 8px 18px;
  margin: 20px 0;
  color: var(--soft);
  font-style: italic;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* WordPress core classes (necessarie per il tema) */
.alignleft {
  float: left;
  margin: 0 20px 10px 0;
}
.alignright {
  float: right;
  margin: 0 0 10px 20px;
}
.aligncenter {
  display: block;
  margin: 10px auto;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--soft);
  font-style: italic;
}
.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* ---------- BOLLETTINO: riquadro PDF (singolo) ---------- */
.bull-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.bull-card:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
  box-shadow: 0 18px 50px -22px rgba(94, 118, 137, 0.35);
}
.bull-card .bc-ic {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--sage-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Fraunces";
  font-weight: 600;
  font-size: 0.78rem;
  flex: none;
  letter-spacing: 0.04em;
}
.bull-card .bc-body {
  flex: 1;
  min-width: 0;
}
.bull-card .bc-body b {
  font-family: "Fraunces";
  color: var(--ink);
  font-weight: 600;
  font-size: 1.04rem;
  display: block;
  line-height: 1.25;
}
.bull-card .bc-body small {
  color: var(--soft);
  font-size: 0.84rem;
  display: block;
  margin-top: 3px;
  word-break: break-all;
}
.bull-card .bc-action {
  font-family: "Fraunces";
  color: var(--sage-deep);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .bull-card {
    flex-wrap: wrap;
  }
  .bull-card .bc-action {
    width: 100%;
    margin-top: 6px;
    text-align: right;
  }
}
.bull-empty {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 24px;
  color: var(--soft);
  text-align: center;
}

/* ---------- BOLLETTINO: lista archivio ---------- */
.bull-list {
  border-top: 1px solid var(--line-soft);
}
.bull-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.bull-item:hover {
  background: var(--cream);
}
.bull-item .bi-info {
  flex: 1;
  min-width: 0;
}
.bull-item .bi-title {
  font-family: "Fraunces";
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
  text-decoration: none;
  line-height: 1.3;
}
.bull-item .bi-title:hover {
  color: var(--sage-deep);
}
.bull-item .bi-info small {
  color: var(--soft);
  font-size: 0.85rem;
  display: block;
  margin-top: 3px;
}
.bull-item .bi-dl {
  font-family: "Fraunces";
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  white-space: nowrap;
  transition: 0.2s;
}
.bull-item .bi-dl:hover {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
}
@media (max-width: 520px) {
  .bull-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .bull-item .bi-dl {
    align-self: stretch;
    text-align: center;
  }
}

/* ---------- ORARI MESSE: card per parrocchia ---------- */
.orari-intro {
  font-size: 1.04rem;
  color: var(--soft);
  font-weight: 300;
  margin-bottom: 44px;
  max-width: 42em;
}
.orari-intro a {
  color: var(--sage-deep);
  border-bottom: 1px solid var(--line);
}
.orari-intro a:hover {
  color: var(--brick);
  border-color: var(--brick);
}

.messe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.messa-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  position: relative;
}
.messa-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sage);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}
.messa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.messa-card:hover::before {
  transform: scaleY(1);
}

.messa-card .mc-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--cream), transparent);
}
.messa-card .mc-kick {
  font-family: "Spectral";
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: var(--sage-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.messa-card .mc-title {
  font-family: "Fraunces";
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 4px;
}
.messa-card .mc-saint {
  font-family: "Fraunces";
  font-style: italic;
  font-size: 0.92rem;
  color: var(--soft);
  margin: 0;
  font-weight: 400;
}

.messa-card .mc-body {
  padding: 18px 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.messa-card .mc-section {
}
.messa-card .mc-sec-label {
  display: block;
  font-family: "Spectral";
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.64rem;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 6px;
}
.messa-card .mc-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.messa-card .mc-section li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.94rem;
}
.messa-card .mc-section li .t {
  font-family: "Fraunces";
  font-weight: 600;
  color: var(--sage-deep);
  font-size: 1.04rem;
  min-width: 54px;
  flex: none;
}
.messa-card .mc-section li .d {
  color: var(--soft);
  font-size: 0.84rem;
}

/* card "featured" -- Santuario Madonna di Rosa */
.messa-card--featured {
  grid-column: span 2;
  border-color: var(--sage);
  background: linear-gradient(180deg, var(--cream), var(--paper) 40%);
}
.messa-card--featured .mc-title {
  font-size: 1.45rem;
}
.messa-card--featured .mc-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 680px) {
  .messa-card--featured {
    grid-column: span 1;
  }
  .messa-card--featured .mc-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* card "secondary" -- Ospedale, Casa Riposo */
.messa-card--secondary {
  background: transparent;
  border-style: dashed;
}
.messa-card--secondary .mc-head {
  background: transparent;
}
.messa-card--secondary .mc-kick {
  color: var(--faint);
}

.orari-foot {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--cream);
  border-left: 3px solid var(--sage);
  border-radius: 0 10px 10px 0;
  color: var(--soft);
  font-size: 0.95rem;
}
.orari-foot strong {
  color: var(--ink);
  font-family: "Fraunces";
  font-weight: 600;
}

/* ---------- AGENDA: stato vuoto + righe cliccabili ---------- */
.agenda a.ag-row {
  transition:
    background 0.18s,
    padding 0.2s;
  cursor: pointer;
}
.agenda a.ag-row:hover {
  background: var(--cream);
  padding-left: 30px;
}
.agenda-empty {
  padding: 30px 24px;
  text-align: center;
  color: var(--soft);
}
.agenda-empty p {
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.agenda-empty small {
  font-size: 0.82rem;
  color: var(--faint);
}
.agenda-empty small a {
  color: var(--sage-deep);
  border-bottom: 1px solid var(--line);
}
.agenda-empty small a:hover {
  color: var(--brick);
}

/* ---------- VATICAN NEWS: lista titoli RSS ---------- */

/* .vatican-block {
  background: var(--paper);
  border-block: 1px solid var(--line-soft);
  padding-bottom: 150px;
}
.vatican-block .block-head p {
  color: var(--soft);
  font-size: 0.95rem;
  font-weight: 300;
  margin-top: 6px;
}
.vatican-block .block-head p a {
  color: var(--sage-deep);
  border-bottom: 1px solid var(--line);
}
.vatican-block .block-head p a:hover {
  color: var(--brick);
  border-color: var(--brick);
}

.vatican-feed {
  max-width: 760px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 18px;
  box-shadow: var(--shadow);
}
.vn-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vn-item {
  border-bottom: 1px solid var(--line-soft);
}
.vn-item:last-child {
  border-bottom: 0;
}
.vn-item a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition:
    background 0.2s,
    padding 0.2s;
}
.vn-item a:hover {
  background: var(--paper);
  padding-left: 24px;
}
.vn-title {
  font-family: "Fraunces";
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.35;
  flex: 1;
}
.vn-item a:hover .vn-title {
  color: var(--sage-deep);
}
.vn-date {
  color: var(--faint);
  font-size: 0.78rem;
  font-family: "Spectral";
  white-space: nowrap;
  flex: none;
}
.vn-empty {
  padding: 24px;
  text-align: center;
  color: var(--soft);
  font-style: italic;
}
.vn-empty a {
  color: var(--sage-deep);
  border-bottom: 1px solid var(--line);
}
.vn-foot {
  margin: 14px 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.vn-foot a {
  font-family: "Fraunces";
  font-size: 0.92rem;
  color: var(--sage-deep);
}
.vn-foot a:hover {
  color: var(--brick);
}

@media (max-width: 520px) {
  .vn-item a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }
  .vn-item a:hover {
    padding-left: 20px;
  }
} */
