/*
Theme Name: Vintage Price
Theme URI: https://arredamentovintage.it
Description: Tema leggero per siti di price tracking Amazon. Nessuna dipendenza da WooCommerce o framework CSS pesanti.
Version: 1.0.0
Author: Danilo Franceschini
License: GPLv2
Text Domain: vintage-price
*/

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1a1a2e;
  --accent:    #e94560;
  --green:     #27ae60;
  --muted:     #6c757d;
  --bg:        #f4f6f9;
  --white:     #ffffff;
  --border:    #dde3ed;
  --radius:    10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:     1180px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.site-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 32px 0 48px;
}

@media (max-width: 900px) {
  .site-content { grid-template-columns: 1fr; }
  .site-sidebar  { display: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo a {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }

/* Hamburger button — visibile solo su mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav desktop */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
.site-nav > ul { flex-wrap: nowrap; }
.site-nav a {
  color: rgba(255,255,255,.85);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav .current-menu-item a {
  background: rgba(255,255,255,.1);
  color: #fff;
}



/* Seconda riga ricerca — sempre visibile su tutti i dispositivi */
.header-search-bar {
  background: rgba(0,0,0,.2);
  padding: 8px 16px;
}
.header-search-bar__inner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: var(--max-w);
  margin: 0 auto;
}
.header-search-bar__inner input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--primary);
  background: transparent;
}
.header-search-bar__inner input::placeholder { color: #aaa; }
.header-search-bar__inner button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.header-search-bar__inner button:hover { background: var(--accent-dark, #b85500); }

/* ---- Breakpoint mobile ---- */
@media (max-width: 768px) {
  .header-inner { height: 52px; gap: 8px; }
  .nav-toggle   { display: flex; }

  /* Menu a tendina — parte dopo header (52px nav + ~50px search bar = 102px) */
  .site-nav {
    display: none;
    position: fixed;
    top: 102px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 8px 0 16px;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    max-height: calc(100vh - 102px);
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .site-nav a {
    display: block;
    padding: 14px 20px;
    border-radius: 0;
    font-size: 16px;
  }

}

/* ============================================================
   STATS BAR
   ============================================================ */
.av-stats-bar {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
}
.av-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
}
.av-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.av-stat__num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.av-stat__label {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}
.av-stat__sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.15);
}
@media (max-width: 600px) {
  .av-stat__sep { display: none; }
  .av-stat { width: 50%; padding: 8px 0; }
  .av-stats-inner { gap: 0; }
}

/* ============================================================
   COME FUNZIONA
   ============================================================ */
.av-come-funziona {
  background: #f8f9fa;
  padding: 40px 16px;
}
.av-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}
.av-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.av-step__icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}
.av-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
}
.av-step p {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  margin: 0;
}
.av-step__arrow {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 28px;
  font-weight: 700;
}
@media (max-width: 600px) {
  .av-steps { flex-direction: column; align-items: center; gap: 24px; }
  .av-step__arrow { transform: rotate(90deg); margin: 0; }
}

/* ============================================================
   CTA BANNER RSS
   ============================================================ */
