/* =====================================================================
   Balla Tango — componenti
   Regole: solo token di tokens.css, nessuno stile inline nell'HTML,
   classi bt-* in BEM leggero, un solo breakpoint di layout (960px).
   Decori e icone: SVG della bozza usati come maschera (variabili --bt-svg-*
   generate in decor.css). Il colore e' currentColor o una variabile,
   quindi hover/attivo si gestiscono solo in CSS.
   ===================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; background-color: var(--bt-c-carta); }
body {
  margin: 0;
  font-family: var(--bt-font);
  font-size: var(--bt-fs-m);
  line-height: var(--bt-lh-testo);
  font-stretch: var(--bt-stretch-testo);
  color: var(--bt-c-inchiostro);
  /* Carta: grana fine (tile 256) + macchie morbide (tile 1600), entrambe dai filtri della bozza */
  background-color: var(--bt-c-carta);
  background-image: url("../img/grana.webp"), url("../img/macchie.webp");
  background-size: 256px, 1600px;
  background-blend-mode: multiply, multiply;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--bt-c-bordeaux);
  outline-offset: 3px;
}
.bt-section--accent :focus-visible, .bt-footer :focus-visible, .bt-topbar :focus-visible { outline-color: var(--bt-c-pesca); }
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  font-stretch: var(--bt-stretch-titoli);
  line-height: var(--bt-lh-titoli);
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: var(--bt-fs-4xl); line-height: .98; letter-spacing: -.02em; }
h2 { font-size: var(--bt-fs-3xl); }
h3 { font-size: var(--bt-fs-2xl); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.bt-sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.bt-skip {
  position: absolute; left: var(--bt-gutter); top: -100px; z-index: 100;
  padding: var(--bt-sp-1) var(--bt-sp-2);
  background: var(--bt-c-nero); color: var(--bt-c-crema);
}
.bt-skip:focus { top: var(--bt-sp-1); }

/* ---------- Maschera generica ---------- */
.bt-icon {
  display: inline-block; flex: none;
  width: var(--bt-icon-w, 1.5em); height: var(--bt-icon-h, 1.5em);
  background-color: currentColor;
  -webkit-mask: var(--bt-mask) center / contain no-repeat;
          mask: var(--bt-mask) center / contain no-repeat;
}
/* Le classi .bt-icon--nome (maschera) sono generate in decor.css; qui solo le misure speciali */
.bt-icon--freccia { --bt-icon-w: 2.5rem; --bt-icon-h: 1.5rem; }
.bt-icon--menu, .bt-icon--chiudi { --bt-icon-w: 2rem; --bt-icon-h: 2rem; }

/* ---------- Fileteado ---------- */
/* Svolazzo centrale (sopra/sotto titoli, nella fascia) */
.bt-ornament {
  display: block; margin-inline: auto;
  width: 16rem; max-width: 70%; aspect-ratio: 240 / 36;
  color: var(--bt-ornament, var(--bt-c-bordeaux));
  background-color: currentColor;
  -webkit-mask: var(--bt-svg-flourish) center / contain no-repeat;
          mask: var(--bt-svg-flourish) center / contain no-repeat;
}
.bt-ornament--giu { transform: scaleY(-1); }

/* Angoli a ricciolo su un riquadro: aggiungere .bt-fileteado al contenitore */
.bt-fileteado { position: relative; }
.bt-fileteado::after {
  content: ""; position: absolute; inset: calc(-1 * var(--bt-corner-out, 1.25rem)); pointer-events: none;
  background-color: var(--bt-corner-color, var(--bt-c-bordeaux));
  -webkit-mask:
    var(--bt-svg-fileteado-tl) top left / var(--bt-corner, 5.25rem) no-repeat,
    var(--bt-svg-fileteado-tr) top right / var(--bt-corner, 5.25rem) no-repeat,
    var(--bt-svg-fileteado-bl) bottom left / var(--bt-corner, 5.25rem) no-repeat,
    var(--bt-svg-fileteado-br) bottom right / var(--bt-corner, 5.25rem) no-repeat;
          mask:
    var(--bt-svg-fileteado-tl) top left / var(--bt-corner, 5.25rem) no-repeat,
    var(--bt-svg-fileteado-tr) top right / var(--bt-corner, 5.25rem) no-repeat,
    var(--bt-svg-fileteado-bl) bottom left / var(--bt-corner, 5.25rem) no-repeat,
    var(--bt-svg-fileteado-br) bottom right / var(--bt-corner, 5.25rem) no-repeat;
}

/* Divisore: filo + svolazzo + filo, un solo <hr> */
.bt-divider {
  --fw: min(18.75rem, 60%);
  --lw: calc((100% - var(--fw)) / 2 - .375rem);
  border: 0; margin: 0; height: 2.8rem;
  color: var(--bt-c-bordeaux);
  background-color: currentColor;
  -webkit-mask:
    var(--bt-svg-brush-line) left center / var(--lw) .36rem no-repeat,
    var(--bt-svg-flourish) center / var(--fw) 100% no-repeat,
    var(--bt-svg-brush-line) right center / var(--lw) .36rem no-repeat;
          mask:
    var(--bt-svg-brush-line) left center / var(--lw) .36rem no-repeat,
    var(--bt-svg-flourish) center / var(--fw) 100% no-repeat,
    var(--bt-svg-brush-line) right center / var(--lw) .36rem no-repeat;
}
/* Variante: solo filo grezzo scuro a tutta larghezza */
.bt-divider--filo {
  height: .4rem; color: var(--bt-c-inchiostro); opacity: .55;
  -webkit-mask: var(--bt-svg-brush-filo) center / 100% 100% no-repeat;
          mask: var(--bt-svg-brush-filo) center / 100% 100% no-repeat;
}

/* Pennellata dietro una parola (voce attiva, evidenze). Colore da variabile. */
.bt-brush {
  position: relative; isolation: isolate;
  color: var(--bt-brush-text, var(--bt-c-crema));
}
.bt-brush::before {
  content: ""; position: absolute; z-index: -1; inset: -.1em -.35em;
  background-color: var(--bt-brush);
  -webkit-mask: var(--bt-svg-brush-mark) center / 100% 100% no-repeat;
          mask: var(--bt-svg-brush-mark) center / 100% 100% no-repeat;
}

/* Sottolineatura a pennello con ricciolo (titolo hero), forma della bozza */
.bt-underline { position: relative; display: inline-block; background: none; color: inherit; }
.bt-underline::after {
  content: ""; position: absolute; left: -2%; width: 104%; bottom: -.3em; aspect-ratio: 408 / 54;
  background-color: var(--bt-brush);
  -webkit-mask: var(--bt-svg-brush-underline) center / 100% 100% no-repeat;
          mask: var(--bt-svg-brush-underline) center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Occhiello tra due fili ("Online dal 2010") */
.bt-kicker {
  display: flex; align-items: center; justify-content: center; gap: var(--bt-sp-2);
  max-width: 24rem; margin-inline: auto;
  font-size: var(--bt-fs-l); font-weight: 600; color: var(--bt-c-bordeaux);
}
.bt-kicker::before, .bt-kicker::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Layout ---------- */
.bt-container {
  width: 100%;
  max-width: calc(var(--bt-content) + 2 * var(--bt-gutter));
  margin-inline: auto;
  padding-inline: var(--bt-gutter);
}
.bt-section { position: relative; padding-block: var(--bt-sp-5); }
.bt-section--stretta { padding-block: var(--bt-sp-4); }
.bt-section--ampia   { padding-block: var(--bt-sp-6); }
.bt-section--attacca { padding-top: 0; }

/* Sfondi di sezione: impostano anche il colore dei bordi strappati */
.bt-section--accent {
  --bt-section-bg: var(--bt-c-bordeaux);
  --bt-brush: var(--bt-c-crema);
  --bt-ornament: #F3D9C0;
  color: var(--bt-c-crema);
  background-color: var(--bt-c-bordeaux);
  background-image:
    url("../img/macchie-fascia.webp"),
    radial-gradient(70% 100% at 18% 0%, rgb(255 255 255 / .09), transparent 62%),
    radial-gradient(60% 90% at 88% 100%, rgb(0 0 0 / .24), transparent 66%),
    linear-gradient(#942121, #7C1616);
  background-size: cover, auto, auto, auto;
  background-blend-mode: multiply, normal, normal, normal;
}
.bt-section--scura {
  --bt-section-bg: var(--bt-c-notte);
  color: #EFE6D6;
  background-color: var(--bt-c-notte);
  background-image: url("../img/grana-scura.webp");
  background-size: 256px;
  background-blend-mode: screen;
}

/* Bordo strappato (forma della bozza), sopra e/o sotto */
.bt-section--strappo::before,
.bt-section--strappo-sotto::after {
  content: ""; position: absolute; left: 0; right: 0; height: .875rem;
  background-color: var(--bt-section-bg);
  -webkit-mask: var(--bt-svg-edge-torn) 0 0 / 100% 100% no-repeat;
          mask: var(--bt-svg-edge-torn) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
.bt-section--strappo::before { bottom: calc(100% - 1px); }
.bt-section--strappo-sotto::after { top: calc(100% - 1px); transform: scale(-1, -1); }

/* Dopo un divisore: sempre lo stesso respiro */
.bt-divider + * { margin-top: var(--bt-sp-4); }

/* Titolo di blocco allineato a sinistra, sopra una lista */
.bt-block-title { margin-bottom: var(--bt-sp-3); }
.bt-block-title--medio { font-size: var(--bt-fs-2xl); }
.bt-events--bordo { border-top-color: var(--bt-c-linea); }

/* Intestazione di sezione centrata */
.bt-section-head { text-align: center; margin-bottom: var(--bt-sp-4); }
.bt-section-head > * + * { margin-top: var(--bt-sp-2); }
.bt-lead { font-size: var(--bt-fs-l); color: var(--bt-c-seppia); }
.bt-section--accent .bt-lead { color: inherit; opacity: .92; }

/* Griglie */
.bt-grid { display: grid; gap: var(--bt-sp-4); }
.bt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.bt-grid--2-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.bt-grid--footer { grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); }

/* Riquadro a filo sottile interno (fascia) */
.bt-frame {
  position: relative; text-align: center;
  padding: var(--bt-sp-5) var(--bt-sp-4);
  border: 1px solid color-mix(in srgb, var(--bt-c-crema) 32%, transparent);
}
.bt-frame > * + * { margin-top: var(--bt-sp-3); }
.bt-frame .bt-lead { max-width: 30em; margin-inline: auto; }
.bt-frame.bt-fileteado { --bt-corner-color: #F3D9C0; --bt-corner-out: .75rem; }

/* ---------- Pulsanti ---------- */
.bt-btn {
  --btn-bg: var(--bt-c-bordeaux);
  --btn-fg: var(--bt-c-crema);
  --btn-box: rgb(0 0 0 / .24);
  --btn-box-hover: var(--bt-c-nero);
  --btn-icon: var(--bt-svg-freccia);
  --btn-box-w: 3.5rem;
  position: relative; display: inline-flex; align-items: center;
  min-height: 3.375rem;
  padding: 0 calc(var(--btn-box-w) + var(--bt-sp-3)) 0 var(--bt-sp-3);
  border: 0; cursor: pointer; white-space: nowrap;
  font-size: var(--bt-fs-l); font-weight: 600; font-stretch: var(--bt-stretch-titoli);
  color: var(--btn-fg); background: var(--btn-bg);
  clip-path: polygon(var(--bt-cut) 0, 100% 0, 100% calc(100% - var(--bt-cut)), calc(100% - var(--bt-cut)) 100%, 0 100%, 0 var(--bt-cut));
}
.bt-btn::before { /* riquadro dell'icona */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: var(--btn-box-w);
  background: var(--btn-box); transition: background var(--bt-ease);
}
.bt-btn::after {  /* icona */
  content: ""; position: absolute; top: 50%; right: calc(var(--btn-box-w) / 2); translate: 50% -50%;
  width: 2.25rem; height: 1.4rem; background-color: currentColor;
  -webkit-mask: var(--btn-icon) center / contain no-repeat;
          mask: var(--btn-icon) center / contain no-repeat;
}
.bt-btn:hover::before, .bt-btn:focus-visible::before { background: var(--btn-box-hover); }
.bt-btn--piu   { --btn-icon: var(--bt-svg-piu); }
.bt-btn--filtro { --btn-icon: var(--bt-svg-filtro); }
.bt-btn--scuro { --btn-bg: var(--bt-c-nero); --btn-box-hover: var(--bt-c-bordeaux); }
.bt-btn--chiaro {
  --btn-bg: var(--bt-c-crema); --btn-fg: var(--bt-c-bordeaux);
  --btn-box: color-mix(in srgb, var(--bt-c-bordeaux) 14%, transparent);
  --btn-box-hover: var(--bt-c-sabbia);
}
.bt-btn--compatto { --btn-box-w: 2.75rem; min-height: 2.75rem; font-size: var(--bt-fs-s); padding-left: var(--bt-sp-2); padding-right: calc(var(--btn-box-w) + var(--bt-sp-2)); }
.bt-btn--compatto::after { width: 1.25rem; height: 1.25rem; }
.bt-btn--pieno { width: 100%; white-space: normal; text-align: left; line-height: 1.15; padding-block: .5rem; }

/* Pulsante quadrato solo icona (carosello, social) */
.bt-square {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.375rem; border: 0; cursor: pointer;
  color: var(--bt-c-crema); background: var(--bt-c-nero);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background var(--bt-ease);
}
.bt-square:hover { background: var(--bt-c-bordeaux); }
.bt-square:disabled { opacity: .3; cursor: default; background: var(--bt-c-nero); }
.bt-square--indietro .bt-icon { transform: scaleX(-1); }

/* Link con freccia */
.bt-link-arrow {
  display: inline-flex; align-items: center; gap: var(--bt-sp-1);
  min-height: var(--bt-tap);
  font-size: var(--bt-fs-l); font-weight: 600; color: var(--bt-c-bordeaux);
}
.bt-link-arrow::after {
  content: ""; width: 2.5rem; height: 1.5rem; flex: none; background-color: currentColor;
  -webkit-mask: var(--bt-svg-freccia) center / contain no-repeat;
          mask: var(--bt-svg-freccia) center / contain no-repeat;
  transition: translate var(--bt-ease);
}
.bt-link-arrow:hover::after { translate: .25rem 0; }

/* Etichetta a pillola */
.bt-tag {
  display: inline-block; padding: .1em .8em;
  font-size: var(--bt-fs-s); line-height: 1.5;
  background: var(--bt-c-sabbia);
  border: 1px solid color-mix(in srgb, var(--bt-c-bordeaux) 25%, transparent);
  /* Mezza altezza di una riga (1.5em + padding): su una riga è una pillola, su due un rettangolo arrotondato (non un ovale). */
  border-radius: .85em;
}

/* ---------- Header ---------- */
.bt-header { position: relative; z-index: 20; --bt-logo-w: clamp(12.5rem, 8rem + 7vw, 18rem); }

/* Barra superiore scura: servizio + azione principale */
.bt-topbar { background: var(--bt-c-nero); color: var(--bt-c-cenere); font-size: var(--bt-fs-s); }
.bt-topbar__in { display: flex; align-items: center; gap: var(--bt-sp-3); min-height: 2.75rem; }
.bt-topbar__claim { flex: 1; font-stretch: var(--bt-stretch-titoli); letter-spacing: .02em; }
.bt-topbar__claim b { color: var(--bt-c-pesca); font-weight: 600; }
.bt-topbar__nav { display: flex; align-items: center; gap: var(--bt-sp-3); }
.bt-topbar__nav a { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; transition: color var(--bt-ease); }
.bt-topbar__nav a:hover { color: var(--bt-c-pesca); }
.bt-topbar__nav .bt-icon { --bt-icon-w: 1.25rem; --bt-icon-h: 1.25rem; }
.bt-topbar__nav .is-forte { color: var(--bt-c-crema); font-weight: 600; }
.bt-topbar .bt-btn { align-self: stretch; clip-path: none; min-height: 2.75rem; }

/* Riga logo + menu: tutto centrato sull'asse del logo */
.bt-header__bar {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: var(--bt-sp-4);
  padding-block: var(--bt-sp-2);
}
.bt-logo { display: block; width: var(--bt-logo-w, 12.5rem); }
.bt-logo img { width: 100%; }

.bt-nav { display: flex; align-items: center; gap: var(--bt-sp-2); }
.bt-nav--sinistra, .bt-nav--sinistra > .bt-nav { justify-content: flex-end; }
.bt-nav__link {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; min-height: var(--bt-tap);
  padding-inline: .625rem;
  font-size: var(--bt-fs-l); font-weight: 500; white-space: nowrap;
  transition: color var(--bt-ease);
}
/* Pennellata: compare in hover (chiara), resta sulla voce attiva (bordeaux) */
.bt-nav__link::before {
  content: ""; position: absolute; z-index: -1; inset: .375rem 0;
  background-color: var(--bt-brush-hover);
  -webkit-mask: var(--bt-svg-brush-mark) center / 100% 100% no-repeat;
          mask: var(--bt-svg-brush-mark) center / 100% 100% no-repeat;
  opacity: 0; transition: opacity var(--bt-ease);
}
.bt-nav__link:hover, .bt-nav__link:focus-visible { color: var(--bt-c-crema); }
.bt-nav__link:hover::before, .bt-nav__link:focus-visible::before { opacity: 1; }
.bt-nav__link[aria-current="page"] { color: var(--bt-c-crema); }
.bt-nav__link[aria-current="page"]::before { background-color: var(--bt-brush-active); opacity: 1; }

.bt-icon-btn {
  display: grid; place-items: center; width: var(--bt-tap); height: var(--bt-tap);
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--bt-c-nero);
}
.bt-header__toggle, .bt-header__account { display: none; }

/* Svolazzi ai lati del header: solo dove c'e' margine libero (decoro, non layout) */
@media (min-width: 1360px) {
  .bt-header::before, .bt-header::after {
    content: ""; position: absolute; top: calc(2.75rem + var(--bt-sp-2) + var(--bt-logo-w) * .261 - 1.5rem);
    width: 10rem; aspect-ratio: 120 / 36;
    background-color: var(--bt-c-nero); opacity: .9; pointer-events: none;
    -webkit-mask: var(--bt-svg-flourish-mezzo) center / contain no-repeat;
            mask: var(--bt-svg-flourish-mezzo) center / contain no-repeat;
  }
  .bt-header::before { left: 1.75rem; }
  .bt-header::after  { right: 1.75rem; transform: scaleX(-1); }
}

/* Pannello menu mobile (stessi link del desktop) */
.bt-menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  padding: var(--bt-sp-1) var(--bt-gutter) var(--bt-sp-4); /* stesso padding della barra header mobile: il logo non si sposta */
  overflow-y: auto;
  background-color: var(--bt-c-carta);
  background-image: url("../img/grana.webp"), url("../img/macchie.webp");
  background-size: 256px, 1600px; background-blend-mode: multiply, multiply;
}
.bt-menu[hidden] { display: none; }
.bt-menu__top { display: grid; grid-template-columns: var(--bt-tap) 1fr var(--bt-tap); gap: var(--bt-sp-1); align-items: center; }
.bt-menu__top .bt-logo { justify-self: center; width: 12.5rem; }
.bt-menu__list { margin-top: var(--bt-sp-4); }
.bt-menu__list .bt-nav__link {
  font-size: var(--bt-fs-3xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli);
  padding-inline: var(--bt-sp-2); padding-block: .1em; min-height: 0;
}
.bt-menu__util {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--bt-sp-3);
  margin-block: var(--bt-sp-3); font-size: var(--bt-fs-l);
}
.bt-menu__util .is-forte { font-weight: 600; box-shadow: inset 0 -2px 0 currentColor; }

/* ---------- Hero ---------- */
.bt-hero { text-align: center; }
.bt-hero > * + * { margin-top: var(--bt-sp-3); }
.bt-hero h1 { margin-bottom: var(--bt-sp-2); }

/* ---------- Ricerca ---------- */
.bt-search { display: flex; gap: var(--bt-sp-1); align-items: stretch; margin-top: var(--bt-sp-4); text-align: left; }
.bt-field {
  position: relative; display: flex; align-items: center; gap: var(--bt-sp-1);
  flex: 1; min-width: 0; min-height: 3.375rem; padding-inline: var(--bt-sp-2);
  border: 1px solid var(--bt-c-linea);
  background: color-mix(in srgb, var(--bt-c-avorio) 60%, transparent);
  transition: border-color var(--bt-ease);
}
.bt-field:focus-within { border-color: var(--bt-c-inchiostro); }
.bt-field--largo { flex: 2.4; }
.bt-field .bt-icon { color: var(--bt-c-bordeaux); }
.bt-field input, .bt-field select {
  flex: 1; min-width: 0; min-height: var(--bt-tap);
  border: 0; background: transparent; font-size: var(--bt-fs-m); font-weight: 500;
}
.bt-field input::placeholder { color: var(--bt-c-seppia); opacity: 1; }
.bt-field input:focus-visible, .bt-field select:focus-visible { outline: none; }
.bt-field select { appearance: none; cursor: pointer; padding-right: 1.75rem; }
.bt-field--select::after {
  content: ""; position: absolute; right: var(--bt-sp-2); width: 1.1rem; height: 1.1rem;
  background-color: currentColor; pointer-events: none;
  -webkit-mask: var(--bt-svg-giu) center / contain no-repeat;
          mask: var(--bt-svg-giu) center / contain no-repeat;
}
.bt-search .bt-btn { flex: none; }

/* Suggerimenti città */
.bt-ac {
  position: absolute; left: -1px; top: calc(100% + .375rem); z-index: 30;
  width: min(32.5rem, calc(100vw - 2 * var(--bt-gutter)));
  padding-block: .375rem; background: var(--bt-c-avorio); border: 1px solid var(--bt-c-inchiostro);
}
.bt-ac[hidden] { display: none; }
.bt-ac__item { display: flex; align-items: center; gap: var(--bt-sp-2); padding: .625rem var(--bt-sp-2); cursor: pointer; }
.bt-ac__item small { margin-left: auto; font-size: var(--bt-fs-s); color: var(--bt-c-seppia); }
.bt-ac__item[aria-selected="true"], .bt-ac__item:hover { background: var(--bt-c-sabbia); }
.bt-ac__item--azione { border-top: 1px solid var(--bt-c-linea); color: var(--bt-c-bordeaux); }


/* ---------- Menu a tendina personalizzato (sostituisce la lista nativa del <select>) ----------
   Il <select> resta nel form (valore inviato), il JS costruisce pulsante + lista con lo stile del sito. */
.bt-dd { position: relative; display: flex; flex: 1; min-width: 0; align-self: stretch; }
.bt-dd__btn {
  display: flex; align-items: center; width: 100%; min-height: var(--bt-tap);
  padding: 0 1.75rem 0 0; border: 0; background: transparent; cursor: pointer;
  font-size: var(--bt-fs-m); font-weight: 500; text-align: left;
}
.bt-select .bt-dd__btn { min-height: 2.5rem; padding: 0 2.25rem 0 .875rem; font-size: var(--bt-fs-s); border: 1px solid var(--bt-c-linea); font-weight: 400; }
.bt-dd__list { left: -1px; min-width: calc(100% + 2px); width: max-content; max-width: min(22rem, calc(100vw - 2 * var(--bt-gutter))); }
.bt-field .bt-dd { position: static; }            /* la lista si allinea a tutto il campo */
.bt-field .bt-dd__list { left: -1px; min-width: calc(100% + 2px); }
.bt-field .bt-dd__btn:focus-visible { outline: none; }
.bt-field:focus-within { box-shadow: 0 0 0 2px var(--bt-c-bordeaux); }
.bt-dd__list .bt-ac__item { padding: .75rem var(--bt-sp-3); }
.bt-dd__list .bt-ac__item[aria-selected="true"] { background: var(--bt-c-sabbia); }
.bt-dd__list .bt-ac__item.is-active { background: var(--bt-c-bordeaux); color: var(--bt-c-crema); }
.bt-dd select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* ---------- Tab ---------- */
.bt-tabbar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--bt-sp-2); border-bottom: 1px solid var(--bt-c-linea); }
.bt-tabs { display: flex; gap: var(--bt-sp-4); }
.bt-tab {
  padding: var(--bt-sp-2) .125rem; border: 0; background: none; cursor: pointer;
  font-size: var(--bt-fs-l); font-stretch: var(--bt-stretch-titoli);
  box-shadow: inset 0 -3px 0 transparent;
  transition: color var(--bt-ease), box-shadow var(--bt-ease);
}
.bt-tab:hover { color: var(--bt-c-bordeaux); }
.bt-tab[aria-selected="true"] { color: var(--bt-c-bordeaux); font-weight: 600; box-shadow: inset 0 -3px 0 currentColor; }
.bt-tabpanel[hidden] { display: none; }
.bt-tabpanel:focus-visible { outline-offset: 6px; }

