.bf {
  --navy: #1a3a5c;
  --navy2: #22507a;
  --oro: #c9a44a;
  --oro-ink: #8a6d1f;
  --oro-tenue: #f6efdc;
  --oro-btn: #8f7024;
  --oro-btn-2: #7f631d;
  --testo: #1e3a5f;
  --tenue: #5f6e80;
  --linea: #e7ebf0;
  --linea-box: #d8e0ea;
  --riquadro: #f5f7fa;
  --rosso: #e0245e;
  --ombra: rgba(15, 34, 54, .6);
  --ombra-box: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .05);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 0 0 40px;
  color: var(--testo);
  font-size: 14px; line-height: 18px;
  text-align: left;
  margin-top: 24px;
}
body.be-feed-pagina .main-container, body.be-feed-pagina .main, body.be-feed-pagina .col-main { background: transparent !important; }
body.be-feed-pagina .bt-cerca-riga, body.be-feed-pagina .bt-colonna { display: none; }
body.be-feed-pagina .bt-con-colonna { display: block; max-width: none; margin: 0; }
.bf *, .bf *::before, .bf *::after { box-sizing: border-box; }
.bf a { color: inherit; text-decoration: none; }
.bf a:hover { text-decoration: none; }
.bf button {
  font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  text-transform: none; letter-spacing: normal; box-shadow: none; line-height: inherit;
}
.bf button, .bf input { font-size: inherit !important; color: inherit !important; }
.bf svg { width: 24px; height: 24px; flex: none; }
.bf img { display: block; max-width: 100%; }
.bf h1, .bf h2, .bf h3, .bf p { color: inherit; text-transform: none; letter-spacing: normal; }