.av-cta-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.av-cta-banner__icon { font-size: 32px; flex-shrink: 0; }
.av-cta-banner__text {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.av-cta-banner__text strong { font-size: 16px; }
.av-cta-banner__text span   { font-size: 13px; opacity: .8; }
.av-cta-banner__btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.av-cta-banner__btn:hover { background: #b85500; }

/* Hero RSS link */
.av-hero-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 20px;
  border-radius: 8px;
  transition: color .15s, border-color .15s;
}
.av-hero-rss:hover { color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 480px) { .av-hero-rss { margin: 8px 0 0; } }

/* ============================================================
   HERO BANNER
   ============================================================ */
.av-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.av-hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  margin-bottom: 12px;
}
.av-hero h1 em { color: var(--accent); font-style: normal; }
.av-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto 24px;
}
.av-hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s;
}
.av-hero-cta:hover { background: #c73652; text-decoration: none; color: #fff; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.av-section { margin-bottom: 48px; }
.av-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.av-section-title {
  font-size: 20px;
  color: var(--primary);
}
.av-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}
.av-section-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.av-section-link:hover { text-decoration: underline; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.av-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.av-product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.av-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.av-product-card .card-image {
  height: 180px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}
.av-product-card .card-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.av-product-card .card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.badge-sconto  { background: var(--accent); }
.badge-minimo  { background: var(--green); }
.badge-offerta { background: #f39c12; }

.av-product-card .card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.av-product-card .card-title {
  font-size: 13px;
  line-height: 1.4;
  color: var(--primary);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.av-product-card .card-title a { color: inherit; text-decoration: none; }
.av-product-card .card-title a:hover { color: var(--accent); }
.av-product-card .card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}
.price-original {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}
.av-product-card .card-cta {
  display: block;
  background: #ff9900;
  color: #111;
  text-align: center;
  padding: 9px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-top: auto;
  transition: background .15s;
}
.av-product-card .card-cta:hover { background: #e68900; text-decoration: none; color: #111; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}
.widget-body { padding: 14px 18px; }
.widget-body ul { list-style: none; }
.widget-body ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.widget-body ul li:last-child { border-bottom: none; }

/* ============================================================
   ACTIVITY FEED
   ============================================================ */
.av-activity { list-style: none; }
.av-activity li {
  padding: 10px 14px;
  background: var(--white);
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  margin-bottom: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.av-activity li .down { color: var(--green); font-weight: 700; }
.av-activity li .up   { color: var(--accent); font-weight: 700; }
.av-activity li time  { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }

/* ============================================================
   EDITORIALE INTRO (homepage)
   ============================================================ */
.av-editoriale {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.av-editoriale__inner {
  max-width: 820px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   CATEGORIE GRID (legacy — archivi sidebar)
   ============================================================ */
.av-categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.av-categoria-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s, box-shadow .15s, color .15s;
  border-bottom: 3px solid transparent;
}
.av-categoria-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.av-categoria-item .cat-count {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

/* ============================================================
   CATEGORIE CARDS CON IMMAGINE (homepage)
   ============================================================ */
.av-categorie-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .av-categorie-cards { grid-template-columns: repeat(2, 1fr); }
}
.av-categoria-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 150px;
  display: block;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.av-categoria-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.cat-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  transition: transform .3s;
}
.av-categoria-card:hover .cat-card__bg { transform: scale(1.05); }
.cat-card__bg--vuoto {
  background: linear-gradient(135deg, var(--primary) 0%, #2c2c4e 100%);
}
.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px;
}
.cat-card__name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.cat-card__count {
  color: rgba(255,255,255,.75);
  font-size: 11px;
  margin-top: 3px;
}

/* ============================================================
   PAGINA SINGOLA PRODOTTO
   ============================================================ */
.single-product-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 48px;
}
@media (min-width: 860px) {
  .single-product-wrap {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }
}
.single-product-layout {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.single-product-top {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
}
@media (max-width: 700px) {
  .single-product-top { grid-template-columns: 1fr; }
}
.single-product-gallery {
  background: #fafafa;
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.single-product-gallery img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
}
.single-product-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.single-product-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
.single-product-asin {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
}
.price-block {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px 20px;
  border: 1px solid var(--border);
}
.price-block .price-current { font-size: 32px; }
.price-block .price-original { font-size: 16px; }
.price-block .sconto-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}
.storico-mini {
  display: flex;
  gap: 20px;
}
.storico-mini .item { display: flex; flex-direction: column; gap: 2px; }
.storico-mini .label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.storico-mini .value { font-size: 16px; font-weight: 700; }
.storico-mini .value.min { color: var(--green); }
.storico-mini .value.max { color: var(--accent); }

.btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ff9900;
  color: #111;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
  max-width: 320px;
}
.btn-amazon:hover { background: #e68900; text-decoration: none; color: #111; }

.single-product-body {
  padding: 28px;
  border-top: 1px solid var(--border);
}
.single-product-chart { padding: 20px 28px 28px; border-top: 1px solid var(--border); }
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.chart-header h3 { font-size: 17px; margin: 0; }
.chart-filters {
  display: flex;
  gap: 6px;
}
.chart-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chart-btn:hover { border-color: var(--accent); color: var(--accent); }
.chart-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chart-container { position: relative; height: 240px; }
@media (max-width: 480px) {
  .single-product-chart { padding: 16px; }
  .chart-container { height: 200px; }
}

/* ============================================================
   CATEGORY PILLS BAR — solo mobile
   ============================================================ */
.cat-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 4px;
}
.cat-pills-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--border);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cat-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-pill__count {
  font-size: 11px;
  opacity: .7;
  font-weight: 400;
}
/* ============================================================
   GRIGLIA CATEGORIE — fondo pagina archivio
   ============================================================ */
.cat-grid-section {
  padding: 32px 0 16px;
  border-top: 2px solid var(--border);
  margin-top: 8px;
}
.cat-grid-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cat-grid-title {
  font-size: 18px;
  color: var(--primary);
}
.cat-grid-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}
.cat-grid-all {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.cat-grid-all:hover { text-decoration: underline; }

/* Griglia: 2 colonne mobile, 3 tablet, 4-5 desktop */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1024px){ .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

/* Card categoria */
.cat-grid-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.cat-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.cat-grid-card.is-active {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.cat-grid-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  transition: transform .3s;
}
.cat-grid-card:hover .cat-grid-card__bg { transform: scale(1.06); }
.cat-grid-card__bg--empty {
  background: linear-gradient(135deg, #1a1a2e 0%, #2c2c4e 60%, #0f3460 100%);
}
.cat-grid-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}
.cat-grid-card__name {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) { .cat-grid-card__name { font-size: 13px; } }
.cat-grid-card__count {
  color: rgba(255,255,255,.75);
  font-size: 10px;
  margin-top: 2px;
}
@media (min-width: 640px) { .cat-grid-card__count { font-size: 11px; } }

/* ============================================================
   ARCHIVE LAYOUT — mobile first
   ============================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 48px;
}
@media (min-width: 900px) {
  .archive-layout {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }
}
/* Sidebar: nascosta su mobile, visibile da 900px */
.archive-layout .site-sidebar { display: none; }
@media (min-width: 900px) {
  .archive-layout .site-sidebar { display: flex; }
}

/* ============================================================
   ARCHIVIO / CATEGORIA
   ============================================================ */
.archive-header {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.archive-header h1 { font-size: 24px; }
.archive-header .description { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.av-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.av-breadcrumb a { color: var(--muted); }
.av-breadcrumb a:hover { color: var(--accent); }
.av-breadcrumb .sep { opacity: .5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  padding: 32px 20px;
  margin-top: 32px;
  font-size: 13px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: rgba(255,255,255,.6); }
.footer-inner a:hover { color: #fff; }
.footer-disclaimer {
  max-width: var(--max-w);
  margin: 16px auto 0;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
}
.footer-legal {
  max-width: var(--max-w);
  margin: 8px auto 0;
  padding-bottom: 16px;
  font-size: 11px;
  color: rgba(255,255,255,.25);
  line-height: 1.5;
}

/* ============================================================
   PRODOTTI SIMILI — sezione sotto il singolo prodotto
   ============================================================ */
.simili-section {
  margin: 48px auto;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}
.simili-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.simili-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.simili-title em { color: var(--accent); font-style: normal; }
.simili-all {
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
}
.simili-all:hover { text-decoration: underline; }

.simili-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 480px) { .simili-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .simili-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .simili-grid { grid-template-columns: repeat(6, 1fr); } }

.simili-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.simili-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.simili-card__img {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
}
.simili-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.simili-card__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 32px;
}
.simili-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.simili-card__body {
  padding: 10px;
}
.simili-card__title {
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 6px;
  font-weight: 600;
}
.simili-card__title a { color: var(--primary); text-decoration: none; }
.simili-card__title a:hover { color: var(--accent); }
.simili-card__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.simili-price-cur {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.simili-price-old {
  font-size: 11px;
  color: #aaa;
  text-decoration: line-through;
}
.simili-card__cta {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: background .15s;
}
.simili-card__cta:hover { background: var(--accent); }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.sr-container { padding-top: 16px; padding-bottom: 48px; }

/* Header */
.sr-header { margin-bottom: 20px; }
.sr-header__top { margin-bottom: 12px; }
.sr-title {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}
.sr-count { color: var(--accent); }
.sr-query { font-style: italic; color: var(--accent); }

/* Filtri categoria */
.sr-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sr-filters::-webkit-scrollbar { display: none; }
.sr-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: all .15s;
}
.sr-filter-pill span {
  font-size: 11px;
  font-weight: 400;
  opacity: .6;
}
.sr-filter-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.sr-filter-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sr-filter-pill.is-active span { opacity: .85; }

/* Categorie trovate nella ricerca */
.sr-cat-results { margin: 0 0 28px; }
.sr-cat-results__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}
.sr-cat-results__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .sr-cat-results__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .sr-cat-results__grid { grid-template-columns: repeat(6, 1fr); } }