/* ---------- Riga evento (agenda e festival) ---------- */
.bt-events { border-top: 1px solid transparent; }
.bt-event {
  display: grid; grid-template-columns: 7.5rem 1px minmax(0, 1fr) auto;
  gap: 0 var(--bt-sp-3); align-items: center;
  padding-block: var(--bt-sp-3);
  border-bottom: 1px solid var(--bt-c-linea);
}
.bt-event::after {
  content: ""; width: 2.5rem; height: 1.5rem; background-color: var(--bt-c-bordeaux);
  -webkit-mask: var(--bt-svg-freccia) center / contain no-repeat;
          mask: var(--bt-svg-freccia) center / contain no-repeat;
  transition: translate var(--bt-ease);
}
.bt-event:hover::after { translate: .25rem 0; }
.bt-event:hover .bt-event__title { color: var(--bt-c-bordeaux); }
.bt-event__date { text-align: center; color: var(--bt-c-bordeaux); line-height: 1; }
.bt-event__day { display: block; font-size: var(--bt-fs-2xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli); letter-spacing: -.01em; white-space: nowrap; }
.bt-event__month { display: block; margin-top: .25rem; font-size: var(--bt-fs-l); font-weight: 500; }
.bt-event__rule { align-self: stretch; background: var(--bt-c-bordeaux); opacity: .7; }
.bt-event__title { display: block; font-size: var(--bt-fs-xl); font-weight: 600; font-stretch: var(--bt-stretch-titoli); line-height: 1.15; transition: color var(--bt-ease); }
.bt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem var(--bt-sp-2); margin-top: var(--bt-sp-1); font-size: var(--bt-fs-s); }
.bt-meta__place { display: inline-flex; align-items: center; gap: .375rem; }
.bt-meta__place::before {
  content: ""; width: 1.5rem; height: 1.5rem; flex: none; background-color: var(--bt-c-bordeaux);
  -webkit-mask: var(--bt-svg-luogo) center / contain no-repeat;
          mask: var(--bt-svg-luogo) center / contain no-repeat;
}
.bt-list-foot { display: flex; justify-content: flex-end; margin-top: var(--bt-sp-2); }

