/*
 * Blog, articolo singolo, archivi, pagine legali, 404, ricerca (agente a4).
 * Misure prese dall'originale Betheme + Elementor "posts" (sito vivo 2026-11-25).
 * Blu della banda e dei titoli: #2c78bd (diverso dal blu del tema, #3873b9).
 */
.bs-b-wrap { width: 100%; max-width: calc(var(--bs-width) + 2 * var(--bs-gutter)); margin-inline: auto; padding-inline: var(--bs-gutter); }
.bs-b-wrap--narrow { max-width: 780px; padding-inline: var(--bs-col-pad); }

/* ---------- Banda del titolo (Subheader Betheme: 60px sopra e sotto, titolo 54px centrato) ---------- */
.bs-b-band { background: #2c78bd; padding: 60px 0; }
.bs-b-band__title { margin: 0; font-size: 54px; line-height: 60px; font-weight: 300; color: #fff; text-align: center; }
/* Blog e archivi: banda alta 150px come lo slider dell'originale, titolo 42px */
.bs-b-band--slide { display: flex; align-items: center; justify-content: center; height: 150px; margin-top: -2px; padding: 0; }
.bs-b-band--slide .bs-b-band__title { font-size: 42px; line-height: 42px; text-transform: uppercase; }

/* ---------- Elenco articoli (widget "posts" a card: 3 / 2 / 1 colonne) ---------- */
.bs-b-sec { padding-block: 130px; }
.bs-b-wrap--list { max-width: 1140px; padding-inline: 10px; }
.bs-b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 30px; }
.bs-b-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .15); text-align: center; }
.bs-b-card__thumb { position: relative; display: block; margin-bottom: 20px; padding-bottom: 50%; overflow: hidden; }
.bs-b-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); }
.bs-b-card__thumb::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 75%); opacity: 1; transition: opacity .3s ease-out; }
.bs-b-card__thumb:hover::after { opacity: .5; }
.bs-b-card__badge { position: absolute; top: 0; right: 0; z-index: 1; margin: 20px; padding: 7.2px 14.4px; border-radius: 999px; background: #2c78bd; color: #fff; font-size: 12px; line-height: 12px; font-weight: 600; text-transform: uppercase; }
.bs-b-card__text { margin: 5px 0; padding: 0 30px; }
.bs-b-card__title { margin: 0 0 5px; font-size: 22px; line-height: var(--bs-lh-h2); font-weight: 300; }
.bs-b-card__title a { color: #2c78bd; }
.bs-b-card__title a:hover { text-decoration: none; }
.bs-b-card__excerpt { margin: 0 0 5px; }
.bs-b-card__excerpt p { margin: 0; font-size: 14px; line-height: 21px; color: #54595f; }
.bs-b-card__more { display: inline-block; margin: 0 0 5px; font-size: 12px; line-height: 28px; font-weight: 300; text-transform: uppercase; color: #2c78bd; }
.bs-b-card__meta { margin-top: auto; padding: 15px 30px; border-top: 1px solid #eaeaea; font-size: 12px; line-height: 15.6px; color: #adadad; }

.bs-b-more-wrap { margin-top: 40px; text-align: center; }
.bs-b-more { background: #2c78bd; border-color: #2c78bd; cursor: pointer; }
.bs-b-more:hover { background: #2166ba; border-color: #2166ba; }
.bs-b-more[hidden] { display: none; }
.bs-b-more[disabled] { opacity: .6; cursor: wait; }
.js .bs-b-pager { display: none; }
.bs-b-empty { text-align: center; }
.bs-b-archive-desc { margin-bottom: 40px; text-align: center; }

@media (max-width: 1024px) {
	.bs-b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1239px) {
	.bs-b-band--slide .bs-b-band__title { font-size: 26px; line-height: 26px; }
}

/* ---------- Articolo singolo e pagine semplici ---------- */
.bs-b-single__box { padding-top: 30px; }
.bs-b-single__media { width: fit-content; max-width: 100%; margin: 0 auto 49px; padding-inline: var(--bs-col-pad); }
.bs-b-single__media img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.bs-b-single__caption { padding: 10px 0 5px; background: #f8f8f8; color: #a6a6a6; line-height: normal; text-align: center; }
.bs-b-content { margin: 0 1% 60px; font-size: 16px; line-height: var(--bs-lh-body); overflow-wrap: break-word; }
.bs-b-content > :last-child { margin-bottom: 0; }
.bs-b-content ul, .bs-b-content ol { margin: 0 0 15px; padding-left: 30px; }
.bs-b-content ul { list-style: disc; }
.bs-b-content ol { list-style: decimal; }
.bs-b-content li { margin: 0 0 10px; color: #737e86; }
.bs-b-content img { max-width: 100%; height: auto; }

/* Articoli correlati (stessa categoria, fino a 3 colonne da 298px) */
.bs-b-related { padding: 20px 0 40px; }
.bs-b-related__head { margin: 0 0 15px; font-size: 1.2em; line-height: var(--bs-lh-body); font-weight: 500; }
.bs-b-related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 298px)); }
.bs-b-related__item { padding-inline: var(--bs-col-pad); }
.bs-b-related__img { display: block; margin: 0 0 22px 30px; }
.bs-b-related__img img { display: block; width: 100%; height: auto; }
.bs-b-related__title { margin: 0 0 15px; font-size: var(--bs-fs-h4); line-height: var(--bs-lh-h4); font-weight: 300; }
.bs-b-related__title a { color: #515151; }
.bs-b-related__rule { width: 110px; height: 1px; margin: 0 0 15px 30px; border: 0; background: #3873b9; }
.bs-b-related__btn { display: inline-flex; align-items: center; gap: 10px; margin-left: 30px; padding: 16px 20px; background: #b7b7b7; color: #747474; font-size: 16px; line-height: 19.2px; }
.bs-b-related__btn:hover { color: #747474; text-decoration: none; background: #aaa; }
.bs-b-related__ico { display: block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-top-width: 4px; }
@media (max-width: 767px) {
	.bs-b-related__list { grid-template-columns: minmax(0, 1fr); }
}

/* Frecce fisse verso l'articolo precedente/successivo (Betheme "fixed-nav") */
.bs-b-fixnav { position: fixed; bottom: 40px; z-index: 90; display: none; height: 80px; overflow: hidden; color: #3873b9; text-decoration: none; }
.bs-b-fixnav:hover { color: #3873b9; text-decoration: none; }
.bs-b-fixnav--prev { left: 0; }
.bs-b-fixnav--next { right: 0; flex-direction: row-reverse; }
.bs-b-fixnav__arrow { display: flex; flex: none; align-items: center; justify-content: center; width: 35px; height: 80px; background: #3873b9; color: #fff; font-size: 30px; line-height: 1; }
.bs-b-fixnav__photo { display: none; flex: none; width: 80px; height: 80px; background: #eee; }
.bs-b-fixnav__photo img { width: 80px; height: 80px; object-fit: cover; }
.bs-b-fixnav__desc { display: block; flex: none; width: 0; padding: 6px 0; overflow: hidden; background: #fff; font-size: 14px; line-height: 20px; transition: width .3s ease-in-out, padding .3s ease-in-out; }
.bs-b-fixnav__title { display: block; }
.bs-b-fixnav__date { display: block; padding-top: 3px; color: #a8a8a8; font-size: 12px; }
.bs-b-fixnav:hover .bs-b-fixnav__desc, .bs-b-fixnav:focus-visible .bs-b-fixnav__desc { width: 220px; padding: 6px 15px; box-shadow: 0 0 10px rgba(0, 0, 0, .15); }
.bs-b-fixnav:hover .bs-b-fixnav__photo, .bs-b-fixnav:focus-visible .bs-b-fixnav__photo { display: block; }
@media (min-width: 768px) {
	.bs-b-fixnav { display: flex; }
}
@media (min-width: 1240px) {
	.bs-b-fixnav__photo { display: block; }
}

/* ---------- Ricerca e 404 ---------- */
.bs-b-results { margin: 40px 0 0; padding: 0; list-style: none; }
.bs-b-results__item { padding-block: 20px; border-bottom: 1px solid #eaeaea; }
.bs-b-results__title { margin: 0 0 5px; font-size: var(--bs-fs-h4); line-height: var(--bs-lh-h4); }
.bs-b-sec .search-form { display: flex; gap: 10px; max-width: 520px; margin-inline: auto; }
.bs-b-sec .search-form label { flex: 1; }
.bs-b-sec .search-field { width: 100%; min-height: 48px; padding: 0 15px; border: 1px solid #ddd; border-radius: 0; font: inherit; }
.bs-b-sec .search-submit { min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--bs-radius-btn); background: #2c78bd; color: #fff; font: inherit; cursor: pointer; }
.bs-b-404 { text-align: center; }
.bs-b-404__code { margin: 0; font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 300; line-height: 1; color: #2c78bd; }
.bs-b-404 .search-form { margin-block: 30px; }

/* ---------- Mobile (come l'originale: banda 36px di riga, riquadro a 304px) ---------- */
@media (max-width: 959px) {
	.bs-b-band__title { line-height: 51px; }
}
@media (max-width: 767px) {
	.bs-b-band__title { line-height: 36px; }
	.bs-b-band--slide .bs-b-band__title { font-size: 24px; line-height: 24px; }
	.bs-b-grid { grid-template-columns: minmax(0, 1fr); }
	.bs-b-wrap--list { padding-inline: 43px; }
	.bs-b-single__box { padding-top: 30px; }
	.bs-b-single__media { margin-bottom: 25px; }
}