.sr-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
  background: #fff;
}
.sr-cat-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: translateY(-2px); text-decoration: none; }
.sr-cat-card__img {
  height: 72px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}
.sr-cat-card__img--vuota {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.sr-cat-card__info { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.sr-cat-card__name { font-size: 12px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.sr-cat-card__count { font-size: 11px; color: var(--muted); }

/* Lista risultati — su mobile 1 colonna, desktop 2 colonne */
.sr-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 860px) {
  .sr-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  /* Il primo risultato occupa entrambe le colonne */
  .sr-card--featured { grid-column: 1 / -1; }
}

/* Card generica */
.sr-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
}
.sr-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---- Card featured (primo risultato) ---- */
.sr-card--featured {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .sr-card--featured { grid-template-columns: 280px 1fr; }
}
.sr-card__img-wrap--featured {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f5f5f5;
}
@media (min-width: 540px) {
  .sr-card__img-wrap--featured { aspect-ratio: auto; min-height: 220px; }
}
.sr-card__img-wrap--featured img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .3s;
}
.sr-card--featured:hover .sr-card__img-wrap--featured img { transform: scale(1.04); }

/* ---- Card riga (altri risultati) ---- */
.sr-card--row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0;
}
@media (min-width: 480px) {
  .sr-card--row { grid-template-columns: 110px 1fr; }
}
.sr-card__thumb {
  position: relative;
  display: block;
  background: #f5f5f5;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.sr-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .25s;
}
.sr-card--row:hover .sr-card__thumb img { transform: scale(1.06); }
.sr-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: .4;
}

