/* Minisito Banda Musicale «Città di Martina Franca»: si somma a lazatteradicarta/assets/css/style.css.
   Linguaggio: istituzionale ma caloroso. Blu profondo e blu reale delle divise, oro caldo, avorio; granata dal sipario del palco.
   Titoli serif (Playfair Display), testo Source Sans 3. Contrasti AA verificati: testo #23252F su avorio 14:1, blu reale 7:1,
   oro scuro (#8A5A0A) 5,4:1, oro su blu profondo 6,4:1. */
:root {
  --bd-profondo: #12245A; --bd-royal: #1F4DB0; --bd-oro: #D99A2B; --bd-oro-chiaro: #F1C56B; --bd-oro-testo: #8A5A0A;
  --bd-avorio: #FBF7EE; --bd-sabbia: #F3EAD6; --bd-granata: #8E1F3A; --bd-testo: #23252F; --bd-muto: #555A68;
  --bd-ombra: 0 10px 30px rgba(18, 36, 90, .12); --bd-ombra-su: 0 16px 38px rgba(18, 36, 90, .2); --bd-raggio: 14px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', 'Segoe UI', sans-serif; background: var(--bd-avorio); color: var(--bd-testo); line-height: 1.7; font-size: 1.05rem; }
h1, h2, h3, h4, .brand-font { font-family: 'Playfair Display', Georgia, serif; letter-spacing: .003em; }
a { color: var(--bd-royal); text-underline-offset: .18em; }
a:hover { color: var(--bd-profondo); }
.text-muted { color: var(--bd-muto) !important; }
:focus-visible { outline: 3px solid var(--bd-oro); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--bd-oro-chiaro); color: var(--bd-profondo); }

/* ---------- Barra di navigazione ---------- */
.zc-navbar { background: linear-gradient(180deg, #0D1C4B, var(--bd-profondo)) !important; border-bottom: 3px solid var(--bd-oro); padding-block: .55rem; }
.zc-navbar .navbar-brand img { background: var(--bd-avorio); padding: 2px; box-shadow: 0 0 0 2px var(--bd-oro); }
.zc-navbar .navbar-brand .brand-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--bd-avorio); }
.zc-navbar .navbar-brand .brand-sub { color: var(--bd-oro-chiaro); letter-spacing: .14em; }
.zc-navbar .nav-link { color: rgba(251, 247, 238, .92) !important; font-weight: 600; font-size: .95rem; position: relative; padding: .5rem .7rem !important; }
.zc-navbar .nav-link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; background: var(--bd-oro); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.zc-navbar .nav-link:hover, .zc-navbar .nav-link.active { color: var(--bd-oro-chiaro) !important; }
.zc-navbar .nav-link:hover::after, .zc-navbar .nav-link.active::after { transform: scaleX(1); }
@media (max-width: 991.98px) { .zc-navbar .nav-link::after { display: none; } .zc-navbar .nav-link.active { background: rgba(255, 255, 255, .08); border-radius: .4rem; } }

/* ---------- Motivo musicale (pentagramma e note) ---------- */
.bd-penta { display: block; width: 100%; height: 64px; color: var(--bd-oro); overflow: visible; }
.bd-penta line { stroke: currentColor; stroke-width: 1.1; fill: none; opacity: .55; vector-effect: non-scaling-stroke; }
.bd-penta .n ellipse { fill: currentColor; }
.bd-penta .n line { stroke-width: 1.6; opacity: .9; }
.bd-penta .n { opacity: .9; }
.bd-penta-testata { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; opacity: .8; pointer-events: none; }
.bd-penta-sezione { height: 48px; color: var(--bd-oro); opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .bd-penta line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bd-traccia 1.8s ease-out forwards; animation-delay: calc(var(--i) * .12s); }
  .bd-penta .n { opacity: 0; animation: bd-nota .7s ease-out forwards; animation-delay: calc(.9s + var(--n) * .12s); }
}
@keyframes bd-traccia { to { stroke-dashoffset: 0; } }
@keyframes bd-nota { from { opacity: 0; transform: translateY(8px); } to { opacity: .9; transform: none; } }