.bf-sinistra, .bf-lato { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.bf-box { border: 1px solid var(--linea-box); border-radius: 14px; background: #fff; padding: 8px; box-shadow: var(--ombra-box); }
.bf-menu, .bf-autori { display: flex; flex-direction: column; gap: 2px; }
.bf .bf-box-titolo {
  position: relative; margin: 0 0 6px; padding: 10px 10px 10px; color: var(--navy); font-size: 12px; line-height: 16px;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.bf-box-titolo::after { content: ""; position: absolute; left: 10px; bottom: 2px; width: 28px; height: 2px; border-radius: 2px; background: var(--oro); }
.bf-piede { padding: 14px 16px; color: var(--tenue); font-size: 12px; line-height: 17px; }
.bf .bf-piede address { margin: 0 0 10px; font-style: normal; color: var(--tenue); font-size: 12px; line-height: 17px; }
.bf .bf-piede ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bf .bf-piede li { margin: 0; padding: 0; }
.bf .bf-piede a { color: var(--tenue); }
.bf .bf-piede a:hover { color: var(--navy2); text-decoration: underline; }
.bf .bf-voce {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; color: var(--testo) !important;
  font-size: 15px !important; line-height: 20px; text-align: left; white-space: nowrap; transition: background .15s, color .15s;
}
.bf .bf-voce svg { width: 22px; height: 22px; color: var(--navy2); transition: transform .15s, color .15s; }
.bf-voce:hover { background: var(--riquadro); }
.bf-voce:hover svg { transform: scale(1.05); }
.bf .bf-voce.on { background: var(--oro-tenue); color: var(--navy) !important; font-weight: 700; box-shadow: inset 3px 0 0 var(--oro); }
.bf .bf-voce.on svg { color: var(--oro-ink); }

.bf-feed { min-width: 0; }
.bf-cerca {
  display: flex; align-items: center; gap: 12px; height: 50px; margin: 0 0 16px; padding: 0 18px; border: 1px solid var(--linea-box); border-radius: 999px;
  background: #fff; box-shadow: var(--ombra-box); transition: border-color .15s, box-shadow .15s;
}
.bf-cerca:focus-within { border-color: var(--navy2); box-shadow: 0 0 0 4px rgba(34, 80, 122, .12); }
.bf .bf-cerca svg { width: 21px; height: 21px; color: var(--navy2); }
.bf .bf-cerca input {
  flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0; background: none !important;
  box-shadow: none !important; outline: none; -webkit-appearance: none; appearance: none; font-size: 16px !important; color: var(--testo) !important;
}
.bf-cerca input::placeholder { color: var(--tenue); }
.bf .bf-cerca input::-webkit-search-cancel-button { -webkit-appearance: none; }

.bf-avatar {
  --c1: #22507a; --c2: #1a3a5c;
  display: inline-grid; place-items: center; flex: none; overflow: hidden;
  border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff; font-weight: 600; text-transform: uppercase;
}
.bf-avatar picture, .bf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bf-avatar.bf-piccolo { width: 32px; height: 32px; font-size: 13px; }
.bf .bf-anello {
  display: inline-grid; place-items: center; padding: 2px; border-radius: 50%;
  background: linear-gradient(45deg, #7f631d, var(--oro) 50%, #e8d39a);
}
.bf-anello > .bf-avatar { box-shadow: 0 0 0 2px #fff; }

.bf-post {
  margin-bottom: 16px; padding: 14px 16px 16px; border: 1px solid var(--linea-box); border-radius: 14px;
  background: #fff; box-shadow: var(--ombra-box);
}
.bf-post-testa { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; }
.bf-chi { flex: 1; min-width: 0; line-height: 18px; }
.bf-riga1 { display: flex; gap: 4px; align-items: center; min-width: 0; }
.bf-riga1 .bf-nome { font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-quando { color: var(--tenue); white-space: nowrap; }
.bf-genere { font-size: 12px; font-weight: 600; color: var(--oro-ink); }

.bf-foto {
  position: relative; border-radius: 10px; overflow: hidden;
  display: block; border: 1px solid var(--linea); background: var(--riquadro);
}
.bf-foto picture { display: block; }
.bf-foto .bf-copertina { width: 100%; height: auto; }
.bf-azioni { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 8px; }
.bf-azioni-sx { display: flex; align-items: center; gap: 14px; }
.bf-az { display: flex; align-items: center; gap: 6px; height: 40px; }
.bf .bf-az button { display: grid; place-items: center; color: var(--navy) !important; transition: transform .1s, color .15s; }
.bf-az button svg { width: 24px; height: 24px; display: block; }
.bf .bf-az button:hover { color: var(--navy2) !important; }
.bf-az button:active { transform: scale(.85); }
.bf .bf-piace.on, .bf .bf-piace.on:hover { color: var(--rosso) !important; animation: bf-batte .35s; }
@keyframes bf-batte { 50% { transform: scale(1.25); } }
.bf-n { font-size: 15px; font-weight: 700; line-height: 1; color: var(--navy); }
.bf .bf-leggi {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(201, 164, 74, .55);
  background: linear-gradient(180deg, var(--oro-btn), var(--oro-btn-2)); color: #fff;
  font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(143, 112, 36, .28); transition: transform .15s, box-shadow .15s;
}
.bf .bf-leggi:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(143, 112, 36, .38); }
.bf-leggi:active { transform: scale(.96); }

.bf-didascalia { margin: 2px 0 0; font-size: 15px; line-height: 21px; overflow-wrap: anywhere; }
.bf-didascalia .bf-nome { font-weight: 700; color: var(--navy); }
.bf .bf-titolo { color: var(--testo); }
.bf .bf-titolo:hover { color: var(--navy); text-decoration: underline; }
.bf .bf-tag { color: var(--navy2) !important; font-weight: 600; font-size: 15px !important; line-height: 20px; }
.bf-tag:hover { text-decoration: underline; }
.bf-storie { display: none; }
.bf-filtro-autore {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 8px 8px 8px 18px; border: 1px solid var(--oro); border-radius: 999px;
  background: var(--oro-tenue); color: var(--navy); font-size: 14.5px; line-height: 20px;
}
.bf-filtro-autore[hidden] { display: none; }
.bf-filtro-autore span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf .bf-filtro-autore a { color: var(--navy2); font-weight: 700; white-space: nowrap; }
.bf .bf-filtro-autore a:hover { text-decoration: underline; }
.bf .bf-filtro-autore button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--linea-box); border-radius: 50%; background: #fff; color: var(--navy) !important; }
.bf .bf-filtro-autore button svg { width: 16px; height: 16px; }
.bf-fine { text-align: center; color: var(--tenue); padding: 16px 0 40px; margin: 0; }

.bf-autori .bf-avatar { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--oro); }
.bf .bf-tutti { margin: 6px 0 0; padding: 10px 10px 6px; border-top: 1px solid var(--linea); color: var(--navy2); font-size: 14px; font-weight: 700; }
.bf .bf-tutti:hover { color: var(--navy); text-decoration: underline; }
.bf-autori-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

.bf-filtri-testa { display: flex; justify-content: space-between; align-items: center; }
.bf-filtri-testa h2 { margin: 0; font-size: 16px; line-height: 20px; font-weight: 800; color: var(--navy); }
.bf .bf-filtri-testa button { color: var(--navy2) !important; font-weight: 700; font-size: 13px !important; }
.bf h3 { margin: 16px 0 8px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.bf-opzioni { display: flex; flex-direction: column; gap: 5px; }
.bf .bf-opzione {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px;
  border: 1px solid var(--linea-box); border-radius: 10px; font-size: 14px !important; line-height: 18px; text-align: left; transition: background .15s;
}
.bf .bf-opzione:hover { background: var(--riquadro); }
.bf .bf-opzione.on { border-color: var(--oro); background: var(--oro-tenue); color: var(--navy) !important; font-weight: 700; box-shadow: inset 3px 0 0 var(--oro); }
.bf-conta { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--riquadro); color: var(--tenue); }
.bf-opzione.on .bf-conta { background: #fff; color: var(--oro-ink); }

.bf-sfondo {
  position: fixed; inset: 0; z-index: 1000; background: var(--ombra);
  display: grid; place-items: center; padding: 16px;
}
.bf-sfondo[hidden] { display: none; }
.bf-pannello {
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 22px 22px 18px;
}
.bf-pannello .bf-filtri-testa h2 { font-size: 18px; }

.bf-avviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 1100; transform: translateX(-50%);
  padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 14px;
}
.bf-avviso[hidden] { display: none; }

@media (max-width: 980px) {
  body.be-feed-pagina .bt-barra .bt-filtri { display: grid; }
  .bf { grid-template-columns: 470px minmax(0, 300px); justify-content: center; margin-top: 0; padding: 20px 12px 40px; }
  .bf-sinistra { display: none; }
}
@media (max-width: 800px) {
  .bf { display: block; padding: 0 0 40px; }
  .bf-lato { display: none; }
  .bf-feed { max-width: 470px; margin: 0 auto; }
  .bf-cerca { margin: 16px 16px 14px; }
  .bf-filtro-autore { margin: 0 16px 12px; font-size: 15px; }
  .bf-storie {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    margin: 0 0 12px; padding: 4px 16px 12px; scroll-padding-inline: 16px; border-bottom: 1px solid var(--linea-box);
  }
  .bf-storie::-webkit-scrollbar { display: none; }
  .bf .bf-storia { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 76px; scroll-snap-align: start; color: var(--testo); }
  .bf-storia-anello { display: grid; place-items: center; padding: 5px; border-radius: 50%; background: linear-gradient(45deg, #7f631d, var(--oro) 50%, #e8d39a); }
  .bf-storia .bf-avatar { width: 62px; height: 62px; font-size: 24px; box-shadow: 0 0 0 2px #fff; }
  .bf-storia.on .bf-storia-anello { background: var(--navy); }
  .bf-storia-nome { display: -webkit-box; width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-align: center; font-size: 12px; line-height: 15px; overflow-wrap: anywhere; }
  .bf-storia.on .bf-storia-nome { font-weight: 700; color: var(--navy); }
  .bf-post { margin-bottom: 10px; padding: 14px 0 14px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .bf-post-testa { padding: 0 12px 10px; }
  .bf-foto { border-radius: 0; border-left: 0; border-right: 0; }
  .bf-azioni, .bf-didascalia { margin-left: 12px; margin-right: 12px; }
  .bf-azioni { gap: 8px; }
  .bf-azioni-sx { gap: 9px; }
  .bf-az { gap: 3px; }
  .bf-riga1 .bf-nome { font-size: 15px; }
  .bf-genere { font-size: 13px; }
  .bf-didascalia, .bf .bf-tag { font-size: 16px !important; line-height: 23px; }
  .bf-sfondo { place-items: end center; padding: 0; }
  .bf-pannello { max-width: none; border-radius: 18px 18px 0 0; max-height: 88vh; }
}