/* Body card */
.sr-card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sr-card--featured .sr-card__body { padding: 20px 22px; gap: 10px; }

/* Categoria link */
.sr-cat-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  text-decoration: none;
}
.sr-cat-link:hover { text-decoration: underline; }
.sr-card__cats { display: flex; gap: 8px; flex-wrap: wrap; }

/* Titolo */
.sr-card__title { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0; }
.sr-card__title a { color: var(--primary); text-decoration: none; }
.sr-card__title a:hover { color: var(--accent); }
.sr-card__title--sm {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prezzi */
.sr-card__prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sr-price-current { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.sr-card--row .sr-price-current { font-size: 1.1rem; }
.sr-price-orig { font-size: 13px; color: var(--muted); text-decoration: line-through; }

/* Badge sull'immagine */
.sr-badge {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1;
}
.sr-badge--sconto { background: var(--accent); top: 10px; left: 10px; }
.sr-badge--minimo { background: var(--green); bottom: 10px; left: 10px; }
.sr-badge--sm { font-size: 10px; padding: 2px 6px; top: 6px; left: 6px; }

/* Sentiment */
.sr-sentiment {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
}
.sr-sentiment--sm { font-size: 11px; padding: 4px 8px; }
.sent--minimo  { background: #e8f8ef; color: #1a7a42; border: 1px solid #b2dfcb; }
.sent--top     { background: #fff0f3; color: #c0392b; border: 1px solid #f5c6cb; }
.sent--buono   { background: #e8f8ef; color: var(--green); border: 1px solid #b2dfcb; }
.sent--vicino  { background: #e8f4fd; color: #1565c0; border: 1px solid #bbdefb; }
.sent--attendi { background: #fff8e1; color: #e65100; border: 1px solid #ffecb3; }

/* Azioni */
.sr-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sr-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.sr-btn--detail { background: var(--bg); color: var(--primary); border: 1px solid var(--border); }
.sr-btn--detail:hover { background: var(--border); text-decoration: none; color: var(--primary); }
.sr-btn--amazon { background: #ff9900; color: #111 !important; }
.sr-btn--amazon:hover { background: #e68900; text-decoration: none; transform: scale(1.02); }
.sr-btn--xs { padding: 6px 12px; font-size: 12px; margin-top: 2px; }

/* Nessun risultato */
.sr-empty {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.sr-empty__icon { font-size: 52px; margin-bottom: 16px; }
.sr-empty h2 { font-size: 1.2rem; margin-bottom: 8px; }
.sr-empty p { color: var(--muted); margin-bottom: 24px; }
.sr-empty__cats-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.sr-empty__cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 24px;
}
@media (min-width: 480px) {
  .sr-empty__cats-grid { grid-template-columns: repeat(3, 1fr); }
}
.sr-empty__cat-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border);
  transition: border-color .15s, color .15s;
}
.sr-empty__cat-link span { font-size: 11px; font-weight: 400; color: var(--muted); }
.sr-empty__cat-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   PAGINAZIONE
   ============================================================ */
.av-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
}
.av-pagination a,
.av-pagination span,
.av-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s, transform .1s;
  border: 1px solid var(--border);
}
.av-pagination a:hover,
.av-pagination a.page-numbers:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.av-pagination .current,
.av-pagination span.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(233,69,96,.3);
}
.av-pagination .dots {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted);
  cursor: default;
}
@media (max-width: 480px) {
  .av-pagination { gap: 4px; }
  .av-pagination a,
  .av-pagination span,
  .av-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 8px;
  }
}

/* =============================================================
   Archive Category Header
   ============================================================= */
.archive-header--categoria {
  margin-bottom: 28px;
}
.categoria-hero {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.categoria-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,46,.25) 0%, rgba(26,26,46,.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px 28px;
}
.categoria-hero__overlay h1 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.categoria-count {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  margin: 0;
}
.categoria-descrizione {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  max-width: 780px;
}
.categoria-descrizione a {
  color: var(--accent);
  text-decoration: none;
}
.categoria-descrizione img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
}

/* =============================================================
   AV SMART GRID — Pagine archivio / categoria (nuova versione)
   ============================================================= */

/* Toolbar ordinamento */
.av-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.av-toolbar__count { color: var(--muted); font-size: 14px; margin: 0; }
.av-toolbar__form select {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  background: var(--white);
  cursor: pointer;
}

/* Griglia smart — 2 colonne su mobile, auto-fill da 640px in su */
.av-smart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .av-smart-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

/* Su mobile nascondo elementi secondari nelle card */
@media (max-width: 639px) {
  .smart-card__vs      { display: none; }
  .smart-card__range   { display: none; }
  .range-hint          { display: none; }
  .smart-card__body    { padding: 10px 12px 12px; gap: 6px; }
  .smart-card__title   { font-size: 12px; -webkit-line-clamp: 2; }
  .price-big           { font-size: 1.1rem; }
  .smart-card__cta     { padding: 8px 10px; font-size: 12px; }
  /* Immagine un po' più alta su mobile */
  .smart-card__img-link { aspect-ratio: 1/1; }
}

/* Card container */
.av-smart-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.av-smart-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Immagine */
.smart-card__img-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f2f5;
}
.smart-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .25s;
}
.av-smart-card:hover .smart-card__img { transform: scale(1.04); }
.smart-card__img--placeholder {
  width: 100%;
  height: 100%;
  background: #e8eaf0;
}