/* ---------- Titoli di sezione ---------- */
.bd-sopra { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bd-oro-testo); }
.bd-sopra::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.bd-sopra-chiaro { color: var(--bd-oro-chiaro); }
.bd-titolo { font-weight: 700; color: var(--bd-profondo); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 1rem; }
.bd-titolo::after { content: ""; display: block; width: 56px; height: 3px; margin-top: .7rem; border-radius: 3px; background: linear-gradient(90deg, var(--bd-oro) 0 70%, var(--bd-granata) 70%); }
.bd-titolo.text-center::after, .text-center .bd-titolo::after { margin-inline: auto; }
.bd-sezione { padding: 4rem 0; }
.bd-sezione-sabbia { background: var(--bd-sabbia); }
.bd-sezione-blu { background: radial-gradient(ellipse at 15% 0%, #1B3482, var(--bd-profondo) 62%); color: var(--bd-avorio); }
.bd-sezione-blu .bd-titolo { color: #fff; }
.bd-sezione-blu a:not(.bd-btn) { color: var(--bd-oro-chiaro); }
.bd-lead { font-size: 1.15rem; max-width: 40rem; opacity: .95; }

/* ---------- Pulsanti ---------- */
.bd-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .18s, box-shadow .18s, background .18s; line-height: 1.2; }
.bd-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .22); }
.bd-btn-oro { background: var(--bd-oro); color: var(--bd-profondo); }
.bd-btn-oro:hover { background: var(--bd-oro-chiaro); color: var(--bd-profondo); }
.bd-btn-blu { background: var(--bd-profondo); color: #fff; }
.bd-btn-blu:hover { background: var(--bd-royal); color: #fff; }
.bd-btn-linea { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.bd-btn-linea:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.bd-btn-linea-blu { background: transparent; color: var(--bd-profondo); border-color: var(--bd-profondo); }
.bd-btn-linea-blu:hover { background: var(--bd-profondo); color: #fff; }
.bd-link { font-weight: 700; text-decoration: none; }
.bd-link:hover { text-decoration: underline; }

/* ---------- Hero della home ---------- */
.bd-hero { position: relative; isolation: isolate; color: #fff; background: var(--bd-profondo); overflow: hidden; display: flex; align-items: center; min-height: clamp(540px, 80vh, 780px); }
.bd-hero-foto { position: absolute; inset: 0; z-index: -2; }
.bd-hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.bd-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(10, 22, 66, .95) 0%, rgba(14, 28, 78, .86) 28%, rgba(18, 36, 90, .3) 52%, rgba(18, 36, 90, .04) 100%), linear-gradient(0deg, rgba(10, 22, 66, .6), transparent 30%); }
.bd-hero-in { padding: 5rem 0 6.5rem; }
.bd-hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.08; margin: 0 0 1.1rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.bd-hero h1 em { display: block; font-style: italic; font-weight: 600; color: var(--bd-oro-chiaro); font-size: .62em; margin-bottom: .25rem; }
.bd-hero .bd-lead { margin-bottom: 1.8rem; }
.bd-hero .bd-penta { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; opacity: .85; }
.bd-patrocinio { position: absolute; right: max(1rem, calc((100vw - 1320px) / 2)); bottom: 5.4rem; display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem .6rem .7rem; max-width: 20rem; background: rgba(251, 247, 238, .96); color: var(--bd-profondo); border-radius: 12px; box-shadow: var(--bd-ombra-su); font-size: .86rem; line-height: 1.3; }
.bd-patrocinio img { height: 54px; width: auto; }
.bd-patrocinio b { display: block; font-family: 'Playfair Display', serif; }
@media (max-width: 991.98px) { .bd-patrocinio { position: static; margin-top: 2rem; display: inline-flex; } .bd-hero-in { padding: 3.5rem 0 5.5rem; } }
@media (prefers-reduced-motion: no-preference) {
  .bd-hero-foto img { animation: bd-zoom 2.4s ease-out both; }
  .bd-hero-in > * { animation: bd-sale .9s ease-out both; }
  .bd-hero-in > *:nth-child(2) { animation-delay: .12s; } .bd-hero-in > *:nth-child(3) { animation-delay: .24s; } .bd-hero-in > *:nth-child(4) { animation-delay: .36s; }
}
@keyframes bd-zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes bd-sale { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Testata delle pagine interne ---------- */
.bd-testata { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 4.2rem 0 5.4rem; background: radial-gradient(ellipse at 20% 0%, #1B3482, var(--bd-profondo) 65%); }
.bd-testata h1 { font-weight: 800; font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.1; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.bd-testata .bd-lead { margin: .8rem 0 0; }
.bd-testata-foto { position: absolute; inset: 0; z-index: -2; }
.bd-testata-foto img { width: 100%; height: 100%; object-fit: cover; }
.bd-testata.ha-foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(10, 22, 66, .95), rgba(18, 36, 90, .8) 60%, rgba(18, 36, 90, .55)); }
.bd-testata .badge { margin-top: .8rem; }

/* ---------- Foto incorniciate ---------- */
.bd-cornice { position: relative; margin: 0 14px 14px 0; }
.bd-cornice img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: var(--bd-ombra); position: relative; z-index: 1; }
.bd-cornice::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--bd-oro); border-radius: 6px; z-index: 0; }
.bd-cornice figcaption { position: relative; z-index: 1; margin-top: .5rem; font-size: .85rem; color: var(--bd-muto); }
.bd-sezione-blu .bd-cornice figcaption { color: rgba(251, 247, 238, .8); }

/* ---------- Tre tessere con foto ---------- */
.bd-tessera { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--bd-raggio); box-shadow: var(--bd-ombra); color: #fff; text-decoration: none; background: var(--bd-profondo); }
.bd-tessera img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bd-tessera::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 66, .92) 0%, rgba(10, 22, 66, .5) 40%, transparent 70%); }
.bd-tessera:hover img { transform: scale(1.05); }
.bd-tessera-testo { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.3rem 1.3rem 1.4rem; }
.bd-tessera h3 { font-size: 1.45rem; font-weight: 700; margin: 0 0 .25rem; color: #fff; }
.bd-tessera h3::before { content: ""; display: block; width: 34px; height: 3px; background: var(--bd-oro); margin-bottom: .6rem; }
.bd-tessera p { margin: 0; font-size: .97rem; color: rgba(255, 255, 255, .94); }
.bd-tessera:hover { color: #fff; }

/* ---------- Eventi ---------- */
.bd-evento { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem .8rem .8rem; margin-bottom: .9rem; background: #fff; border-radius: var(--bd-raggio); box-shadow: 0 4px 16px rgba(18, 36, 90, .09); text-decoration: none; color: var(--bd-testo); border-left: 4px solid var(--bd-oro); transition: transform .18s, box-shadow .18s; }
.bd-evento:hover { transform: translateY(-2px); box-shadow: var(--bd-ombra); color: var(--bd-testo); }
.bd-data { flex: 0 0 auto; width: 68px; padding: .5rem .2rem; text-align: center; background: var(--bd-profondo); color: #fff; border-radius: 10px; line-height: 1; }
.bd-data b { display: block; font: 700 1.9rem 'Playfair Display', serif; }
.bd-data i { display: block; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--bd-oro-chiaro); margin-top: .15rem; }
.bd-data small { display: block; font-size: .7rem; opacity: .8; margin-top: .1rem; }
.bd-evento-corpo { flex: 1 1 auto; min-width: 0; display: block; }
.bd-evento-titolo { display: block; font: 700 1.12rem/1.3 'Playfair Display', serif; color: var(--bd-profondo); margin-bottom: .2rem; }
.bd-evento-meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; font-size: .9rem; color: var(--bd-muto); }
.bd-evento-meta i { color: var(--bd-royal); margin-right: .2rem; }
.bd-evento-mini { flex: 0 0 auto; width: 92px; height: 64px; object-fit: cover; border-radius: 8px; }
.bd-freccia { color: var(--bd-royal); transition: transform .18s; }
.bd-evento:hover .bd-freccia { transform: translateX(4px); }
@media (max-width: 575.98px) { .bd-evento-mini { display: none; } .bd-data { width: 58px; } }

/* ---------- Notizie ---------- */
.bd-notizia { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--bd-raggio); overflow: hidden; box-shadow: 0 4px 16px rgba(18, 36, 90, .09); text-decoration: none; color: var(--bd-testo); transition: transform .18s, box-shadow .18s; }
.bd-notizia:hover { transform: translateY(-3px); box-shadow: var(--bd-ombra-su); color: var(--bd-testo); }
.bd-notizia-foto { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bd-sabbia); }
.bd-notizia-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bd-notizia:hover .bd-notizia-foto img { transform: scale(1.05); }
.bd-notizia-vuota { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.2rem; color: var(--bd-oro); background: linear-gradient(135deg, var(--bd-sabbia), #fff); }
.bd-notizia-corpo { display: block; padding: 1rem 1.15rem 1.2rem; }
.bd-notizia-corpo time { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--bd-oro-testo); margin-bottom: .25rem; }
.bd-notizia-titolo { display: block; font: 700 1.2rem/1.3 'Playfair Display', serif; color: var(--bd-profondo); margin-bottom: .4rem; }
.bd-notizia-testo { display: block; font-size: .95rem; color: var(--bd-muto); }

/* ---------- Galleria ---------- */
.bd-galleria .gal-grid { gap: 8px; }
.bd-galleria .gal-item { border-radius: 8px; box-shadow: 0 3px 12px rgba(18, 36, 90, .15); }
.bd-galleria .gal-item:focus-visible { outline-color: var(--bd-oro); }
.bd-polaroid { display: block; margin: 0; padding: 10px 10px 0; background: #fff; border-radius: 6px; box-shadow: var(--bd-ombra); text-decoration: none; color: var(--bd-testo); transition: transform .2s, box-shadow .2s; height: 100%; }
.bd-polaroid:hover { transform: translateY(-3px); box-shadow: var(--bd-ombra-su); color: var(--bd-testo); }
.bd-polaroid img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 3px; filter: sepia(.12); }
.bd-polaroid span { display: block; padding: .6rem .2rem .8rem; font-size: .92rem; line-height: 1.35; }
.bd-polaroid b { color: var(--bd-profondo); font-family: 'Playfair Display', serif; }
.bd-polaroid small { display: block; color: var(--bd-muto); }
.bd-video { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; height: 100%; background: #fff; border-radius: var(--bd-raggio); box-shadow: 0 4px 16px rgba(18, 36, 90, .09); text-decoration: none; color: var(--bd-testo); border-left: 4px solid var(--bd-granata); transition: transform .18s, box-shadow .18s; }
.bd-video:hover { transform: translateY(-2px); box-shadow: var(--bd-ombra); color: var(--bd-testo); }
.bd-video .bd-play { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bd-granata); color: #fff; }
.bd-video b { font-family: 'Playfair Display', serif; color: var(--bd-profondo); }

/* ---------- La banda oggi ---------- */
.bd-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(241, 197, 107, .6); color: var(--bd-oro-chiaro); font-weight: 700; font-size: .92rem; margin: 0 .35rem .5rem 0; }
.bd-direzione { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin: 1.2rem 0; background: rgba(255, 255, 255, .08); border-radius: var(--bd-raggio); border-left: 4px solid var(--bd-oro); }
.bd-direzione i { font-size: 1.6rem; color: var(--bd-oro-chiaro); }
.bd-direzione b { display: block; font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.bd-direzione small { opacity: .85; font-size: .9rem; }

/* ---------- Storia: linea del tempo ---------- */
.bd-tl { position: relative; list-style: none; margin: 2rem 0 0; padding: 0; }
.bd-tl::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--bd-oro), var(--bd-royal) 60%, var(--bd-granata)); }
.bd-tl li { position: relative; padding-left: 54px; margin-bottom: 1.6rem; }
.bd-tl li::before { content: ""; position: absolute; left: 7px; top: 1.2rem; width: 23px; height: 23px; border-radius: 50%; background: var(--bd-royal); border: 4px solid var(--bd-avorio); box-shadow: 0 0 0 2px var(--bd-royal); z-index: 1; }
.bd-tl li.maestro::before { background: var(--bd-oro); box-shadow: 0 0 0 2px var(--bd-oro); }
.bd-tl li.riconoscimento::before { background: var(--bd-granata); box-shadow: 0 0 0 2px var(--bd-granata); }
.bd-tl li.evento::before { background: var(--bd-profondo); box-shadow: 0 0 0 2px var(--bd-profondo); }
.bd-tl-card { background: #fff; border-radius: var(--bd-raggio); padding: 1.1rem 1.3rem 1.2rem; box-shadow: 0 4px 18px rgba(18, 36, 90, .1); text-align: left; }
.bd-tl-anno { font: 700 1.55rem/1 'Playfair Display', serif; color: var(--bd-oro-testo); }
.bd-tl li.riconoscimento .bd-tl-anno { color: var(--bd-granata); }
.bd-tl li.storia .bd-tl-anno, .bd-tl li.evento .bd-tl-anno { color: var(--bd-royal); }
.bd-tl h3 { font-size: 1.2rem; font-weight: 700; color: var(--bd-profondo); margin: .35rem 0 .4rem; }
.bd-tl p { margin: 0; }
.bd-tl img { display: block; max-width: 100%; width: 340px; margin-top: .8rem; padding: 6px; background: #fff; border: 1px solid #e4dccb; border-radius: 4px; box-shadow: 0 3px 10px rgba(18, 36, 90, .15); filter: sepia(.12); }
@media (min-width: 992px) {
  .bd-tl::before { left: 50%; margin-left: -1.5px; }
  .bd-tl li { width: 50%; padding: 0 3.2rem 0 0; margin-bottom: 1.2rem; }
  .bd-tl li::before { left: auto; right: -11.5px; }
  .bd-tl li:nth-child(even) { margin-left: 50%; padding: 0 0 0 3.2rem; }
  .bd-tl li:nth-child(even)::before { right: auto; left: -11.5px; }
  .bd-tl li .bd-tl-card::before { content: ""; position: absolute; top: 1.35rem; right: -10px; border: 10px solid transparent; border-right: 0; border-left-color: #fff; }
  .bd-tl li:nth-child(even) .bd-tl-card::before { right: auto; left: -10px; border: 10px solid transparent; border-left: 0; border-right-color: #fff; }
  .bd-tl-card { position: relative; }
}
.bd-legenda { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--bd-muto); }
.bd-legenda i { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.bd-maestri { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.bd-maestri li { display: flex; align-items: center; gap: .85rem; background: #fff; border-radius: 12px; padding: .8rem 1rem; box-shadow: 0 3px 12px rgba(18, 36, 90, .08); border-top: 3px solid var(--bd-oro); }
.bd-ritratto { flex: 0 0 auto; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bd-oro); box-shadow: 0 2px 8px rgba(18, 36, 90, .25); background: #fff; }
.bd-iniziali { display: inline-flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; color: var(--bd-oro-testo); background: linear-gradient(145deg, #fbf6e6, #efe3bd); }
.bd-maestro-testo { min-width: 0; }
.bd-maestri b { display: block; font-family: 'Playfair Display', serif; color: var(--bd-profondo); }
.bd-maestri span { display: block; font-size: .9rem; color: var(--bd-muto); }
.bd-maestri em { font-style: normal; font-weight: 700; font-size: .88rem; color: var(--bd-oro-testo); }

/* ---------- Il Comune e la banda ---------- */
.bd-comune { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 1.8rem; background: #fff; border-radius: 18px; box-shadow: var(--bd-ombra); border-top: 4px solid var(--bd-oro); }
.bd-comune img { flex: 0 0 auto; height: 130px; width: auto; }
.bd-comune-dic { font: 700 clamp(1.25rem, 2.6vw, 1.7rem)/1.25 'Playfair Display', serif; color: var(--bd-profondo); margin: 0 0 .6rem; }
.bd-comune .bd-sopra { margin-bottom: .3rem; }
@media (max-width: 575.98px) { .bd-comune { flex-direction: column; text-align: center; } .bd-comune .bd-sopra { justify-content: center; } }
.bd-atto { height: 100%; background: #fff; border-radius: var(--bd-raggio); padding: 1.3rem 1.4rem; box-shadow: 0 4px 16px rgba(18, 36, 90, .09); border-top: 4px solid var(--bd-royal); }
.bd-atto-n { font: 700 1.5rem/1.1 'Playfair Display', serif; color: var(--bd-profondo); margin: 0 0 .1rem; }
.bd-atto-data { font-weight: 700; color: var(--bd-oro-testo); margin-bottom: .6rem; }
.bd-atto p { margin: 0; font-size: .98rem; }

/* ---------- Pagine di dettaglio (evento, notizia) ---------- */
.bd-articolo { font-size: 1.1rem; }
.bd-articolo h2, .bd-articolo h3 { color: var(--bd-profondo); font-weight: 700; margin-top: 1.8rem; }
.bd-articolo img { max-width: 100%; height: auto; border-radius: 8px; }
.bd-articolo blockquote { margin: 1.4rem 0; padding: .4rem 1.2rem; border-left: 4px solid var(--bd-oro); font-family: 'Playfair Display', serif; font-style: italic; color: var(--bd-profondo); }
.bd-scheda { background: #fff; border-radius: var(--bd-raggio); padding: 1.3rem 1.4rem; box-shadow: var(--bd-ombra); border-top: 4px solid var(--bd-oro); }
.bd-scheda p { margin-bottom: .7rem; }
.bd-scheda strong { color: var(--bd-profondo); }
.bd-copertina { display: block; width: 100%; height: auto; border-radius: var(--bd-raggio); box-shadow: var(--bd-ombra); margin-bottom: 1.5rem; }

/* ---------- Social ---------- */
.bd-social a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.3rem; border-radius: 999px; font-weight: 700; color: #fff; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.bd-social a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .22); color: #fff; }
.bd-social a.fb { background: #1558C0; }
.bd-social a.ig { background: linear-gradient(45deg, #d6792a, #c53a54 55%, #9b2f9e); }

/* ---------- Componenti Bootstrap e calendario nei colori del tema ---------- */
.btn-primary { --bs-btn-bg: var(--bd-profondo); --bs-btn-border-color: var(--bd-profondo); --bs-btn-hover-bg: var(--bd-royal); --bs-btn-hover-border-color: var(--bd-royal); --bs-btn-active-bg: var(--bd-royal); --bs-btn-active-border-color: var(--bd-royal); border-radius: 999px; font-weight: 700; }
.btn-outline-primary { --bs-btn-color: var(--bd-profondo); --bs-btn-border-color: var(--bd-profondo); --bs-btn-hover-bg: var(--bd-profondo); --bs-btn-hover-border-color: var(--bd-profondo); --bs-btn-active-bg: var(--bd-profondo); border-radius: 999px; font-weight: 700; }
.btn-dark { --bs-btn-bg: var(--bd-profondo); --bs-btn-border-color: var(--bd-profondo); --bs-btn-hover-bg: var(--bd-royal); --bs-btn-hover-border-color: var(--bd-royal); }
.btn-outline-dark { --bs-btn-color: var(--bd-profondo); --bs-btn-border-color: var(--bd-profondo); --bs-btn-hover-bg: var(--bd-profondo); --bs-btn-hover-border-color: var(--bd-profondo); }
.btn-outline-secondary { --bs-btn-color: #3d4252; --bs-btn-border-color: #8a8f9e; }
.btn-outline-success { --bs-btn-color: #146c43; --bs-btn-border-color: #146c43; }
.btn-group .btn:first-child { border-radius: 999px 0 0 999px; } .btn-group .btn:last-child { border-radius: 0 999px 999px 0; }
.fz-cal-wrap .fz-cal th { background: var(--bd-profondo); color: #fff; font-weight: 600; }
.fz-cal-wrap .fz-cal td.fz-oggi { background: #FFF3D6; }
.zc-coming-soon { border-radius: 18px; border-color: var(--bd-oro-chiaro); background: #fff; }
.zc-coming-soon i { color: var(--bd-oro) !important; }

/* ---------- Piè di pagina ---------- */
.zc-footer { background: linear-gradient(180deg, var(--bd-profondo), #0B173D); border-top: 4px solid var(--bd-oro); }

/* ---------- Comparsa leggera allo scorrimento (solo dove il browser la supporta) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bd-rivela { animation: bd-sale linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .bd-sezione { padding: 2.8rem 0; }
  .bd-testata { padding: 3rem 0 4.6rem; }
  .bd-cornice { margin: 0 10px 10px 0; } .bd-cornice::before { inset: 10px -10px -10px 10px; }
}

/* Player audio */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-player { margin: 1rem 0; padding: 1rem 1.1rem; background: linear-gradient(135deg, var(--bd-profondo), #1B3482); color: var(--bd-avorio); border-radius: var(--bd-raggio); border-left: 5px solid var(--bd-oro); box-shadow: var(--bd-ombra); }
.bd-player audio { width: 100%; }
.bd-player-ui { display: flex; align-items: center; gap: 1rem; }
.bd-player-ui[hidden] { display: none; }
.bd-player-play { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--bd-oro); color: var(--bd-profondo); font-size: 1.1rem; cursor: pointer; transition: background .2s, transform .15s; }
.bd-player-play:hover { background: var(--bd-oro-chiaro); transform: scale(1.05); }
.bd-player-corpo { flex: 1 1 auto; min-width: 0; }
.bd-player-titolo { margin: 0 0 .35rem; font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.25; }
.bd-player-titolo small { display: block; font-family: 'Source Sans 3', sans-serif; font-weight: 400; font-size: .85rem; color: var(--bd-oro-chiaro); }
.bd-player-riga { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.bd-player-t { font-variant-numeric: tabular-nums; font-size: .85rem; min-width: 2.6rem; }
.bd-player-barra { flex: 1 1 120px; min-width: 100px; }
.bd-player input[type=range] { accent-color: var(--bd-oro); height: 1.4rem; cursor: pointer; }
.bd-player-vol { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .9rem; }
.bd-player-vol input { width: 80px; }
.bd-player figcaption { margin-top: .6rem; font-size: .8rem; color: #cbd6f2; }
.bd-player.errore figcaption::after { content: " · Non riesco a riprodurre il brano: riprova più tardi."; color: var(--bd-oro-chiaro); }
.bd-player-compatto { margin: .8rem 0 0; padding: .75rem .9rem; }
.bd-player-compatto .bd-player-play { width: 44px; height: 44px; }
.bd-player-compatto .bd-player-titolo { font-size: .95rem; }
.bd-player-compatto .bd-player-vol { display: none; }
@media (max-width: 575px) { .bd-player-ui { align-items: flex-start; } .bd-player-vol { display: none; } }
