/*
Theme Name: Cashback Hub
Theme URI:
Author:
Description: Tema leggero per siti di cashback, "spendi e riprendi" e coupon. Stile volantino rosso e giallo, schede cashback con negozi (dealstore), tipologia di rimborso, importi e scadenza, e integrazione con il plugin Cashback Tracker.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cashback-hub
*/

/* ------------------------------------------------------------------ */
/* Font (ospitati nel tema, licenza OFL)                               */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(assets/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ */
/* Variabili                                                           */
/* ------------------------------------------------------------------ */

:root {
  --paper: #f6f4f0;
  --card: #ffffff;
  --ink: #231815;
  --muted: #5e544f;
  --rule: #ddd6cd;

  --primary: #d42a21;      /* rosso volantino */
  --primary-d: #a81f18;
  --primary-t: #fbeae9;
  --on-primary: #ffffff;
  --hl: #ffc400;           /* giallo adesivo */

  --r: 6px;
  --wrap: 1180px;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.ch-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.ch-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.ch-skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------------ */
/* Pulsanti                                                            */
/* ------------------------------------------------------------------ */

.ch-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7em 1.25em; border: 2px solid var(--primary); border-radius: var(--r);
  background: var(--primary); color: var(--on-primary); text-decoration: none;
  font: 700 .98rem/1.2 var(--font-body); cursor: pointer;
}
.ch-btn:hover { background: var(--primary-d); border-color: var(--primary-d); }
.ch-btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.ch-btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ch-btn-xl { padding: .95em 1.8em; font-size: 1.1rem; width: 100%; text-align: center; }
.ch-btn-off { background: var(--rule); border-color: var(--rule); color: var(--muted); cursor: default; }
.ch-btn-off:hover { background: var(--rule); border-color: var(--rule); }

/* ------------------------------------------------------------------ */
/* Intestazione (rosso)                                                */
/* ------------------------------------------------------------------ */

.ch-header { position: relative; background: var(--primary); color: var(--on-primary); }
.ch-header :focus-visible { outline-color: var(--hl); }
.ch-header-in { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.ch-brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-primary);
  font: 800 1.4rem/1 var(--font-display); letter-spacing: -0.02em;
}
.ch-brand-logo img { display: block; max-height: 46px; width: auto; }
.ch-mark { color: var(--hl); flex: 0 0 auto; }
.ch-mark path + path { stroke: var(--ink); }

