/* 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 {
  /* Armonie d'Itria: arancione caldo e blu reale (identità storica del sito), così il contenitore si distingue dai minisiti (blu e oro) */
  --ad-profondo: #1B3278; --ad-royal: #233E93; --ad-oro: #F28C28; --ad-oro-chiaro: #FBB45F; --ad-oro-testo: #B35A00;
  --ad-avorio: #FFFAF5; --ad-sabbia: #FBEBD6; --ad-granata: #C1442E; --ad-testo: #2A2B33; --ad-muto: #5A5F6B;
  --ad-ombra: 0 10px 30px rgba(18, 36, 90, .12); --ad-ombra-su: 0 16px 38px rgba(18, 36, 90, .2); --ad-raggio: 14px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', 'Segoe UI', sans-serif; background: var(--ad-avorio); color: var(--ad-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(--ad-royal); text-underline-offset: .18em; }
a:hover { color: var(--ad-profondo); }
.text-muted { color: var(--ad-muto) !important; }
:focus-visible { outline: 3px solid var(--ad-oro); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--ad-oro-chiaro); color: var(--ad-profondo); }

/* ---------- Barra di navigazione (arancione, come il sito storico) ---------- */
.zc-navbar { background: linear-gradient(180deg, #F7A04A, var(--ad-oro)) !important; border-bottom: 3px solid var(--ad-royal); padding-block: .5rem; box-shadow: 0 2px 12px rgba(27, 50, 120, .18); }
.zc-navbar .navbar-brand img { background: #fff; padding: 3px; box-shadow: 0 0 0 2px #fff; }
.zc-navbar .navbar-brand .brand-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; color: #12245A; }
.zc-navbar .navbar-brand .brand-sub { color: #3B2A12; letter-spacing: .12em; opacity: .85; }
.zc-navbar .nav-link { color: #12245A !important; font-weight: 700; font-size: .95rem; padding: .45rem .8rem !important; border-radius: 999px; transition: background .15s; }
.zc-navbar .nav-link:hover { background: rgba(255, 255, 255, .35); color: #12245A !important; }
.zc-navbar .nav-link.active { background: #fff; color: var(--ad-royal) !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.zc-navbar .navbar-toggler { border-color: #12245A; }
.zc-navbar .navbar-toggler-icon { filter: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2312245A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
@media (max-width: 991.98px) { .zc-navbar .navbar-collapse { background: rgba(255, 255, 255, .25); border-radius: .6rem; padding: .6rem; margin-top: .5rem; } }

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

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

/* ---------- Pulsanti ---------- */
.ad-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; }
.ad-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .22); }
.ad-btn-oro { background: var(--ad-oro); color: var(--ad-profondo); }
.ad-btn-oro:hover { background: var(--ad-oro-chiaro); color: var(--ad-profondo); }
.ad-btn-blu { background: var(--ad-profondo); color: #fff; }
.ad-btn-blu:hover { background: var(--ad-royal); color: #fff; }
.ad-btn-linea { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.ad-btn-linea:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ad-btn-linea-blu { background: transparent; color: var(--ad-profondo); border-color: var(--ad-profondo); }
.ad-btn-linea-blu:hover { background: var(--ad-profondo); color: #fff; }
.ad-link { font-weight: 700; text-decoration: none; }
.ad-link:hover { text-decoration: underline; }

/* ---------- Hero della home ---------- */
.ad-hero { position: relative; isolation: isolate; color: #fff; background: var(--ad-profondo); overflow: hidden; display: flex; align-items: center; min-height: clamp(540px, 80vh, 780px); }
.ad-hero-foto { position: absolute; inset: 0; z-index: -2; }
.ad-hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.ad-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%); }
.ad-hero-in { padding: 5rem 0 6.5rem; }
.ad-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); }
.ad-hero h1 em { display: block; font-style: italic; font-weight: 600; color: var(--ad-oro-chiaro); font-size: .62em; margin-bottom: .25rem; }
.ad-hero .ad-lead { margin-bottom: 1.8rem; }
.ad-hero .ad-penta { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; opacity: .85; }
.ad-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(--ad-profondo); border-radius: 12px; box-shadow: var(--ad-ombra-su); font-size: .86rem; line-height: 1.3; }
.ad-patrocinio img { height: 54px; width: auto; }
.ad-patrocinio b { display: block; font-family: 'Playfair Display', serif; }
@media (max-width: 991.98px) { .ad-patrocinio { position: static; margin-top: 2rem; display: inline-flex; } .ad-hero-in { padding: 3.5rem 0 5.5rem; } }
@media (prefers-reduced-motion: no-preference) {
  .ad-hero-foto img { animation: ad-zoom 2.4s ease-out both; }
  .ad-hero-in > * { animation: ad-sale .9s ease-out both; }
  .ad-hero-in > *:nth-child(2) { animation-delay: .12s; } .ad-hero-in > *:nth-child(3) { animation-delay: .24s; } .ad-hero-in > *:nth-child(4) { animation-delay: .36s; }
}
@keyframes ad-zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes ad-sale { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Testata delle pagine interne ---------- */
.ad-testata { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 4.2rem 0 5.4rem; background: radial-gradient(ellipse at 20% 0%, #1B3482, var(--ad-profondo) 65%); }
.ad-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); }
.ad-testata .ad-lead { margin: .8rem 0 0; }
.ad-testata-foto { position: absolute; inset: 0; z-index: -2; }
.ad-testata-foto img { width: 100%; height: 100%; object-fit: cover; }
.ad-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)); }
.ad-testata .badge { margin-top: .8rem; }

/* ---------- Foto incorniciate ---------- */
.ad-cornice { position: relative; margin: 0 14px 3.4rem 0; }   /* la didascalia sta fuori dalla cornice (sotto il suo bordo), non attraversata dalla linea dorata */
.ad-cornice img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: var(--ad-ombra); position: relative; z-index: 1; }
.ad-cornice::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--ad-oro); border-radius: 6px; z-index: 0; }
.ad-cornice figcaption { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; margin-top: 1.45rem; font-size: .85rem; line-height: 1.3; color: var(--ad-muto); }
.ad-sezione-blu .ad-cornice figcaption { color: rgba(251, 247, 238, .8); }

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

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

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

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