/* ---------- Tessere (percorsi, accessi rapidi, tipologie) ---------- */
.bt-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--bt-sp-1); padding: var(--bt-sp-2) var(--bt-sp-3); }
.bt-tile::after {
  content: ""; width: 2.5rem; height: 1.5rem; flex: none; margin-top: var(--bt-sp-1);
  background-color: var(--bt-c-bordeaux);
  -webkit-mask: var(--bt-svg-freccia) center / contain no-repeat;
          mask: var(--bt-svg-freccia) center / contain no-repeat;
  transition: translate var(--bt-ease);
}
.bt-tile:hover::after { translate: .25rem 0; }
.bt-tile:hover .bt-tile__title { color: var(--bt-c-bordeaux); }
.bt-tile__media { display: flex; align-items: flex-end; justify-content: center; height: 8rem; }
.bt-tile__media img { width: auto; max-height: 100%; }
.bt-tile__media .bt-icon { --bt-icon-w: 3rem; --bt-icon-h: 3rem; color: var(--bt-c-bordeaux); }
.bt-tile__media--icona { height: 3.5rem; }
.bt-tile__body { display: block; }
.bt-tile__title { display: block; font-size: var(--bt-fs-2xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli); line-height: var(--bt-lh-titoli); letter-spacing: -.02em; transition: color var(--bt-ease); }
.bt-tile__text { display: block; margin-top: var(--bt-sp-1); color: var(--bt-c-seppia); }
.bt-tiles--divise > li + li { border-left: 1px solid var(--bt-c-bordeaux); }
.bt-tiles--titoli-medi .bt-tile__title { font-size: var(--bt-fs-xl); font-weight: 600; letter-spacing: 0; }