.ch-nav { display: flex; flex: 1; align-items: center; gap: 16px; }
.ch-menu { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ch-menu li { position: relative; }
.ch-menu a { display: block; padding: .5rem .75rem; border-radius: var(--r); color: var(--on-primary); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ch-menu a:hover { background: rgba(0, 0, 0, .16); }
.ch-menu .current-menu-item > a, .ch-menu .current-menu-ancestor > a { background: rgba(0, 0, 0, .2); }
.ch-menu .sub-menu {
  display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 220px; margin: 0; padding: 6px;
  list-style: none; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 10px 24px rgba(35, 24, 21, .18);
}
.ch-menu .sub-menu a { color: var(--ink); }
.ch-menu .sub-menu a:hover { background: var(--primary-t); }
.ch-menu li:hover > .sub-menu, .ch-menu li:focus-within > .sub-menu { display: block; }

.ch-account { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ch-link { color: var(--on-primary); font-weight: 600; text-underline-offset: 3px; }
.ch-header .ch-btn { background: var(--hl); border-color: var(--hl); color: var(--ink); }
.ch-header .ch-btn:hover { background: #fff; border-color: #fff; }

.ch-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.ch-burger-bars, .ch-burger-bars::before, .ch-burger-bars::after { display: block; width: 24px; height: 2px; background: var(--on-primary); position: relative; content: ""; }
.ch-burger-bars::before { position: absolute; top: -7px; }
.ch-burger-bars::after { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .ch-burger { display: inline-flex; }
  .ch-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; flex-direction: column; align-items: stretch; gap: 10px;
    padding: 12px 20px 18px; background: var(--primary-d);
  }
  .ch-nav.is-open { display: flex; }
  .ch-menu { flex-direction: column; }
  .ch-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
  .ch-menu .sub-menu a { color: var(--on-primary); }
  .ch-account { margin-left: 0; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .25); }
}

/* ------------------------------------------------------------------ */
/* Home: hero con scontrino                                            */
/* ------------------------------------------------------------------ */

.ch-hero { padding: 54px 0 46px; border-bottom: 2px dashed var(--rule); }
.ch-hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.ch-hero-title { font-size: clamp(2.1rem, 4.4vw + .6rem, 3.7rem); font-weight: 780; line-height: 1.04; letter-spacing: -0.025em; margin-bottom: .45em; }
.ch-hero-text { max-width: 52ch; font-size: 1.15rem; color: var(--muted); margin-bottom: 1.4em; }
.ch-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

.ch-search { display: flex; max-width: 560px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); overflow: hidden; }
.ch-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: .85em 1em; font: inherit; background: transparent; color: var(--ink); }
.ch-search input[type="search"]:focus { outline: none; }
.ch-search:focus-within { outline: 3px solid var(--hl); outline-offset: 2px; }
.ch-search button { border: 0; background: var(--ink); color: #fff; padding: 0 1.3em; font: 700 .98rem var(--font-body); cursor: pointer; }
.ch-search button:hover { background: var(--primary); }

.ch-hero-art { position: relative; display: flex; justify-content: center; padding: 26px 0; }
.ch-hero-art::before {
  content: ""; position: absolute; inset: 6px 14% 6px 14%; background: var(--hl); border-radius: var(--r); transform: rotate(-4deg);
}
.ch-receipt {
  position: relative; width: 100%; max-width: 330px; padding: 22px 22px 24px; background: #fff; transform: rotate(1.8deg);
  box-shadow: 0 1px 0 rgba(35, 24, 21, .1), 0 18px 30px -14px rgba(35, 24, 21, .4);
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
}
.ch-receipt::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9'%3E%3Cpolygon points='0,0 16,0 8,9' fill='%23fff'/%3E%3C/svg%3E") repeat-x;
}
.ch-rc-head { margin: 0 0 12px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ch-rc-item { margin: 0 0 8px; font-size: 1.1rem; font-weight: 750; }
.ch-rc-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dotted var(--rule); font-size: .95rem; }
.ch-rc-row span:first-child { color: var(--muted); }
.ch-rc-row span:last-child { font-weight: 650; text-align: right; }
.ch-rc-hl { background: linear-gradient(transparent 52%, var(--hl) 52%); padding: 0 4px; }
.ch-rc-stamp {
  position: absolute; right: 16px; bottom: 74px; padding: 5px 10px; border: 3px solid var(--primary); border-radius: 4px; color: var(--primary);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-9deg); background: rgba(255, 255, 255, .85);
}
.ch-rc-bar {
  height: 38px; margin: 24px 0 8px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px);
}
.ch-rc-foot { margin: 0; text-align: center; font-size: .75rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .ch-rc-stamp { animation: ch-stamp .5s .5s both cubic-bezier(.2, 1.4, .4, 1); }
  @keyframes ch-stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.9); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
}
@media (max-width: 860px) {
  .ch-hero { padding: 34px 0 30px; }
  .ch-hero-in { grid-template-columns: 1fr; gap: 28px; }
}

/* ------------------------------------------------------------------ */
/* Sezioni, categorie, negozi                                          */
/* ------------------------------------------------------------------ */

.ch-section { padding-top: 40px; padding-bottom: 8px; }
.ch-section-tight { padding-top: 26px; padding-bottom: 0; }
.ch-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ch-sec-head h2 { margin: 0; font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem); font-weight: 760; }
.ch-sec-head a { font-weight: 650; text-underline-offset: 3px; }
.ch-sec-head-hot { border-bottom-color: var(--primary); }
.ch-sec-head-hot h2::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .4em; background: var(--hl); border: 2px solid var(--ink); border-radius: 50%; }
.ch-sec-sub { margin: -8px 0 18px; color: var(--muted); }

.ch-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ch-chips a { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .92rem; background: var(--card); }
.ch-chips a span { color: var(--muted); font-weight: 500; }
.ch-chips a:hover { background: var(--ink); color: #fff; }
.ch-chips a:hover span { color: #fff; }

.ch-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.ch-stores a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 124px; padding: 14px 10px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; text-align: center;
}
.ch-stores a:hover { border-color: var(--primary); }
.ch-stores img { width: auto; max-width: 100%; height: 40px; object-fit: contain; }
.ch-store-ini { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hl); font: 800 1.1rem var(--font-display); }
.ch-stores strong { font-size: .95rem; line-height: 1.2; }
.ch-stores a span:last-child { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Elenchi e schede                                                    */
/* ------------------------------------------------------------------ */

.ch-main { padding-top: 8px; padding-bottom: 56px; }
.ch-pagehead { margin: 8px 0 28px; }
.ch-title { font-size: clamp(1.9rem, 3.2vw + .8rem, 3rem); font-weight: 780; letter-spacing: -0.025em; }
.ch-desc { max-width: 70ch; color: var(--muted); }
.ch-desc p:last-child { margin-bottom: 0; }
.ch-storehead { display: flex; align-items: center; gap: 24px; }
.ch-storehead-logo { width: auto; max-height: 64px; background: var(--card); padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--r); }

