/* =====================================================================
   Shungite International - tema "nero vivo" sopra HTML5 UP Editorial
   Nero shungite + rosso
   ===================================================================== */

/* Font ospitati sul sito (nessuna richiesta esterna) */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/fonts/OpenSans-latin-variabile.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('/fonts/OpenSans-latin-variabile-corsivo.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/RobotoSlab-latin-variabile.woff2') format('woff2'); }

:root {
  --nero: #0d0d12;
  --nero-2: #16161f;
  --nero-3: #22222e;
  --ciano: #ff4d57;
  --viola: #e10f1e;
  --magenta: #b80c18;
  --sfumatura: linear-gradient(#e10f1e, #e10f1e);
  --testo: #3d4449;
  --chiaro: #e8e8f0;
}

body, input, select, textarea { color: var(--testo); }
h1, h2, h3, h4, h5, h6 { color: var(--nero); }
a { color: #b80c18; border-bottom-color: rgba(184, 12, 24, 0.35); }
a:hover { color: #8f0912 !important; border-bottom-color: transparent; }
::selection { background: rgba(225, 15, 30, 0.25); }
:focus-visible { outline: 3px solid var(--ciano); outline-offset: 2px; }
strong, b { color: var(--nero); }

/* Accessibilita' */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; background: var(--nero); color: #fff !important; padding: 0.75em 1.25em; border: 0; }
.skip-link:focus { left: 1em; top: 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.h3 { font-size: 1.25em; }

/* ---------- Testata ---------- */
/* Testata sempre visibile: resta attaccata in alto mentre si scorre la pagina */
#header { border-bottom: 0; align-items: center; position: -webkit-sticky; position: sticky; top: 0; z-index: 900; background: #fff; padding: 1.1em 0 1.1em 0 !important; }
#main > .inner { padding-top: 0 !important; } /* niente spazio sopra la testata: resta ferma in cima da subito */
#header + * { margin-top: 2.5em; }
@media screen and (max-width: 1280px) { #header { padding-left: 2.75em !important; } }
@media screen and (max-width: 736px) { #header + * { margin-top: 1.5em; } #header { padding-left: 4.25em !important; } }
#header:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sfumatura); border-radius: 2px; }
/* Logo originale del sito (PNG 251x60), usato cosi' com'e' */
#header .logo { display: inline-block; border: 0; line-height: 0; }
#header .logo img { display: block; width: 251px; max-width: 100%; height: auto; }
@media screen and (max-width: 480px) { #header .logo img { width: 200px; } }
#header .icons { text-align: right; }
#header > .logo, #header > .icons { flex: 0 0 auto; }
#header .icons li { padding-left: 0; }

/* Ricerca sempre visibile nella testata fissa */
#header .cerca-testata { flex: 1 1 auto; max-width: 30em; margin: 0 2em; position: relative; display: flex; }
#header .cerca-testata input[type="search"] { height: 2.6em; padding-right: 3.2em; border-radius: 999px; border: solid 2px rgba(225, 15, 30, 0.35); background: #fff; }
#header .cerca-testata input[type="search"]:focus { border-color: var(--viola); }
#header .cerca-testata button { position: absolute; right: 0.25em; top: 0.25em; bottom: 0.25em; width: 2.1em; height: auto; padding: 0; border: 0; border-radius: 50%; background: var(--viola); color: #fff !important; box-shadow: none; line-height: 1; font-size: 1em; letter-spacing: 0; cursor: pointer; }
#header .cerca-testata button:hover { background: var(--magenta); box-shadow: none; }
#header .cerca-testata button .icon:before { color: #fff; font-size: 0.85rem; }
@media screen and (max-width: 980px) { #header .cerca-testata { margin: 0 1em; } }
@media screen and (max-width: 736px) {
  #header { flex-wrap: wrap; row-gap: 0.6em; }
  #header .cerca-testata { order: 3; flex: 1 0 calc(100% + 4.25em); max-width: none; margin: 0 0 0 -4.25em; }
}

/* Riquadro "Domande frequenti" in evidenza nella barra laterale */
#sidebar .faq-evidenza { background: var(--nero-2); border: solid 2px var(--viola); border-radius: 0.9em; padding: 1.5em 1.4em 1.6em !important; margin-bottom: 3em !important; }
#sidebar .faq-evidenza header.major { margin-bottom: 1em; }
#sidebar .faq-evidenza h2 .icon:before { color: var(--viola); }
#sidebar .faq-evidenza ul { list-style: none; padding: 0; margin: 0 0 1.25em 0; }
#sidebar .faq-evidenza li { padding: 0.45em 0; border-top: solid 1px rgba(255, 255, 255, 0.08); }
#sidebar .faq-evidenza li:first-child { border-top: 0; }
#sidebar .faq-evidenza li a { border: 0; color: #e0e0ea; font-size: 0.95em; line-height: 1.45; display: block; }
#sidebar .faq-evidenza li a:before { content: '›'; color: var(--viola); font-weight: 700; margin-right: 0.45em; }

/* Pagina FAQ: risposte che si aprono */
.faq-elenco { margin: 0 0 2.5em 0; }
details.faq { border: solid 1px rgba(13, 13, 18, 0.1); border-left: 4px solid var(--viola); border-radius: 0.6em; margin: 0 0 0.75em 0; background: #fff; scroll-margin-top: 7em; }
details.faq summary { cursor: pointer; list-style: none; padding: 1em 3em 1em 1.25em; font-family: 'Roboto Slab', serif; font-weight: 700; color: var(--nero); position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:after { content: '+'; position: absolute; right: 1em; top: 50%; transform: translateY(-50%); width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center; border-radius: 50%; background: var(--viola); color: #fff; font-family: 'Open Sans', sans-serif; font-weight: 700; }
details.faq[open] summary:after { content: '−'; }
details.faq[open] { background: #fffafa; }
details.faq .faq-risposta { padding: 0 1.25em 0.5em 1.25em; }
details.faq .faq-risposta img { width: 100%; max-width: 380px; height: auto; border-radius: 0.6em; }
.pagina-faq h2[id] { scroll-margin-top: 7em; }
@media screen and (max-width: 736px) { #header .icons { display: none; } }

/* ---------- Pulsanti ---------- */
.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
  box-shadow: inset 0 0 0 2px var(--viola); color: var(--viola) !important; border-radius: 999px;
}
.button:hover, button:hover, input[type="submit"]:hover { background-color: rgba(225, 15, 30, 0.08); color: #8f0912 !important; box-shadow: inset 0 0 0 2px #8f0912; }
.button.primary, button.primary, input[type="submit"].primary {
  background: var(--sfumatura); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 6px 18px -6px rgba(225, 15, 30, 0.6);
  color: #fff !important; transition: background-position 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.button.primary:hover, button.primary:hover, input[type="submit"].primary:hover {
  background-color: transparent; background-position: 100% 0; box-shadow: 0 10px 26px -8px rgba(184, 12, 24, 0.7); color: #fff !important; transform: translateY(-1px);
}

/* ---------- Titoli di sezione ---------- */
header.major > :first-child { font-family: 'Roboto Slab', serif; }
header.major > :first-child:after { background: var(--sfumatura); height: 4px; border-radius: 2px; width: 4.5em; }
header.main > h1 { font-family: 'Roboto Slab', serif; font-size: 2.6em; line-height: 1.2; }
@media screen and (max-width: 736px) { header.main > h1 { font-size: 1.9em; } }
.testo-gradiente { background: var(--sfumatura); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sopratitolo { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8em; font-weight: 700; color: var(--viola); margin-bottom: 0.75em; }
.lead { font-size: 1.15em; line-height: 1.75; }
.nota { font-size: 0.9em; color: #6b7280; }
.actions.centro { justify-content: center; text-align: center; }

/* ---------- Briciole ---------- */
.briciole { margin: 1.75em 0 2em 0; font-size: 0.85em; }
.briciole ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35em; }
.briciole li { padding: 0; }
.briciole li + li:before { content: '›'; margin-right: 0.35em; color: var(--viola); }
.briciole a { border: 0; color: #6b7280; }
.briciole [aria-current] { color: var(--nero); font-weight: 600; }

/* ---------- Banner della home: nero acceso ---------- */
#banner {
  position: relative; margin: 2.5em 0 0 0; padding: 3.5em 3em; border-radius: 1.25em; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 85% 20%, rgba(225, 15, 30, 0.28), transparent 55%), var(--nero);
  color: #c9c9d6; align-items: center;
}
#banner:before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--sfumatura); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; }
#banner h1, #banner h2, #banner strong { color: #fff; }
#banner h1 { font-family: 'Roboto Slab', serif; font-size: 3.4em; line-height: 1.15; margin-bottom: 0.5em; }
#banner .sopratitolo { color: var(--ciano); }
#banner p { color: #c9c9d6; }
#banner .button:not(.primary) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); color: #fff !important; }
#banner .button:not(.primary):hover { box-shadow: inset 0 0 0 2px var(--ciano); color: var(--ciano) !important; }
#banner .image { border-radius: 1em; overflow: hidden; box-shadow: 0 0 60px -10px rgba(225, 15, 30, 0.7); }
#banner .image img { border-radius: 1em; height: 100%; object-fit: cover; }
@media screen and (orientation: landscape) { #banner .image { width: 42%; flex-shrink: 1; margin: 0 0 0 2.5em; } }
@media screen and (max-width: 1680px) { #banner h1 { font-size: 2.8em; } }
@media screen and (max-width: 980px) { #banner { padding: 2.5em 2em; } #banner .image { margin-top: 2em; } }
@media screen and (max-width: 736px) { #banner { padding: 2em 1.5em; margin-top: 1.5em; } #banner h1 { font-size: 2em; } }

/* ---------- Riquadri "features" ---------- */
.features article .icon:before { color: #fff; z-index: 1; }
.features article .icon:after { background: var(--sfumatura); border: 0; box-shadow: 0 6px 14px -8px rgba(225, 15, 30, 0.8); }
/* Rombi delle icone piu' piccoli (richiesta dell'utente 06/12/2026) */
#main .features article .icon { width: 5.5em; height: 5.5em; line-height: 5.5em; margin-right: 1.75em; }
#main .features article .icon:before { font-size: 1.5rem; }
#main .features article .icon:after { width: 3.9em; height: 3.9em; margin: -1.95em 0 0 -1.95em; }
@media screen and (max-width: 480px) { #main .features article .icon { margin: 0 0 1em 0; } }

/* ---------- Schede (categorie, prodotti, articoli) ---------- */
.posts > article { transition: transform 0.25s ease; }
.posts article .image { display: block; position: relative; border: 0; border-radius: 0.9em; overflow: hidden; background: var(--nero); aspect-ratio: 4 / 3; margin-bottom: 1.5em; }
.posts article .image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s ease; }
.posts article .image:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 13, 18, 0.55)); pointer-events: none; }
.posts article:hover .image img { transform: scale(1.05); }
.posts article h3 a { color: var(--nero); border: 0; }
.posts article h3 a:hover { color: #b80c18 !important; }

.card-categoria .icona-cat { position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 1; width: 2.75rem; height: 2.75rem; line-height: 2.75rem; text-align: center; border-radius: 50%; background: var(--sfumatura); color: #fff; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.6); }
.card-categoria .icona-cat:before { line-height: 2.75rem; }

.posts-prodotti article .image { aspect-ratio: 1 / 1; background: #fff; box-shadow: 0 0 0 1px rgba(225, 15, 30, 0.18); }
.posts-prodotti article .image img { object-fit: contain; padding: 0.5em; }
.posts-prodotti article .image:after { display: none; }
.posts-prodotti article h3 { font-size: 1.05em; }
.posts-prodotti article p { font-size: 0.92em; }
/* I prodotti stanno 4 per riga sui grandi schermi, 3 sui medi, 2 sui piccoli */
@media screen and (min-width: 1281px) {
  .posts.posts-prodotti { margin: 0 0 2em -3em; width: calc(100% + 3em); }
  .posts.posts-prodotti article { width: calc(25% - 3em); margin: 0 0 3em 3em; }
  .posts.posts-prodotti article:before, .posts.posts-prodotti article:after { display: none; }
}
@media screen and (min-width: 737px) and (max-width: 1280px) {
  .posts.posts-prodotti article { width: calc(33.33333% - 3em) !important; }
  .posts.posts-prodotti article:before, .posts.posts-prodotti article:after { display: none !important; }
}
@media screen and (max-width: 736px) {
  .posts.posts-prodotti { display: flex; flex-wrap: wrap; margin: 0 0 2em -1.25em; width: calc(100% + 1.25em); }
  .posts.posts-prodotti article { width: calc(50% - 1.25em) !important; margin: 0 0 2em 1.25em !important; padding: 0 !important; border: 0 !important; }
  .posts.posts-prodotti article:before, .posts.posts-prodotti article:after { display: none !important; }
  .posts-prodotti .button { font-size: 0.7em; padding: 0 1.2em; }
}

.card-articolo .etichetta { display: inline-block; margin: 0 0 0.75em 0; padding: 0.2em 0.85em; font-size: 0.72em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; border-radius: 999px; background: var(--sfumatura); }

/* ---------- Pagina articolo ---------- */
.image.main { border-radius: 1em; }
.image.main img { border-radius: 1em; }
.info-articolo { color: #6b7280; font-size: 0.9em; }
.testo-articolo { font-size: 1.05em; line-height: 1.8; }
.testo-articolo h2 { font-family: 'Roboto Slab', serif; margin-top: 1.75em; }
.testo-articolo h3 { margin-top: 1.5em; }
.testo-articolo img { max-width: 100%; height: auto; border-radius: 0.6em; }
.testo-articolo .img-sinistra { float: left; max-width: 45%; margin: 0.4em 1.75em 1em 0; }
.testo-articolo .img-destra { float: right; max-width: 45%; margin: 0.4em 0 1em 1.75em; }
.testo-articolo p > img:only-child { display: block; margin: 0 auto; }
.testo-articolo:after { content: ''; display: block; clear: both; }
.testo-articolo .centro, .centro { text-align: center; }
.testo-articolo blockquote { border-left: 4px solid var(--viola); background: rgba(225, 15, 30, 0.06); padding: 1em 1.5em; font-style: italic; }
.testo-articolo ul li::marker { color: var(--viola); }
.table-wrapper, .testo-articolo .tabella { display: block; overflow-x: auto; }
.testo-articolo .tabella { width: 100%; border-collapse: collapse; }
.testo-articolo .tabella th { background: var(--nero); color: #fff; }
.testo-articolo .tabella td, .testo-articolo .tabella th { padding: 0.6em 0.9em; border: 1px solid rgba(225, 15, 30, 0.2); }
@media screen and (max-width: 736px) {
  .testo-articolo .img-sinistra, .testo-articolo .img-destra { float: none; max-width: 100%; margin: 1em 0; display: block; }
}

.video-link { margin: 2em 0; }
.video-link > a { display: block; position: relative; border: 0; border-radius: 0.9em; overflow: hidden; background: var(--nero); max-width: 980px; margin: 0 auto; }
.video-link > a:not(:has(img)) { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 45%, #2a0a0d, var(--nero) 70%); }
.video-link > a > img { display: block; width: 100%; height: auto; opacity: 0.75; transition: opacity 0.3s ease; border-radius: 0 !important; }
.video-link > a:hover > img { opacity: 0.55; }
.video-link > a:before { content: '\f04b'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.5rem; height: 4.5rem; line-height: 4.5rem; padding-left: 0.3rem; text-align: center; border-radius: 50%; background: var(--sfumatura); color: #fff; font-size: 1.5rem; z-index: 1; box-shadow: 0 0 40px rgba(184, 12, 24, 0.6); }
.video-link .video-testo { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9em 1.25em; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(13, 13, 18, 0.9)); }

/* Player video (FWD UVP): riquadro nero con angoli arrotondati */
.video-player { margin: 2em auto; max-width: 980px; border-radius: 0.9em; overflow: hidden; background: #000; }
.video-player .videoplayer { min-height: 200px; }
.video-player noscript p { color: #fff; padding: 1em; margin: 0; }
.video-sparito { margin: 2em auto; max-width: 980px; }
.video-sparito img { display: block; width: 100%; height: auto; border-radius: 0.9em; filter: grayscale(0.6); opacity: 0.85; }
.video-sparito figcaption { margin-top: 0.6em; font-size: 0.9em; color: #6b7280; font-style: italic; text-align: center; }

.avvertenza { margin: 2.5em 0; padding: 1.25em 1.5em; border-radius: 0.75em; background: #fff4f4; border-left: 4px solid var(--viola); font-size: 0.9em; }
.avvertenza p:last-child { margin-bottom: 0; }

/* ---------- Riquadro acquisti (nero, bordo sfumato) ---------- */
.riquadro-acquisti { position: relative; margin: 3em 0; padding: 2.5em; border-radius: 1.25em; color: #c9c9d6; isolation: isolate;
  background: radial-gradient(circle at 90% 10%, rgba(225, 15, 30, 0.25), transparent 50%), var(--nero); }
.riquadro-acquisti:before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--sfumatura); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; }
.riquadro-acquisti h2, .riquadro-acquisti h3, .riquadro-acquisti strong { color: #fff; }
.riquadro-acquisti a:not(.button) { color: var(--ciano); border-bottom-color: rgba(255, 77, 87, 0.4); }
.riquadro-acquisti .button:not(.primary) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); color: #fff !important; }
.riquadro-acquisti .button:not(.primary):hover { box-shadow: inset 0 0 0 2px var(--ciano); color: var(--ciano) !important; }
.riquadro-acquisti header.major > :first-child { color: #fff; }
.riquadro-acquisti ul.actions { margin-bottom: 0; }
@media screen and (max-width: 736px) { .riquadro-acquisti { padding: 1.75em 1.25em; } }

/* ---------- Elenchi: temi del blog, altre categorie ---------- */
.indice-temi, .altre-categorie { list-style: none; padding: 0; margin: 0 0 2.5em 0; display: flex; flex-wrap: wrap; gap: 0.6em; }
.indice-temi li, .altre-categorie li { padding: 0; }
.indice-temi a, .altre-categorie a { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.5em 1.1em; border-radius: 999px; border: 0; background: #fdeeee; color: var(--nero); font-size: 0.9em; font-weight: 600; transition: background 0.25s ease, color 0.25s ease; }
.indice-temi a:hover, .altre-categorie a:hover { background: var(--nero); color: #fff !important; }
.indice-temi .icon:before, .altre-categorie .icon:before { color: var(--viola); }
section[id] { scroll-margin-top: 1.5em; }

/* ---------- Ricerca ---------- */
.cerca-pagina, .cerca-404 { display: flex; gap: 0.75em; flex-wrap: wrap; margin-bottom: 2em; }
.cerca-pagina input[type="search"], .cerca-404 input[type="search"] { flex: 1 1 16em; }
input[type="search"] { -webkit-appearance: none; appearance: none; background: #fff; border: solid 1px rgba(225, 15, 30, 0.35); border-radius: 0.6em; color: inherit; display: block; height: 2.75em; padding: 0 1em; width: 100%; outline: 0; }
input[type="search"]:focus, input[type="text"]:focus { border-color: var(--viola); box-shadow: 0 0 0 2px rgba(225, 15, 30, 0.35); }

/* ---------- Pagine legali ---------- */
.pagina-legale dl dt { font-weight: 700; color: var(--nero); margin-top: 1em; }
.pagina-legale dl dd { margin-left: 0; }
.pagina-legale h2 { font-size: 1.35em; margin-top: 1.75em; }

/* ---------- Barra laterale scura ---------- */
#sidebar { background-color: var(--nero); color: #b4b4c4; }
#sidebar > .inner > * { border-bottom-color: rgba(255, 255, 255, 0.08); }
#sidebar > .inner > .alt { background-color: var(--nero-2); }
#sidebar h1, #sidebar h2, #sidebar h3, #sidebar h4, #sidebar strong { color: #fff; }
#sidebar header.major > :first-child { color: #fff; }
#sidebar a { color: #e0e0ea; border-bottom-color: rgba(255, 255, 255, 0.15); }
#sidebar a:hover { color: var(--ciano) !important; }
#sidebar p { color: #9d9db0; }
#sidebar .toggle { color: var(--nero) !important; }
#sidebar .toggle:before { color: var(--nero); }
@media screen and (max-width: 736px) {
  #sidebar .toggle:before { color: #fff; }
  #sidebar .toggle:after { background: var(--nero); box-shadow: 0 4px 14px -4px rgba(225, 15, 30, 0.8); }
}
#search input[type="text"] { background: var(--nero-2); border-color: rgba(255, 255, 255, 0.12); color: #fff; border-radius: 0.6em; }
#search input[type="text"]::placeholder { color: #8a8aa0; }
/* La lente e' un vero pulsante: cliccandola parte la ricerca (prima era solo un disegno) */
#search form:before { display: none; }
#search form { position: relative; }
#search .cerca-invio { position: absolute; right: 0; top: 0; height: 100%; width: 2.9em; padding: 0; margin: 0; border: 0; border-radius: 0 0.6em 0.6em 0; background: var(--viola); color: #fff !important; box-shadow: none; cursor: pointer; line-height: 1; font-size: 1em; text-transform: none; letter-spacing: 0; }
#search .cerca-invio:hover { background: var(--magenta); color: #fff !important; box-shadow: none; }
#search .cerca-invio .icon:before { color: #fff; font-size: 1rem; }
#menu ul a, #menu ul span { color: #e0e0ea; border: 0; font-family: 'Roboto Slab', serif; }
#menu ul a:hover, #menu ul span:hover { color: var(--ciano) !important; }
#menu ul a.opener:before, #menu ul span.opener:before { color: #8a8aa0; }
#menu ul a.opener.active:before, #menu ul span.opener.active:before { color: var(--magenta); }
#menu > ul > li { border-top-color: rgba(255, 255, 255, 0.08); }
#menu ul ul a { font-family: 'Open Sans', sans-serif; font-size: 0.95em; color: #b4b4c4; }
#menu a[aria-current="page"] { color: var(--ciano); }
.mini-posts article { border-top-color: rgba(255, 255, 255, 0.08); }
.mini-posts article .image { border: 0; border-radius: 0.6em; overflow: hidden; }
.mini-posts article .image img { border-radius: 0.6em; aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.mini-posts article a:not(.image) { font-weight: 600; }
#sidebar .button:not(.primary) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); color: #fff !important; }
#sidebar .button:not(.primary):hover { box-shadow: inset 0 0 0 2px var(--ciano); color: var(--ciano) !important; background: transparent; }
#footer .copyright { color: #7a7a8e; }
#footer .copyright a { color: #b4b4c4; }
@media screen and (max-width: 1280px) { #sidebar { box-shadow: 0 0 5em 0 rgba(0, 0, 0, 0.6); } }

/* Barra di scorrimento della barra laterale */
#sidebar > .inner { scrollbar-color: #3a3a4c transparent; }

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Domande dell'articolo "Shungite faq": erano pulsanti a scomparsa di Zavalos, qui diventano titoli che vanno a capo */
.testo-articolo h5 > button {
	all: unset;
	display: block;
	color: #0d0d12;
	font-family: "Roboto Slab", serif;
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1.45;
	white-space: normal;
	overflow-wrap: anywhere;
	border-left: 4px solid #e10f1e;
	padding-left: .75em;
	cursor: text;
}

/* Il libro "Il manuale della shungite": pagina, riquadro in home, riquadro nella barra laterale */
.libro-copertina { display: block; border: 0; line-height: 0; }
.libro-copertina img { display: block; width: 100%; height: auto; border-radius: 0.6em; }
.libro-scheda { display: grid; grid-template-columns: minmax(0, 20em) minmax(0, 1fr); gap: 2.5em; align-items: start; margin-bottom: 2.5em; }
.libro-dati { display: grid; grid-template-columns: auto 1fr; gap: 0.35em 1.25em; margin: 0 0 1.5em 0; }
.libro-dati dt { font-weight: 700; color: #0d0d12; margin: 0; }
.libro-dati dd { margin: 0; }
.libro-scheda .actions { margin-bottom: 0.75em; }
.libro-scheda .button .icon:before { margin-right: 0.4em; }
.nota-prezzo { font-size: 0.85em; opacity: 0.75; }
.libro-indice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5em; }
.libro-indice ol { padding-left: 1.4em; }
.libro-indice ol li { padding-left: 0.2em; margin-bottom: 0.3em; }
.libro-indice > div + div ol { counter-reset: none; }
#main .libro-home { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 2.5em; align-items: center; border: solid 2px #e10f1e; border-radius: 0.9em; padding: 2em !important; margin: 2em 0; }
.libro-home h2 { margin-bottom: 0.5em; }
.libro-home .actions { margin-bottom: 0; }
#sidebar .libro-laterale { border: solid 2px #e10f1e; border-radius: 0.9em; padding: 1.5em 1.4em 1.6em !important; margin-bottom: 3em !important; }
#sidebar .libro-laterale header.major { margin-bottom: 1em; }
#sidebar .libro-laterale h2 .icon:before { color: #e10f1e; }
.libro-laterale-link { display: flex; gap: 1em; align-items: center; border: 0; margin-bottom: 1.25em; color: inherit !important; font-size: 0.9em; line-height: 1.45; }
.libro-laterale-link img { flex: 0 0 6em; width: 6em; height: auto; border-radius: 0.4em; }
@media screen and (max-width: 980px) {
  .libro-scheda, #main .libro-home { grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 1.5em; }
}
@media screen and (max-width: 736px) {
  .libro-scheda, #main .libro-home { grid-template-columns: minmax(0, 1fr); }
  .libro-scheda .actions, .libro-home .actions { flex-wrap: wrap; }
  .libro-scheda .actions li, .libro-home .actions li { padding-left: 0; margin-right: 0.75em; }
  .libro-scheda .libro-copertina, .libro-home .libro-copertina { max-width: 15em; margin: 0 auto; }
  .libro-indice { grid-template-columns: minmax(0, 1fr); }
  #main .libro-home { padding: 1.5em !important; }
}
/* Barra laterale (schermi larghi): colonna ferma alta quanto lo schermo, che scorre per conto suo;
   la ricerca resta sempre visibile in cima. Annulla il "blocco" via JS del tema (stili in linea). */
@media screen and (min-width: 1281px) {
  #sidebar { position: -webkit-sticky; position: sticky; top: 0; align-self: flex-start; height: 100vh; }
  #sidebar > .inner { position: relative !important; top: auto !important; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  #sidebar > .inner > #search { position: -webkit-sticky; position: sticky; top: -2.22222em; z-index: 5; }
}