/* Badge sovrapposti all'immagine */
.smart-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* Corpo */
.smart-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Titolo */
.smart-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.smart-card__title a { color: var(--primary); text-decoration: none; }
.smart-card__title a:hover { color: var(--accent); }

/* Blocco prezzi */
.smart-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price-big {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.price-barrato {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}
.price-var {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: auto;
}
.price-var.var--giu { background: #e8f8ef; color: var(--green); }
.price-var.var--su  { background: #fff3e0; color: #e65100; }

/* Riga "era X — risparmi Y" */
.smart-card__vs {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Barra min-max */
.smart-card__range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.range-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 48px;
}
.range-label:last-child { text-align: right; }
.range-bar {
  flex: 1;
  height: 6px;
  background: #e8eaf0;
  border-radius: 3px;
  position: relative;
}
.range-bar__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(to right, var(--green), #f39c12, var(--accent));
  border-radius: 3px;
  transition: width .4s;
}
.range-bar__dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.range-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

/* Sentiment / giudizio acquisto */
.smart-card__sentiment {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  text-align: center;
  margin-top: 2px;
}
.sentiment--minimo {
  background: #e8f8ef;
  color: #1a7a42;
  border: 1px solid #b2dfcb;
}
.sentiment--calo {
  background: #e8f8ef;
  color: var(--green);
}
.sentiment--ok {
  background: #f0f8ff;
  color: #1565c0;
}
.sentiment--rialzo {
  background: #fff8e1;
  color: #e65100;
}
.sentiment--attesa {
  background: #fafafa;
  color: var(--muted);
}

/* CTA bottone */
.smart-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ff9900;
  color: #111 !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 7px;
  text-decoration: none !important;
  margin-top: auto;
  transition: background .15s, transform .1s;
}
.smart-card__cta:hover { background: #e68900; transform: scale(1.02); }
.smart-card__cta--local { background: var(--primary); color: #fff !important; }
.smart-card__cta--local:hover { background: #2c2c4e; }
.cta-arrow { font-size: 14px; }