.bt-tiles--righe { display: block; border-top: 1px solid var(--bt-c-linea); }
.bt-tiles--righe .bt-tile { flex-direction: row; text-align: left; gap: var(--bt-sp-2); padding: var(--bt-sp-2) 0; border-bottom: 1px solid var(--bt-c-linea); }
.bt-tiles--righe .bt-tile__body { flex: 1; }
.bt-tiles--righe .bt-tile::after { margin-top: 0; }
.bt-tiles--righe .bt-tile__title { font-size: var(--bt-fs-xl); font-weight: 600; letter-spacing: 0; }

/* ---------- Carosello locandine ----------
   3 locandine e mezza visibili: la mezza dice "si scorre". Sotto, barra di avanzamento. */
.bt-carousel { --bt-car-gap: var(--bt-sp-4); }
.bt-carousel__track {
  display: flex; gap: var(--bt-car-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: var(--bt-sp-3) 1.25rem var(--bt-sp-4); margin-inline: -1.25rem;
  scroll-padding-inline: 1.25rem; scrollbar-width: none;
}
.bt-carousel__track::-webkit-scrollbar { display: none; }
.bt-poster {
  flex: 0 0 calc((100% - 2.5rem - 3 * var(--bt-car-gap)) / 3.5);
  scroll-snap-align: start; display: block;
  transition: translate .3s ease;
}
.bt-poster:nth-child(even) { margin-top: var(--bt-sp-5); }
.bt-poster:hover { translate: 0 -.375rem; }
.bt-poster__frame {
  position: relative; display: block; margin: .5rem;
  padding: var(--bt-sp-2);
  background: var(--bt-c-crema); border: 1px solid var(--bt-c-inchiostro);
  outline: 1px solid var(--bt-c-inchiostro); outline-offset: .5rem;
}
.bt-poster:nth-child(4n+3) .bt-poster__frame { outline-color: var(--bt-c-bordeaux); }
.bt-poster:nth-child(4n) .bt-poster__frame { outline: 0; }
.bt-poster:nth-child(4n) .bt-poster__frame.bt-fileteado { --bt-corner: 4rem; --bt-corner-out: 1rem; }
.bt-poster__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.bt-poster__title { display: block; margin-top: var(--bt-sp-3); font-size: var(--bt-fs-xl); font-weight: 600; font-stretch: var(--bt-stretch-titoli); line-height: 1.15; }
.bt-poster__meta { display: block; margin-top: .25rem; font-size: var(--bt-fs-s); }
.bt-poster:hover .bt-poster__title { color: var(--bt-c-bordeaux); }

.bt-carousel__progress { position: relative; height: .4rem; margin-bottom: var(--bt-sp-3); }
.bt-carousel__progress::before, .bt-carousel__thumb {
  -webkit-mask: var(--bt-svg-brush-filo) left center / 100% 100% no-repeat;
          mask: var(--bt-svg-brush-filo) left center / 100% 100% no-repeat;
}
.bt-carousel__progress::before { content: ""; position: absolute; inset: 0; background: var(--bt-c-inchiostro); opacity: .25; }
.bt-carousel__thumb {
  position: absolute; top: 0; bottom: 0;
  left: var(--bt-thumb-x, 0%); width: var(--bt-thumb-w, 30%);
  background: var(--bt-c-bordeaux);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  transition: left .15s linear;
}
.bt-carousel__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bt-sp-2); }
.bt-carousel__status { flex: 1 1 12rem; text-align: center; color: var(--bt-c-seppia); font-size: var(--bt-fs-s); }