.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 28px 22px; }

.ch-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.ch-card-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--primary-t); overflow: hidden; }
.ch-card-img img, .ch-card-img .cbt-thumb { display: block; width: 100%; height: 100%; }
.ch-card-img img { object-fit: cover; }
.ch-ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--primary-t) 0 12px, #fff 12px 24px); }
.ch-card-body { flex: 1; padding: 16px 16px 12px; }
.ch-card-cat { margin: 0 0 6px; font-size: .84rem; font-weight: 700; color: var(--primary-d); }
.ch-card-title { margin: 0 0 8px; font-size: 1.18rem; font-weight: 720; line-height: 1.22; }
.ch-card-title a { text-decoration: none; }
.ch-card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ch-card-exp { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 3px; background: var(--paper); font-size: .82rem; font-weight: 650; }
.ch-card-exp.is-soon { background: var(--hl); color: var(--ink); }
.ch-card-exp.is-expired { background: var(--rule); color: var(--muted); }
.ch-card-ex { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.ch-card-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 2px dashed var(--rule); font-size: .85rem; color: var(--muted); }
.ch-more { color: var(--primary-d); font-weight: 700; text-decoration: none; }
.ch-more:hover { text-decoration: underline; }
.ch-card.is-expired .ch-card-img img { filter: grayscale(1); opacity: .55; }

/* Adesivo con la tipologia di rimborso */
.ch-sticker {
  position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; align-items: center; justify-content: center;
  min-width: 58px; height: 58px; padding: 0 8px; border-radius: 50%; background: var(--hl); color: var(--ink);
  font: 800 1rem/1 var(--font-display); text-align: center; transform: rotate(8deg);
  outline: 2px dashed var(--ink); outline-offset: -5px; box-shadow: 0 2px 6px rgba(35, 24, 21, .25);
}
.ch-card.is-expired .ch-sticker { background: var(--rule); }

.ch-pagination, .navigation.pagination { margin: 40px 0 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); text-decoration: none; font-weight: 650; }
a.page-numbers:hover { background: var(--ink); color: #fff; }
.page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.page-numbers.dots { border-color: transparent; background: transparent; }

.ch-none { max-width: 640px; padding: 30px 0; }
.ch-none .ch-search { margin: 18px 0; }

/* ------------------------------------------------------------------ */
/* Articolo, scheda cashback, contenuti                                */
/* ------------------------------------------------------------------ */

.ch-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 18px 0; padding: 0; font-size: .875rem; color: var(--muted); }
.ch-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.ch-crumbs a { color: var(--muted); text-underline-offset: 3px; }
.ch-crumbs a:hover { color: var(--ink); }

.ch-article-head { max-width: 860px; margin: 8px 0 22px; }
.ch-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.ch-hero-img { margin: 0 0 28px; }
.ch-hero-img img { display: block; width: 100%; border-radius: var(--r); }

.ch-offer {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; align-items: center;
  margin: 0 0 32px; padding: 26px 26px 24px; background: var(--card); border: 2px dashed var(--primary); border-radius: 10px;
}
.ch-offer-cut { position: absolute; top: -15px; left: 22px; padding: 0 8px; background: var(--paper); color: var(--primary); font-size: 1.5rem; line-height: 1; }
.ch-offer-stores { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.ch-offer-stores a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .9rem; background: #fff; }
.ch-offer-stores a:hover { background: var(--ink); color: #fff; }
.ch-offer-stores img { height: 22px; width: auto; object-fit: contain; }
.ch-offer-stores a:not(:has(img)) { padding-left: 12px; }
.ch-offer-title { margin: 0 0 8px; font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); font-weight: 780; }
.ch-offer-desc { margin: 0 0 16px; color: var(--muted); }
.ch-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }
.ch-facts > div { min-width: 120px; }
.ch-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ch-facts dd { margin: 2px 0 0; font: 780 1.35rem/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.ch-facts dd small { display: block; font: 600 .8rem var(--font-body); color: var(--muted); }
.ch-facts .is-type dd { display: inline-block; padding: 2px 10px; background: var(--hl); border-radius: 4px; }
.ch-facts .is-soon dd small { color: var(--primary-d); font-weight: 700; }
.ch-facts .is-expired dd, .ch-facts .is-expired dd small { color: var(--muted); }
.ch-offer.is-expired { border-color: var(--rule); }
.ch-offer.is-expired .ch-offer-cut { color: var(--muted); }

@media (max-width: 760px) {
  .ch-offer { grid-template-columns: 1fr; padding: 24px 18px 20px; }
}

.ch-content { font-size: 1.0625rem; }
.ch-content > :where(p, ul, ol, h2, h3, h4, blockquote, figure.wp-block-image, pre) { max-width: 70ch; }
.ch-content h2 { margin: 1.8em 0 .6em; font-size: clamp(1.45rem, 1.5vw + 1rem, 1.95rem); font-weight: 760; }
.ch-content h3 { margin: 1.5em 0 .5em; font-size: 1.3rem; font-weight: 720; }
.ch-content a { color: var(--primary-d); text-underline-offset: 3px; }
.ch-content a:hover { color: var(--ink); }
.ch-content ul, .ch-content ol { padding-left: 1.3em; }
.ch-content li { margin-bottom: .35em; }
.ch-content blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-left: 5px solid var(--hl); background: var(--card); }
.ch-content figure { margin: 1.4em 0; }
.ch-content figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); }
.ch-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ch-content th, .ch-content td { padding: 8px 10px; border: 1px solid var(--rule); text-align: left; }
.ch-content th { background: var(--card); }
.wp-block-table { overflow-x: auto; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.ch-tags { margin: 28px 0 0; font-size: .9rem; }
.ch-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); text-decoration: none; }
.ch-tags a:hover { border-color: var(--ink); }
.ch-pages { margin: 1.4em 0; }
.ch-related { margin-top: 56px; }