/* ---------- La banda oggi ---------- */
.ad-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(--ad-oro-chiaro); font-weight: 700; font-size: .92rem; margin: 0 .35rem .5rem 0; }
.ad-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(--ad-raggio); border-left: 4px solid var(--ad-oro); }
.ad-direzione i { font-size: 1.6rem; color: var(--ad-oro-chiaro); }
.ad-direzione b { display: block; font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.ad-direzione small { opacity: .85; font-size: .9rem; }

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

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

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

/* ---------- Social ---------- */
.ad-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; }
.ad-social a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .22); color: #fff; }
.ad-social a.fb { background: #1558C0; }
.ad-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(--ad-profondo); --bs-btn-border-color: var(--ad-profondo); --bs-btn-hover-bg: var(--ad-royal); --bs-btn-hover-border-color: var(--ad-royal); --bs-btn-active-bg: var(--ad-royal); --bs-btn-active-border-color: var(--ad-royal); border-radius: 999px; font-weight: 700; }
.btn-outline-primary { --bs-btn-color: var(--ad-profondo); --bs-btn-border-color: var(--ad-profondo); --bs-btn-hover-bg: var(--ad-profondo); --bs-btn-hover-border-color: var(--ad-profondo); --bs-btn-active-bg: var(--ad-profondo); border-radius: 999px; font-weight: 700; }
.btn-dark { --bs-btn-bg: var(--ad-profondo); --bs-btn-border-color: var(--ad-profondo); --bs-btn-hover-bg: var(--ad-royal); --bs-btn-hover-border-color: var(--ad-royal); }
.btn-outline-dark { --bs-btn-color: var(--ad-profondo); --bs-btn-border-color: var(--ad-profondo); --bs-btn-hover-bg: var(--ad-profondo); --bs-btn-hover-border-color: var(--ad-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(--ad-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(--ad-oro-chiaro); background: #fff; }
.zc-coming-soon i { color: var(--ad-oro) !important; }

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

/* ---------- Comparsa leggera allo scorrimento (solo dove il browser la supporta) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ad-rivela { animation: ad-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; }
  .ad-sezione { padding: 2.8rem 0; }
  .ad-testata { padding: 3rem 0 4.6rem; }
  .ad-cornice { margin: 0 10px 3.2rem 0; } .ad-cornice::before { inset: 10px -10px -10px 10px; } .ad-cornice figcaption { margin-top: 1.2rem; }
}

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

/* ======================================================================
   Sito principale Armonie d'Itria: elementi propri del contenitore
   ====================================================================== */
.ad-hero-logo { width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, var(--ad-avorio) 70%); box-shadow: 0 0 0 6px var(--ad-oro), 0 24px 60px rgba(0, 0, 0, .4); padding: 7%; }
.ad-hero-logo img { width: 100%; height: auto; }
.ad-fascia { background: var(--ad-profondo); color: var(--ad-avorio); padding: 1.6rem 0; border-top: 3px solid var(--ad-oro); }
.ad-numero b { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--ad-oro-chiaro); line-height: 1.1; }
.ad-numero span { font-size: .9rem; opacity: .9; }
.ad-tessera-logo { background: linear-gradient(180deg, #fff, var(--ad-avorio)); color: var(--ad-profondo); }
.ad-tessera-logo img { position: static; width: 70%; height: auto; margin: 2.2rem auto 0; display: block; object-fit: contain; }
.ad-tessera-logo .ad-tessera-testo { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; }
.ad-vai { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; color: var(--ad-oro-chiaro); font-size: .92rem; margin-top: .4rem; }
.ad-rivela { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.ad-rivela.visibile { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ad-rivela { opacity: 1; transform: none; transition: none; } }
.breadcrumb { font-size: .9rem; }
nav.bg-light[aria-label="breadcrumb"] { background: var(--ad-sabbia) !important; }
.ad-tessera-logo .ad-tessera-testo { background: linear-gradient(180deg, rgba(18,36,90,0), var(--ad-profondo) 34%); padding-top: 3rem; }

/* ----- Compatibilità con le pagine non ancora rifatte (markup Bootstrap del vecchio sito) ----- */
.container-fluid-bg.bg-dark { background: radial-gradient(ellipse at 20% 0%, #1B3482, var(--ad-profondo) 65%) !important; color: #fff !important; border-bottom: 3px solid var(--ad-oro); }
.container-fluid-bg.bg-dark h1, .container-fluid-bg.bg-dark .display-4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; color: #fff !important; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.container-fluid-bg.bg-dark .lead, .container-fluid-bg.bg-dark .pg-sotto { color: rgba(255, 255, 255, .88) !important; }
.container-fluid-bg.pg-testa { padding: 2.4rem 0 !important; margin: 0 0 1.5rem !important; text-align: center; }
.pg-testa .pg-titolo { font-size: clamp(1.7rem, 4vw, 2.5rem) !important; margin: 0; line-height: 1.15; }
.pg-testa .pg-sotto { font-size: 1rem !important; margin: .5rem auto 0 !important; max-width: 46rem; }
.btn-scopri { display: inline-block; padding: .65rem 1.4rem; border: 2px solid var(--ad-profondo); color: var(--ad-profondo); background: transparent; font-weight: 700; border-radius: 999px; text-decoration: none; text-transform: none; transition: all .2s; }
.btn-scopri:hover { background: var(--ad-profondo); color: #fff; }
.container-fluid-bg.bg-dark .btn-scopri { border-color: var(--ad-oro); color: var(--ad-oro-chiaro); }
.container-fluid-bg.bg-dark .btn-scopri:hover { background: var(--ad-oro); color: var(--ad-profondo); }
.btn-outline-primary { --bs-btn-color: var(--ad-profondo); --bs-btn-border-color: var(--ad-profondo); --bs-btn-hover-bg: var(--ad-profondo); --bs-btn-hover-border-color: var(--ad-profondo); --bs-btn-active-bg: var(--ad-profondo); border-radius: 999px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--ad-profondo); --bs-btn-border-color: var(--ad-profondo); --bs-btn-hover-bg: var(--ad-royal); --bs-btn-hover-border-color: var(--ad-royal); border-radius: 999px; font-weight: 600; }
.section-title::before { background: var(--ad-oro) !important; }
main h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--ad-profondo); }
main h5, main h6 { color: var(--ad-profondo); }
main .card { border-radius: var(--ad-raggio); }
.zc-footer, .fu { margin-top: 0; }

.ad-accesso { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; transition: background .18s, transform .18s; height: 100%; }
.ad-accesso:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); color: #fff; }
.ad-accesso > i:first-child { font-size: 1.6rem; color: var(--ad-oro-chiaro); width: 2rem; text-align: center; }
.ad-accesso b { display: block; font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.ad-accesso small { display: block; opacity: .85; line-height: 1.35; }
.ad-acc-freccia { margin-left: auto; color: var(--ad-oro-chiaro); }