/* ---------- Footer ---------- */
.bt-footer { padding-bottom: 0; }
.bt-footer__brand .bt-logo { width: 10.5rem; }
.bt-footer__claim { margin-top: var(--bt-sp-2); max-width: 15em; font-size: var(--bt-fs-l); font-weight: 500; font-stretch: var(--bt-stretch-titoli); line-height: 1.3; color: var(--bt-c-cenere); }
.bt-social { display: flex; gap: .75rem; margin-top: var(--bt-sp-3); }
.bt-social .bt-square { width: var(--bt-tap); height: var(--bt-tap); color: var(--bt-c-pesca); background: color-mix(in srgb, var(--bt-c-pesca) 20%, transparent); }
.bt-social .bt-square:hover { background: var(--bt-c-bordeaux); color: var(--bt-c-crema); }
.bt-footer__title { font-size: var(--bt-fs-xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli); line-height: var(--bt-lh-titoli); color: var(--bt-c-pesca); padding-bottom: .75rem; margin-bottom: .625rem; background: linear-gradient(currentColor, currentColor) 0 100% / 3rem 2px no-repeat; }
.bt-footer__nav a { display: block; padding-block: .375rem; }
.bt-footer__nav a:hover { color: var(--bt-c-pesca); }
.bt-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--bt-sp-2) var(--bt-sp-3);
  margin-top: var(--bt-sp-5); padding-block: var(--bt-sp-3);
  border-top: 1px solid var(--bt-c-linea-chiara);
  font-size: var(--bt-fs-xs); color: var(--bt-c-cenere);
}
.bt-footer__legal { display: flex; flex-wrap: wrap; gap: var(--bt-sp-1) var(--bt-sp-3); }
.bt-footer__legal a:hover, .bt-footer__top:hover { color: var(--bt-c-pesca); }
.bt-footer__top { display: inline-flex; align-items: center; gap: var(--bt-sp-1); color: var(--bt-c-pesca); min-height: var(--bt-tap); }
.bt-footer__top .bt-icon { rotate: -90deg; }

/* =====================================================================
   PAGINE INTERNE — stessi token, stessi componenti base
   ===================================================================== */

/* Elemento con pittogramma a sinistra: class="bt-ico bt-icon--orologio" */
/* Testo con pittogramma: il testo resta un flusso unico (puo' contenere <time>, link, a capo) */
.bt-ico { position: relative; display: inline-block; padding-left: 1.875rem; }
.bt-ico::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.375rem; height: 1.375rem;
  background-color: var(--bt-ico-color, var(--bt-c-bordeaux));
  -webkit-mask: var(--bt-mask) center / contain no-repeat;
          mask: var(--bt-mask) center / contain no-repeat;
}

/* Testata di pagina interna */
.bt-page-head { padding-block: var(--bt-sp-3) var(--bt-sp-4); }
.bt-page-head h1 { font-size: var(--bt-fs-3xl); max-width: 20ch; }
.bt-page-head > * + * { margin-top: var(--bt-sp-2); }
.bt-page-head .bt-lead { max-width: 44rem; }
.bt-page-head__tags { display: flex; flex-wrap: wrap; gap: var(--bt-sp-1); }
.bt-page-head__sub { display: flex; flex-wrap: wrap; gap: var(--bt-sp-1) var(--bt-sp-3); font-size: var(--bt-fs-l); color: var(--bt-c-seppia); }
.bt-page-head .bt-divider--filo { margin-top: var(--bt-sp-4); }

/* Briciole */
.bt-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; font-size: var(--bt-fs-s); color: var(--bt-c-seppia); }
.bt-crumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--bt-c-bordeaux); }
.bt-crumbs a:hover { color: var(--bt-c-bordeaux); }
.bt-crumbs [aria-current] { color: var(--bt-c-inchiostro); }

/* Etichette: varianti */
.bt-tag--accent { background: var(--bt-c-bordeaux); border-color: var(--bt-c-bordeaux); color: var(--bt-c-crema); }
.bt-tag--linea { background: transparent; border-color: var(--bt-c-linea); }

/* Griglie interne */
.bt-grid--sidebar { grid-template-columns: minmax(15rem, 1fr) minmax(0, 3fr); align-items: start; }
.bt-grid--detail  { grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); align-items: start; gap: var(--bt-sp-5); }
.bt-grid--cards   { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.bt-sticky { position: sticky; top: var(--bt-sp-3); }


/* Blocco con titolo (sezioni della scheda) */
.bt-block + .bt-block { margin-top: var(--bt-sp-5); }
.bt-block__title { display: flex; align-items: center; gap: var(--bt-sp-2); margin-bottom: var(--bt-sp-3); font-size: var(--bt-fs-2xl); }
.bt-block__title::after { content: ""; flex: 1; height: .4rem; background: var(--bt-c-inchiostro); opacity: .3;
  -webkit-mask: var(--bt-svg-brush-filo) center / 100% 100% no-repeat; mask: var(--bt-svg-brush-filo) center / 100% 100% no-repeat; }

/* Scheda (riquadro a doppio filo, come le locandine) */
.bt-card {
  position: relative; padding: var(--bt-sp-3);
  background: color-mix(in srgb, var(--bt-c-avorio) 70%, transparent);
  border: 1px solid var(--bt-c-inchiostro);
  outline: 1px solid var(--bt-c-inchiostro); outline-offset: .375rem;
  margin: .375rem;
}
.bt-card > * + * { margin-top: var(--bt-sp-3); }
.bt-card__kicker { font-size: var(--bt-fs-s); font-weight: 400; font-stretch: var(--bt-stretch-testo); line-height: 1.5; color: var(--bt-c-seppia); text-transform: uppercase; letter-spacing: .08em; }
.bt-card__big { font-size: var(--bt-fs-2xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli); line-height: 1.05; color: var(--bt-c-bordeaux); }
.bt-card__actions { display: grid; gap: var(--bt-sp-1); }
.bt-card__actions > * { min-width: 0; }
.bt-card .bt-btn { font-size: var(--bt-fs-m); }
.bt-card__links { display: flex; flex-wrap: wrap; gap: var(--bt-sp-1) var(--bt-sp-3); padding-top: var(--bt-sp-2); border-top: 1px solid var(--bt-c-linea); font-size: var(--bt-fs-s); }
.bt-card__links a:hover { color: var(--bt-c-bordeaux); }
.bt-card--avviso { outline-color: var(--bt-c-bordeaux); }

.bt-detail__aside .bt-sticky > * + * { margin-top: calc(var(--bt-sp-4) + 1rem); }

/* Locandina in scheda */
.bt-figure { margin: 0; }
.bt-figure .bt-poster__frame { margin: 1rem; }

/* Dati con pittogramma (orario, prezzo, tessera...) */
.bt-facts { display: grid; gap: var(--bt-sp-2) var(--bt-sp-4); margin: 0; }
.bt-facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bt-fact { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: var(--bt-sp-1); align-items: start; }
.bt-fact::before {
  content: ""; grid-row: span 2; width: 1.5rem; height: 1.5rem; margin-top: .1rem;
  background-color: var(--bt-c-bordeaux);
  -webkit-mask: var(--bt-mask) center / contain no-repeat; mask: var(--bt-mask) center / contain no-repeat;
}
.bt-fact dt { font-size: var(--bt-fs-s); color: var(--bt-c-seppia); }
.bt-fact dd { margin: 0; font-weight: 600; }
.bt-fact dd a { color: var(--bt-c-bordeaux); }
.bt-fact dd a:hover { text-decoration: underline; }

/* Prossime date (eventi ricorrenti) */
.bt-dates { border-top: 1px solid var(--bt-c-linea); }
.bt-date {
  display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: var(--bt-sp-2); align-items: center;
  padding: var(--bt-sp-2) var(--bt-sp-2) var(--bt-sp-2) 0; border-bottom: 1px solid var(--bt-c-linea);
}
.bt-date__day { text-align: center; color: var(--bt-c-bordeaux); font-weight: 700; font-stretch: var(--bt-stretch-titoli); font-size: var(--bt-fs-xl); line-height: 1; }
.bt-date__day small { display: block; font-size: var(--bt-fs-s); font-weight: 500; }
.bt-date__when { font-weight: 600; }
.bt-date__when small { display: block; font-weight: 400; color: var(--bt-c-seppia); font-size: var(--bt-fs-s); }
.bt-date[aria-current="date"] { box-shadow: inset 4px 0 0 var(--bt-c-bordeaux); background: color-mix(in srgb, var(--bt-c-sabbia) 45%, transparent); }
.bt-date.is-annullata .bt-date__day, .bt-date.is-annullata .bt-date__when { opacity: .55; text-decoration: line-through; }
.bt-date a:hover { color: var(--bt-c-bordeaux); }

/* Persone collegate (DJ, maestri, organizzatore) */
.bt-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--bt-sp-2); }
.bt-person { display: flex; align-items: center; gap: var(--bt-sp-2); padding: var(--bt-sp-2); border: 1px solid var(--bt-c-linea); transition: border-color var(--bt-ease); }
.bt-person:hover { border-color: var(--bt-c-bordeaux); }
.bt-person__mono {
  display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--bt-c-sabbia); color: var(--bt-c-bordeaux);
  font-weight: 700; font-stretch: var(--bt-stretch-titoli); font-size: var(--bt-fs-l);
  box-shadow: 0 0 0 1px var(--bt-c-bordeaux), 0 0 0 4px var(--bt-c-carta), 0 0 0 5px var(--bt-c-linea);
}
.bt-person__name { display: block; font-weight: 600; font-stretch: var(--bt-stretch-titoli); font-size: var(--bt-fs-l); line-height: 1.15; }
.bt-person__role { display: block; font-size: var(--bt-fs-s); color: var(--bt-c-seppia); }

