/* Mamme h24 — the look of the old site (2019: Bootstrap "Heroic Features" + css/style.css), on Bootstrap 5,
   with a modern finish (Pedro, 2026-11-11: "partendo da questa impostazione, senza stravolgerlo").
   Kept: the logo, Burst My Bubble (Kimberly Geswein) for menu, titles, header and footer; the white menu with
   black links; the "Benvenuti!" photo header; cards with picture, blue title and "leggi"; the category banners;
   the right column of cards; "Pubblicato il:"; "Seguici anche su Facebook!"; the Bootstrap 4 blue.
   Modern finish: soft corners and shadows instead of grey borders, a menu that shrinks on scroll, a search in
   the header, the categories as round bubbles, rows of cards that slide sideways (CatMotion), a reading bar,
   a footer in columns. Accented letters the font lacks come from Indie Flower (same designer, OFL). */

@font-face {
  font-family: "Burst_My_Bubble";
  src: url("../fonts/BurstMyBubble.woff2") format("woff2"), url("../fonts/BurstMyBubble.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {                       /* only the letters Burst My Bubble lacks (OFL, static/fonts/OFL-IndieFlower.txt) */
  font-family: "Burst_My_Bubble";
  src: url("../fonts/IndieFlower-accenti.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: swap;
  unicode-range: U+00C0-00C1, U+00C8-00C9, U+00CC-00CD, U+00D2-00D3, U+00D9-00DA, U+00E0-00E1, U+00E8-00E9,
                 U+00EC-00ED, U+00F2-00F3, U+00F9-00FA, U+00AB, U+00BB, U+2013;
}

:root {
  --burst: "Burst_My_Bubble", "Comic Sans MS", cursive;
  --blue: #007bff; --blue-dark: #0056b3; --blue-soft: #eef5ff;
  --ink: #212529; --muted: #6c757d; --line: #e9ecef; --soft: #f7f9fc;
  --radius: 18px; --radius-s: 12px;
  --shadow: 0 2px 6px rgba(20, 40, 80, .06), 0 10px 24px rgba(20, 40, 80, .07);
  --shadow-hover: 0 4px 10px rgba(20, 40, 80, .08), 0 18px 36px rgba(20, 40, 80, .12);
  /* the Bootstrap 4 blue of the old site */
  --bs-primary: #007bff; --bs-primary-rgb: 0, 123, 255;
  --bs-link-color: #007bff; --bs-link-color-rgb: 0, 123, 255; --bs-link-hover-color: #0056b3; --bs-link-hover-color-rgb: 0, 86, 179;
  --bs-body-color: #212529; --bs-border-radius: .6rem;
}
html { scroll-padding-top: 90px; }
body { padding-top: 64px; background: #fff; -webkit-font-smoothing: antialiased; }
.btn { border-radius: 999px; font-weight: 600; }
.btn-outline-primary { --bs-btn-color: #007bff; --bs-btn-border-color: #007bff; --bs-btn-hover-bg: #007bff;
  --bs-btn-hover-border-color: #007bff; --bs-btn-active-bg: #007bff; --bs-btn-active-border-color: #007bff; }
.btn-primary { --bs-btn-bg: #007bff; --bs-btn-border-color: #007bff; --bs-btn-hover-bg: #0069d9; --bs-btn-hover-border-color: #0062cc; }
.form-control { border-radius: var(--radius-s); }
.input-group > .form-control { border-top-left-radius: 999px; border-bottom-left-radius: 999px; padding-left: 1rem; }
.input-group > .btn { border-top-right-radius: 999px; border-bottom-right-radius: 999px; }

/* ---------- the titles in the old font ---------- */
h1, .h1, h1.title { font-size: 3.5rem; font-family: var(--burst); font-weight: normal; line-height: 1.1; }
h2, .h2 { font-size: 2.5rem; font-family: var(--burst); font-weight: normal; }
h4, .h4 { font-size: 2rem; font-weight: 800; font-family: var(--burst); }
h5, .h5 { font-size: 1.6rem; font-weight: 800; font-family: var(--burst); }
h6, .h6 { font-size: 1.3rem; font-weight: 800; font-family: var(--burst); }
h2.article, .post-text h2 { font-family: inherit; font-size: 1.55rem; font-weight: 700; margin-top: 1.8rem; }
.post-text h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; }
p.footertext { font-size: 1.4rem; font-weight: 500; font-family: var(--burst); }
p.playertext { font-size: 1.8rem; font-weight: 500; font-family: var(--burst); margin: 0; }
.burst { font-family: var(--burst); }
@media (max-width: 575.98px) {
  h1, .h1, h1.title { font-size: 2.6rem; }
  h2, .h2 { font-size: 2.1rem; }
  h4, .h4 { font-size: 1.6rem; }
  h5, .h5 { font-size: 1.45rem; }
  p.playertext { font-size: 1.45rem; }
}

/* ---------- menu: white, black links in the old font, shrinks when the page scrolls ---------- */
.navbar.site-nav { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px); transition: box-shadow .25s, padding .25s; }
.navbar.site-nav.scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .07), 0 6px 20px rgba(0, 0, 0, .04); }
.navbar-brand img { height: 46px; width: auto; transition: height .25s; }
.menubar { font-family: var(--burst); font-size: 1.7em; }
.site-nav .nav-link { color: #000 !important; padding-top: .15rem; padding-bottom: .15rem; position: relative; }
.site-nav .nav-link.active, .site-nav .nav-link:hover { text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 3px; text-underline-offset: 6px; }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: none; }
@media (min-width: 992px) {
  body { padding-top: 84px; }
  .navbar-brand img { height: 62px; }
  .site-nav.scrolled .navbar-brand img { height: 46px; }
  .site-nav .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; }
}
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .5rem 0 1rem; }
}