.ch-comments { max-width: 860px; margin-top: 56px; }
.ch-comments-title { font-size: 1.5rem; }
.ch-comment-list { list-style: none; padding: 0; }
.ch-comment-list .children { list-style: none; padding-left: 28px; }
.ch-comment-list .comment-body { padding: 14px 0; border-top: 1px solid var(--rule); }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: .82rem; color: var(--muted); }
.comment-metadata a { color: inherit; }
.comment-form label { display: block; font-weight: 650; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .7em .9em; border: 1.5px solid var(--ink); border-radius: var(--r); font: inherit; background: var(--card);
}
.comment-form .submit { border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); padding: .7em 1.4em; border-radius: var(--r); font: 700 1rem var(--font-body); cursor: pointer; }
.comment-form .submit:hover { background: var(--primary-d); border-color: var(--primary-d); }

/* ------------------------------------------------------------------ */
/* Piè di pagina                                                       */
/* ------------------------------------------------------------------ */

.ch-footer { margin-top: 64px; padding: 42px 0 26px; background: var(--ink); color: #efe9e2; }
.ch-footer a { color: #fff; text-underline-offset: 3px; }
.ch-footer :focus-visible { outline-color: var(--hl); }
.ch-footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; margin-bottom: 30px; }
.ch-widget-title { font-size: 1.05rem; color: var(--hl); }
.ch-widget ul { list-style: none; margin: 0; padding: 0; }
.ch-widget li { margin-bottom: .4em; }
.ch-footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; }
.ch-copy { margin: 0; }
.ch-footer-menu a { color: #efe9e2; padding: .2rem .5rem; font-size: .9rem; }
.ch-footer-menu a:hover { background: transparent; text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Integrazione con il plugin Cashback Tracker                         */
/* ------------------------------------------------------------------ */

body .cbt, body .cbt-dialog, body .cbt-btn-wrap, body .cbt-done-box, body .cbt-fbar-wrap,
body .cbt-land, body .cbt-promo-wrap, body .cbt-promo {
  --p: var(--primary); --pd: var(--primary-d); --tx: var(--ink); --mu: var(--muted); --bd: var(--rule); --bg: var(--paper);
}
body .cbt-hero, body .cbt-promo { background: var(--primary-t); border-color: var(--rule); }
body .cbt-open-btn, body .cbt .cbt-primary, body .cbt-btn { border-radius: var(--r); }
body .cbt-tabs a.on { box-shadow: none; }
body .cbt-fbar a.on { box-shadow: none; }

/* Timbro "Già fatto" sulle miniature */
body .cbt-flag {
  top: 12px; left: 12px; background: #fff; color: var(--primary-d); border: 2px solid var(--primary); border-radius: 4px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; padding: 5px 9px; transform: rotate(-4deg); box-shadow: none;
}
.ch-card-img .cbt-thumb { position: relative; }
.ch-promo-sec { padding-bottom: 8px; }

/* ------------------------------------------------------------------ */
/* Stampa                                                              */
/* ------------------------------------------------------------------ */

@media print {
  .ch-header, .ch-footer, .ch-search, .cbt-btn-wrap, .cbt-dialog { display: none !important; }
  body { background: #fff; }
}