/* Mappa segnaposto (Leaflet in fase 4) */
.bt-map {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
  border: 1px solid var(--bt-c-inchiostro);
  background-color: var(--bt-c-avorio);
  background-image:
    linear-gradient(var(--bt-c-linea) 1px, transparent 1px),
    linear-gradient(90deg, var(--bt-c-linea) 1px, transparent 1px);
  background-size: 3rem 3rem; background-position: -1px -1px;
}
.bt-map::before { /* strade */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: linear-gradient(28deg, transparent 47%, var(--bt-c-sabbia) 47% 53%, transparent 53%),
              linear-gradient(118deg, transparent 58%, var(--bt-c-sabbia) 58% 62%, transparent 62%);
}
.bt-map__pin { position: relative; width: 3rem; height: 3rem; background: var(--bt-c-bordeaux);
  -webkit-mask: var(--bt-svg-luogo) center / contain no-repeat; mask: var(--bt-svg-luogo) center / contain no-repeat; }
.bt-map__note { position: absolute; left: var(--bt-sp-1); bottom: var(--bt-sp-1); padding: .125rem .5rem; font-size: var(--bt-fs-xs); background: var(--bt-c-avorio); color: var(--bt-c-seppia); }
.bt-address { margin-top: var(--bt-sp-2); font-style: normal; }
.bt-address strong { display: block; font-size: var(--bt-fs-l); font-stretch: var(--bt-stretch-titoli); }

/* Prosa (descrizioni, pagine statiche) */
.bt-prose { max-width: 42rem; }
.bt-prose > * + * { margin-top: 1em; }
.bt-prose > :first-child { margin-top: 0; }
.bt-prose h2 { margin-top: 1.6em; font-size: var(--bt-fs-2xl); }
.bt-prose h3 { margin-top: 1.4em; font-size: var(--bt-fs-xl); }
.bt-prose ul, .bt-prose ol { padding-left: 1.25em; }
.bt-prose ul { list-style: none; padding-left: 0; }
.bt-prose ul li { position: relative; padding-left: 1.5rem; }
.bt-prose ul li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: .55rem; height: .55rem; border: 1.5px solid var(--bt-c-bordeaux); transform: rotate(45deg); }
.bt-prose li + li { margin-top: .4em; }
.bt-prose a { color: var(--bt-c-bordeaux); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.bt-prose blockquote { margin: 1.5em 0; padding: var(--bt-sp-3) var(--bt-sp-4); font-size: var(--bt-fs-l); font-stretch: var(--bt-stretch-titoli); border-left: 3px solid var(--bt-c-bordeaux); background: color-mix(in srgb, var(--bt-c-sabbia) 40%, transparent); }

/* Indice laterale (pagine statiche) */
.bt-toc { font-size: var(--bt-fs-s); }
.bt-toc__title { font-size: var(--bt-fs-l); font-weight: 700; font-stretch: var(--bt-stretch-titoli); margin-bottom: var(--bt-sp-1); }
.bt-toc a { display: block; padding: .5rem 0 .5rem var(--bt-sp-2); border-left: 1px solid var(--bt-c-linea); }
.bt-toc a:hover, .bt-toc a[aria-current] { border-left: 3px solid var(--bt-c-bordeaux); padding-left: calc(var(--bt-sp-2) - 2px); color: var(--bt-c-bordeaux); }

/* ---------- Ricerca eventi: filtri, barra risultati, gruppi ---------- */
.bt-filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--bt-sp-2); }
.bt-filters__title { font-size: var(--bt-fs-2xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli); line-height: var(--bt-lh-titoli); }
.bt-filters__close { display: none; }
.bt-filters fieldset { margin: 0; padding: var(--bt-sp-3) 0; border: 0; border-top: 1px solid var(--bt-c-linea); }
.bt-filters legend { float: left; width: 100%; margin-bottom: var(--bt-sp-1); font-size: var(--bt-fs-l); font-weight: 600; font-stretch: var(--bt-stretch-titoli); }
.bt-filters legend + * { clear: both; }
.bt-filters .bt-field { min-height: var(--bt-tap); }
.bt-filters__actions { display: grid; gap: var(--bt-sp-1); padding-top: var(--bt-sp-3); border-top: 1px solid var(--bt-c-linea); }
.bt-filters__dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--bt-sp-1); margin-top: var(--bt-sp-1); }
.bt-filters__dates > div { min-width: 0; }
.bt-filters__dates label { font-size: var(--bt-fs-s); color: var(--bt-c-seppia); }
.bt-input {
  width: 100%; min-height: var(--bt-tap); padding: .5rem .75rem;
  border: 1px solid var(--bt-c-linea); border-radius: 0;
  background: color-mix(in srgb, var(--bt-c-avorio) 70%, transparent);
  font-size: var(--bt-fs-m);
}
.bt-input:focus-visible { outline: none; border-color: var(--bt-c-inchiostro); box-shadow: 0 0 0 2px var(--bt-c-bordeaux); }
textarea.bt-input { min-height: 8rem; resize: vertical; }