/* ---------- the welcome header ---------- */
.jumbotron { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 520px; padding: 3rem 1rem; margin: 1rem 0 1.5rem; border-radius: 28px; overflow: hidden; color: #fff;
  background: #2b2016 url("../img/old/benvenuti.jpg") center 35% / cover no-repeat; text-align: center;
  box-shadow: var(--shadow); }
.jumbotron::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.05), rgba(0,0,0,.40)); }
.jumbotron > * { position: relative; }
.display-3 { font-family: var(--burst); font-size: 8.5rem; font-weight: normal; line-height: 1.05; color: #fff; margin: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.jumbotron .lead { font-family: var(--burst); font-size: 1.9em; color: #fff; margin: .3rem 0 1.4rem; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-search { width: min(560px, 100%); display: flex; background: #fff; border-radius: 999px; padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero-search input { flex: 1; border: 0; outline: 0; padding: .55rem 1rem; border-radius: 999px; font-size: 1.05rem; min-width: 0; }
.hero-search .btn { padding-left: 1.4rem; padding-right: 1.4rem; }
@media (max-width: 767.98px) {
  .jumbotron { min-height: 380px; border-radius: 20px; margin-top: .5rem; }
  .display-3 { font-size: 4.6rem; }
  .jumbotron .lead { font-size: 1.4em; }
}

/* ---------- the categories as round bubbles (a character of each old banner) ---------- */
.bubbles { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 0 0 2rem; padding: 0; list-style: none; }
.bubbles a { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: var(--ink); }
.bubbles .ring { width: 92px; height: 92px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--c), #fff 70%, var(--c));
  transition: transform .2s; }
.bubbles img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid #fff; }
.bubbles span { font-family: var(--burst); font-size: 1.35rem; line-height: 1; }
.bubbles a:hover .ring { transform: translateY(-3px) rotate(-3deg); }
@media (max-width: 767.98px) {
  .bubbles { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: .25rem .25rem .75rem; scrollbar-width: none;
    margin-left: -12px; margin-right: -12px; padding-left: 12px; }
  .bubbles::-webkit-scrollbar { display: none; }
  .bubbles li { flex: none; }
  .bubbles .ring { width: 74px; height: 74px; }
  .bubbles span { font-size: 1.15rem; }
}

/* ---------- sections ---------- */
.section { margin-bottom: 2.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.section-head h2 { margin: 0; }
.section-head h2 a { color: inherit; text-decoration: none; }
.section-head .more { white-space: nowrap; font-weight: 600; text-decoration: none; }
.section-head .more:hover { text-decoration: underline; }
.row-tools { display: none; gap: .4rem; }
@media (min-width: 768px) { .row-tools { display: inline-flex; } }
.row-tools button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; }
.row-tools button:hover { border-color: var(--blue); color: var(--blue); }

/* a row of cards that slides sideways (CatMotion.attachX; native scroll-snap when it is not running) */
.track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: .5rem 12px 1.25rem; margin: -.5rem -12px 0; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track { scroll-padding-left: 12px; }
.track > * { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 576px) { .track > * { flex-basis: calc((100% - 1.25rem) / 2.15); } }
@media (min-width: 992px) { .track > * { flex-basis: calc((100% - 3 * 1.25rem) / 4); } }

/* ---------- cards ---------- */
.card.post-card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease; }
.card.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card .pic { position: relative; overflow: hidden; }
.card-img-top { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #f4f4f4; border-radius: 0;
  transition: transform .5s ease; }