/* Chip: filtri a scelta (radio/checkbox), filtri attivi, link rapidi */
.bt-chips { display: flex; flex-wrap: wrap; gap: var(--bt-sp-1); }
.bt-chip {
  position: relative; display: inline-flex; align-items: center; gap: .375rem;
  min-height: 2.5rem; padding: 0 .875rem;
  border: 1px solid var(--bt-c-linea); border-radius: var(--bt-pill);
  background: color-mix(in srgb, var(--bt-c-avorio) 50%, transparent);
  font-size: var(--bt-fs-s); cursor: pointer;
  transition: background var(--bt-ease), border-color var(--bt-ease), color var(--bt-ease);
}
.bt-chip:hover { border-color: var(--bt-c-bordeaux); }
.bt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bt-chip:has(input:checked), .bt-chip[aria-pressed="true"] { background: var(--bt-c-bordeaux); border-color: var(--bt-c-bordeaux); color: var(--bt-c-crema); }
.bt-chip:has(input:focus-visible) { outline: 3px solid var(--bt-c-bordeaux); outline-offset: 2px; }
.bt-chip--rimuovi::after {
  content: ""; width: .75rem; height: .75rem; background-color: currentColor;
  -webkit-mask: var(--bt-svg-chiudi) center / contain no-repeat; mask: var(--bt-svg-chiudi) center / contain no-repeat;
}

.bt-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--bt-sp-2);
  padding-bottom: var(--bt-sp-2); border-bottom: 1px solid var(--bt-c-linea);
}
.bt-toolbar__count { font-size: var(--bt-fs-l); font-weight: 600; font-stretch: var(--bt-stretch-titoli); }
.bt-toolbar__count small { font-weight: 400; color: var(--bt-c-seppia); font-size: var(--bt-fs-s); font-stretch: var(--bt-stretch-testo); }
.bt-toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bt-sp-1); }
.bt-toolbar .bt-chips { flex-basis: 100%; }
.bt-filters-toggle { display: none; }
.bt-toolbar + * { margin-top: var(--bt-sp-3); }

/* Interruttore lista/mappa */
.bt-seg { display: inline-flex; border: 1px solid var(--bt-c-inchiostro); }
.bt-seg button { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.5rem; padding: 0 .875rem; border: 0; background: transparent; cursor: pointer; font-size: var(--bt-fs-s); }
.bt-seg button + button { border-left: 1px solid var(--bt-c-inchiostro); }
.bt-seg button[aria-pressed="true"] { background: var(--bt-c-nero); color: var(--bt-c-crema); }
.bt-seg button[aria-pressed="true"]::before { background-color: currentColor; }
.bt-seg button.bt-ico { padding-left: .875rem; }
.bt-seg .bt-ico::before { position: static; width: 1.25rem; height: 1.25rem; }
.bt-select { position: relative; display: inline-flex; align-items: center; }
.bt-select select { appearance: none; min-height: 2.5rem; padding: 0 2.25rem 0 .875rem; border: 1px solid var(--bt-c-linea); background: transparent; font-size: var(--bt-fs-s); cursor: pointer; }
.bt-select::after { content: ""; position: absolute; right: .75rem; width: .9rem; height: .9rem; background-color: currentColor; pointer-events: none;
  -webkit-mask: var(--bt-svg-giu) center / contain no-repeat; mask: var(--bt-svg-giu) center / contain no-repeat; }

/* Gruppo per giorno */
.bt-daygroup { display: flex; align-items: baseline; gap: var(--bt-sp-2); margin-top: var(--bt-sp-4); padding-bottom: var(--bt-sp-1); border-bottom: 2px solid var(--bt-c-inchiostro); }
.bt-daygroup h2 { font-size: var(--bt-fs-xl); }
.bt-daygroup__note { margin-left: auto; }

/* Paginazione */
.bt-pager { display: flex; justify-content: center; gap: var(--bt-sp-1); margin-top: var(--bt-sp-4); }
.bt-pager a, .bt-pager span {
  display: grid; place-items: center; min-width: var(--bt-tap); height: var(--bt-tap); padding: 0 .5rem;
  border: 1px solid var(--bt-c-linea); font-weight: 600;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.bt-pager a:hover { border-color: var(--bt-c-bordeaux); color: var(--bt-c-bordeaux); }
.bt-pager [aria-current] { background: var(--bt-c-nero); border-color: var(--bt-c-nero); color: var(--bt-c-crema); }
.bt-pager .bt-icon { --bt-icon-w: 1.75rem; --bt-icon-h: 1rem; }

/* Stato vuoto */
.bt-empty { padding: var(--bt-sp-5) var(--bt-sp-3); text-align: center; border: 1px dashed var(--bt-c-linea); }
.bt-empty > * + * { margin-top: var(--bt-sp-2); }
.bt-empty .bt-ornament { width: 10rem; }
.bt-empty__title { font-size: var(--bt-fs-2xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli); line-height: var(--bt-lh-titoli); }
.bt-empty[hidden] { display: none; }

/* Testo SEO in fondo ai listing */
.bt-seo { margin-top: var(--bt-sp-5); padding-top: var(--bt-sp-4); border-top: 1px solid var(--bt-c-linea); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--bt-sp-4); align-items: start; }
.bt-seo h2 { font-size: var(--bt-fs-2xl); }
.bt-seo h3 { font-size: var(--bt-fs-l); margin-bottom: var(--bt-sp-2); }

/* ---------- Schede anagrafica nei listing ---------- */
.bt-entity { display: flex; flex-direction: column; gap: var(--bt-sp-1); height: 100%; padding: var(--bt-sp-3); border: 1px solid var(--bt-c-linea); background: color-mix(in srgb, var(--bt-c-avorio) 45%, transparent); transition: border-color var(--bt-ease), translate var(--bt-ease); }
.bt-entity:hover { border-color: var(--bt-c-bordeaux); translate: 0 -.25rem; }
.bt-entity__top { display: flex; align-items: center; justify-content: space-between; gap: var(--bt-sp-1); }
.bt-entity__type { --bt-ico-color: var(--bt-c-bordeaux); font-size: var(--bt-fs-s); color: var(--bt-c-seppia); }
/* Attività della scheda (bt-directory attivita.php). */
.bt-entity__activity { order: 9; margin-top: auto; font-size: var(--bt-fs-s); }
.bt-activity--attiva { color: var(--bt-c-bordeaux); font-weight: 600; }
.bt-activity--attiva::before { content: "● "; }
.bt-activity--recente { color: var(--bt-c-seppia); }
.bt-activity--storica { color: var(--bt-c-seppia); opacity: .8; font-style: italic; }
.bt-entity--storica { background: transparent; }
.bt-entity--storica .bt-entity__title { font-weight: 500; }
.bt-entity__title { font-size: var(--bt-fs-xl); font-weight: 600; font-stretch: var(--bt-stretch-titoli); line-height: 1.15; }
.bt-entity:hover .bt-entity__title { color: var(--bt-c-bordeaux); }
.bt-entity__meta { display: grid; gap: .25rem; font-size: var(--bt-fs-s); color: var(--bt-c-seppia); }
.bt-entity__next { margin-top: auto; padding-top: var(--bt-sp-2); border-top: 1px solid var(--bt-c-linea); font-size: var(--bt-fs-s); display: flex; justify-content: space-between; align-items: center; gap: var(--bt-sp-1); }
.bt-entity__next::after { content: ""; flex: none; width: 2.25rem; height: 1.25rem; background-color: var(--bt-c-bordeaux);
  -webkit-mask: var(--bt-svg-freccia) center / contain no-repeat; mask: var(--bt-svg-freccia) center / contain no-repeat; }
.bt-entity__next b { color: var(--bt-c-bordeaux); }

/* Stato verifica anagrafica */
.bt-badge-ok { --bt-ico-color: #3C6E47; color: #2F5A39; font-size: var(--bt-fs-s); font-weight: 600; }

/* Riquadro "rivendica la scheda" con angoli fileteado */
.bt-claim { padding: var(--bt-sp-3); text-align: center; border: 1px solid var(--bt-c-bordeaux); --bt-corner: 3.5rem; --bt-corner-out: .5rem; }
.bt-claim > * + * { margin-top: var(--bt-sp-2); }
.bt-claim__title { font-size: var(--bt-fs-xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli); line-height: var(--bt-lh-titoli); }

/* Form richieste (DEMO) */
.bt-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bt-sp-2); }
.bt-form__full { grid-column: 1 / -1; }
.bt-form label { display: block; margin-bottom: .25rem; font-size: var(--bt-fs-s); font-weight: 600; }
.bt-form .bt-check { font-weight: 400; }
.bt-check { display: flex; gap: var(--bt-sp-1); align-items: flex-start; font-size: var(--bt-fs-s); }
.bt-check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--bt-c-bordeaux); }
.bt-form__ok { grid-column: 1 / -1; padding: var(--bt-sp-2); border-left: 4px solid #3C6E47; background: color-mix(in srgb, #3C6E47 10%, transparent); }
.bt-form__ok[hidden] { display: none; }


/* ---------- Markup semantico: link esteso, hero, FAQ ---------- */
/* Il link e' sul titolo (testo ancora = titolo); ::after lo estende a tutta la riga/scheda */
.bt-event, .bt-entity { position: relative; }
.bt-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bt-stretched:focus-visible { outline: none; }
.bt-event:has(.bt-stretched:focus-visible), .bt-entity:has(.bt-stretched:focus-visible) { outline: 3px solid var(--bt-c-bordeaux); outline-offset: 4px; }
.bt-event__date { display: block; }
.bt-tile__body { display: block; }

/* Hero: h1 = occhiello con la ricerca principale, claim = paragrafo grande */
.bt-hero__eyebrow { font-size: var(--bt-fs-l); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bt-c-bordeaux); }
.bt-hero__claim { font-size: var(--bt-fs-4xl); font-weight: 700; font-stretch: var(--bt-stretch-titoli); line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.bt-hero > .bt-hero__claim { margin-top: var(--bt-sp-2); margin-bottom: .4em; } /* spazio per la sottolineatura a pennello */
.bt-page-head__sub--small { font-size: var(--bt-fs-s); }

/* FAQ: <details> nativi, domanda = h3 */
.bt-faq__list { border-top: 1px solid var(--bt-c-linea); }
.bt-faq__item { border-bottom: 1px solid var(--bt-c-linea); }
.bt-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--bt-sp-2); padding: var(--bt-sp-2) 0; cursor: pointer; list-style: none; }
.bt-faq__item summary::-webkit-details-marker { display: none; }
.bt-faq__item summary::after {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem; background-color: var(--bt-c-bordeaux);
  -webkit-mask: var(--bt-svg-piu) center / contain no-repeat; mask: var(--bt-svg-piu) center / contain no-repeat;
  transition: rotate var(--bt-ease);
}
.bt-faq__item[open] summary::after { rotate: 45deg; }
.bt-faq__item summary:hover .bt-faq__q { color: var(--bt-c-bordeaux); }
.bt-faq__q { font-size: var(--bt-fs-l); font-weight: 600; letter-spacing: 0; text-wrap: pretty; }
.bt-faq__a { max-width: 42rem; padding-bottom: var(--bt-sp-3); }
.bt-seo + .bt-faq, .bt-faq + * { margin-top: var(--bt-sp-5); }
.bt-seo + .bt-faq { margin-top: var(--bt-sp-5); }


/* Nota sull'affidabilita' dei dati (data di inserimento/aggiornamento + segnalazione) */
.bt-datanote { margin-top: var(--bt-sp-5); padding: var(--bt-sp-2) var(--bt-sp-3); display: grid; gap: var(--bt-sp-1); font-size: var(--bt-fs-s); color: var(--bt-c-seppia); border-left: 3px solid var(--bt-c-linea); background: color-mix(in srgb, var(--bt-c-avorio) 50%, transparent); }
.bt-datanote .bt-ico { display: block; }
.bt-datanote a { color: var(--bt-c-bordeaux); text-decoration: underline; text-underline-offset: .2em; }
.bt-datanote--vecchio { border-left-color: #B4782A; background: color-mix(in srgb, #E9C27A 22%, transparent); color: var(--bt-c-inchiostro); }
.bt-datanote--vecchio .bt-ico:first-child { --bt-ico-color: #8A5A16; }
.bt-badge-old { --bt-ico-color: #8A5A16; color: #7A4E12; font-size: var(--bt-fs-s); font-weight: 600; }

/* ---------- Unico breakpoint di layout ---------- */
@media (max-width: 960px) {
  .bt-topbar, .bt-nav { display: none; }
  .bt-header__bar { grid-template-columns: var(--bt-tap) 1fr var(--bt-tap); gap: var(--bt-sp-1); padding-top: var(--bt-sp-1); padding-bottom: 0; }
  .bt-header__bar .bt-logo { justify-self: center; width: 12.5rem; }
  .bt-header__toggle, .bt-header__account { display: grid; }

  .bt-search { flex-direction: column; }
  .bt-search .bt-btn { width: 100%; }

  .bt-grid--3, .bt-grid--2-1 { grid-template-columns: minmax(0, 1fr); }
  .bt-grid--2-1 { gap: var(--bt-sp-5); }
  .bt-grid--footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bt-sp-4) var(--bt-sp-3); }
  .bt-grid--footer > :first-child { grid-column: 1 / -1; }

  .bt-event { grid-template-columns: 4.5rem 1px minmax(0, 1fr); gap: 0 var(--bt-sp-2); }
  .bt-event::after { display: none; }

  /* Le tessere diventano righe: stessi elementi, disposizione orizzontale */
  .bt-tiles--auto { display: block; }
  .bt-tiles--auto .bt-tile { flex-direction: row; text-align: left; gap: var(--bt-sp-2); padding: var(--bt-sp-2) 0; border-bottom: 1px solid var(--bt-c-linea); }
  .bt-tiles--auto > li + li { border-left: 0; }
  .bt-tiles--auto .bt-tile__body { flex: 1; }
  .bt-tiles--auto .bt-tile::after { margin-top: 0; }
  .bt-tiles--auto .bt-tile__media { width: 5.5rem; height: 5rem; align-items: center; }
  .bt-tiles--auto .bt-tile__media--icona { width: 3rem; height: 3rem; }
  .bt-tiles--auto .bt-tile__text { margin-top: 0; }

  .bt-carousel { --bt-car-gap: var(--bt-sp-3); }
  .bt-poster { flex-basis: 72%; }
  .bt-poster:nth-child(even) { margin-top: 0; }
  .bt-carousel__status { text-align: left; }

  /* Pagine interne */
  .bt-grid--sidebar, .bt-grid--detail, .bt-seo { grid-template-columns: minmax(0, 1fr); }
  .bt-detail__aside { order: -1; }
  .bt-detail__aside .bt-figure { max-width: 15rem; margin-inline: auto; }
  .bt-sticky { position: static; }
  .bt-facts--2 { grid-template-columns: minmax(0, 1fr); }
  .bt-form { grid-template-columns: minmax(0, 1fr); }
  .bt-date { grid-template-columns: 4rem minmax(0, 1fr); }
  .bt-date > :last-child { grid-column: 2; justify-self: start; }
  .bt-filters-toggle { display: inline-flex; }
  .bt-filters {
    position: fixed; inset: 0; z-index: 60; overflow-y: auto;
    padding: var(--bt-sp-2) var(--bt-gutter) var(--bt-sp-4);
    background-color: var(--bt-c-carta);
    background-image: url("../img/grana.webp"), url("../img/macchie.webp");
    background-size: 256px, 1600px; background-blend-mode: multiply, multiply;
  }
  .bt-filters:not(.is-open) { display: none; }
  .bt-filters__close { display: grid; }
  .bt-filters__actions { position: sticky; bottom: calc(-1 * var(--bt-sp-4)); padding-bottom: var(--bt-sp-2); background: var(--bt-c-carta); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .bt-carousel__track { scroll-behavior: auto; }
}