.post-card:hover .card-img-top { transform: scale(1.04); }
.cat-pill { position: absolute; top: 10px; left: 10px; background: var(--c); color: #fff; border-radius: 999px;
  padding: .05rem .7rem .1rem; font-family: var(--burst); font-size: 1.1rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.post-card .card-body { padding: 1rem 1.15rem .5rem; }
.post-card .card-title { line-height: 1.15; margin-bottom: .4rem; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }     /* the whole card opens the article */
.card-title a:hover { text-decoration: underline; }
.post-card .card-text { color: #495057; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: .5rem; padding: 0 1.15rem 1rem; font-size: .82rem; color: var(--muted); }
.card-foot .av { width: 26px; height: 26px; font-size: .7rem; }
.card-foot .leggi { margin-left: auto; position: relative; z-index: 1; }
.tag-archivio { display: inline-block; font-family: var(--burst); font-size: 1rem; color: var(--muted); }

/* ---------- category page ---------- */
.page-title { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.page-title .count { color: var(--muted); font-size: 1rem; }
.banner-cat { width: 100%; height: auto; border-radius: var(--radius); margin: .25rem 0 1rem; box-shadow: var(--shadow); }
.sidebar { padding-top: 58px; }
.sidebar .card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--soft); }
.sidebar .card-header { background: transparent; border: 0; padding: 1rem 1.15rem 0; }
.sidebar .list-group-item { background: transparent; border-color: var(--line); }
@media (min-width: 992px) { .sidebar-in { position: sticky; top: 96px; } }
@media (max-width: 991.98px) { .sidebar { padding-top: 0; } }

/* ---------- article ---------- */
.read-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--blue); z-index: 1040; transition: width .1s linear; }
.breadcrumb { font-size: .9rem; }
.breadcrumb a { text-decoration: none; }
.meta-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.meta-row a { font-weight: 600; text-decoration: none; }
.post-img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; margin: 0 auto;
  border-radius: var(--radius); box-shadow: var(--shadow); }
.post-text { font-size: 1.12rem; line-height: 1.78; color: #2b2f33; }
.post-text p { margin-bottom: 1.1rem; }
.post-text img { max-width: 100%; height: auto; display: block; margin: 1.25rem auto; border-radius: var(--radius-s); }
.post-text blockquote { border-left: 4px solid var(--blue); padding-left: 1rem; color: #495057; }
.post-text .lead { font-size: 1.28rem; color: var(--ink); }
.byline { display: flex; align-items: center; gap: .6rem; }
.av { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  flex: none; background: var(--a, #e9ecef); color: #fff; font-weight: 700; }
.av img { width: 100%; height: 100%; object-fit: cover; background: #fffaf2; }
.av.l { width: 110px; height: 110px; font-size: 2.2rem; }
.info-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1rem 0 1.25rem; }
.info-list li { background: var(--blue-soft); border-radius: 999px; padding: .35rem .95rem; font-size: .95rem; }
.info-list b { font-family: var(--burst); font-weight: normal; font-size: 1.15rem; margin-right: .3rem; }
.box { border: 0; border-radius: var(--radius); background: var(--blue-soft); }
.box .card-header { background: transparent; border: 0; padding: 1rem 1.25rem 0; }
.steps { list-style: none; counter-reset: s; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1rem 3.1rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.15rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--burst); font-size: 1.35rem; }
.morale { background: #fff6cc; border: 0; border-radius: var(--radius); }
.notice { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: .8rem 1rem; border-radius: var(--radius-s); font-size: .95rem; }
.archive-note { background: var(--soft); border-radius: var(--radius-s); padding: .8rem 1rem; font-size: .95rem; }
.share .btn { margin: 0 .25rem .4rem 0; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #0f63d0; color: #fff; }
.ai-note { font-size: .9rem; color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue);
  color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 1030; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- cards with a form (home) ---------- */
.cta { border: 0; border-radius: var(--radius); background: var(--soft); }
.cta.blue { background: var(--blue-soft); }

/* ---------- footer ---------- */
footer.site-foot { margin-top: 3rem; background: var(--soft); padding: 2.5rem 0 1.5rem; }
footer.site-foot h2 { font-size: 1.6rem; }
footer.site-foot ul { list-style: none; padding: 0; margin: 0; }
footer.site-foot li { margin: .2rem 0; }
footer.site-foot a { text-decoration: none; }
footer.site-foot a:hover { text-decoration: underline; }
footer.site-foot .small { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .post-card:hover, .bubbles a:hover .ring { transform: none; }
}

/* ---------- print: a recipe on paper ---------- */
@media print {
  .navbar, footer, .sidebar, .share, .no-print, .read-bar, .to-top { display: none !important; }
  body { padding-top: 0; }
  .col-lg-8 { width: 100% !important; }
  .post-img { box-shadow: none; max-height: 8cm; }
}

/* in a sliding row every card is as tall as the tallest one (h-100 means nothing there) */
.track > .card { height: auto !important; }
.card-foot .leggi { white-space: nowrap; flex: none; }
.card-foot > span { min-width: 0; line-height: 1.25; }
