/* ==========================================================================
   RECENSIONI TELEMATICHE — v3
   Design system: dark "tecnico", accenti cyan/blu, glassmorphism leggero
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #070b14;
  --bg-elevated: #0d1322;
  --card: #101828;
  --card-2: #131c30;
  --ink: #e6edf7;
  --muted: #93a1b8;
  --faint: #64748b;
  --line: #1c2740;
  --line-soft: #182136;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.09);
  --success-border: rgba(52, 211, 153, 0.35);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);
  --danger-border: rgba(248, 113, 113, 0.3);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.09);
  --warn-border: rgba(251, 191, 36, 0.35);
  --header-bg: rgba(6, 10, 20, 0.78);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(34, 211, 238, 0.18);
  --grad: linear-gradient(92deg, #22d3ee, #60a5fa 55%, #818cf8);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(59, 130, 246, 0.13), transparent 60%),
    radial-gradient(900px 480px at -10% 0%, rgba(34, 211, 238, 0.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

a { color: var(--accent); }
a:hover { color: #7dd3fc; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #04121a;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 8px; }

/* ---------- Progress bar (pagine recensione) ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 300;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  transition: width 0.08s linear;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 42px; height: 42px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: var(--glow);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.main-nav a:hover { color: var(--accent); background: rgba(34, 211, 238, 0.07); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ========== LAYOUT ========== */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { padding: 40px 0 72px; display: block; }

.narrow { max-width: 820px; }

/* ========== HERO (home) ========== */
.hero {
  text-align: center;
  padding: 46px 0 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 7px 16px;
  border-radius: 99px;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  line-height: 1.28;
  margin: 0 0 0.55em;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #f4f8fd;
}

.hero h1 span, .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1.page-title { margin-top: 6px; }

h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 2.6em 0 0.9em;
  font-weight: 600;
  color: #e8eefb;
  letter-spacing: 0.03em;
}

h2::after {
  content: "";
  display: block;
  width: 52px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin-top: 10px;
}

.hero h2::after { margin-left: auto; margin-right: auto; }

h3 { color: #eef3fb; }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 1.6rem;
}

/* Trust badges */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 8px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  box-shadow: var(--shadow);
}

.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ========== SEARCH & CHIPS ========== */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin: 30px 0 10px;
}

.search-bar {
  position: relative;
  width: min(560px, 100%);
}

.search-bar svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--faint);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  font-size: 0.98rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.search-bar input::placeholder { color: var(--faint); }

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}

.chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }

.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}

.chip .soon {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warn);
}

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 34px 0 8px;
  font-size: 0.95rem;
  display: none;
}
.no-results.visible { display: block; }

/* ========== CARDS GRID ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin: 30px 0 44px;
}

.card {
  position: relative;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--glow), var(--shadow);
}
.card:hover::before { opacity: 1; }

.card-img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 42%, #16203a, #0c1424);
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 10px;
  transition: transform .3s ease;
}
.card:hover .card-img { transform: scale(1.03); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 11px;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.verdict-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.verdict-pill.good { color: var(--success); background: var(--success-bg); border: 1px solid var(--success-border); }
.verdict-pill.mid  { color: var(--warn);   background: var(--warn-bg);   border: 1px solid var(--warn-border); }

.card h3 {
  margin: 0.45em 0 0.4em;
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f1f5f9;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--faint);
}

.card-meta svg { width: 14px; height: 14px; }

.card a.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.93rem;
  width: fit-content;
}
.card a.more svg { width: 15px; height: 15px; transition: transform .2s; }
.card a.more:hover { text-decoration: underline; }
.card a.more:hover svg { transform: translateX(4px); }

/* ========== METODO (home) ========== */
.method {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 26px 0 10px;
}

.method-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.method-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.method-card h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.method-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ========== CRUMB ========== */
.crumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.crumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.crumb li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb li[aria-current] { color: var(--accent); }

/* ========== REVIEW LAYOUT ========== */
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
}

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 6px 10px;
  border-left: 2px solid var(--line);
  margin-left: -2px;
  transition: all .18s;
}
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }

/* ========== PRODUCT HERO ========== */
.product-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
  margin: 22px 0 34px;
}

.product-img-wrap {
  flex: 0 0 300px;
  max-width: 100%;
  background: radial-gradient(circle at 50% 40%, #16203a, #0c1424);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-img-wrap img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
}

.product-img-wrap .img-caption {
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 12px;
}

.verdict-box {
  flex: 1 1 340px;
  min-width: 0;
  background: linear-gradient(155deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verdict-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.verdict-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.verdict-value.good { color: var(--success); background: var(--success-bg); border: 1px solid var(--success-border); }
.verdict-value.mid  { color: var(--warn);   background: var(--warn-bg);   border: 1px solid var(--warn-border); }

.verdict-box .lead { margin: 0 0 14px; font-size: 1.02rem; }

.verdict-meter {
  height: 7px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.verdict-meter i {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 99px;
  width: 0;
  transition: width 1.1s cubic-bezier(.22,.8,.32,1);
}

.verdict-note { font-size: 0.8rem; color: var(--faint); margin: 0; }

/* ========== LISTS ========== */
main ul:not(.clean) { padding-left: 1.3rem; }
main ul li { margin-bottom: 7px; color: var(--muted); }
main ul li::marker { color: var(--accent); }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 9px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 5px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

/* ========== SPEC TABLE ========== */
table.spec {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.93rem;
  margin: 14px 0 24px;
  box-shadow: var(--shadow);
}

.spec th, .spec td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.spec tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }

.spec th {
  width: 32%;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(34, 211, 238, 0.04);
}

.spec td { color: var(--muted); }

/* ========== INSTALLER VOICE ========== */
.field-note {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.07), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 16px 0 26px;
  color: #c9d5e8;
  font-size: 1.01rem;
}
.field-note p { margin: 0 0 1em; }
.field-note p:last-child { margin-bottom: 0; }

.field-note .who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.who svg { width: 17px; height: 17px; }

/* ========== PROS / CONS ========== */
.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 22px 0 30px;
}

.pros, .cons {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid;
}

.pros { background: var(--success-bg); border-color: var(--success-border); }
.cons { background: var(--danger-bg);  border-color: var(--danger-border); }

.pros strong, .cons strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pros strong { color: var(--success); }
.cons strong { color: var(--danger); }

.pros strong::before, .cons strong::before {
  content: "";
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pros strong::before {
  background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
  border: 1px solid var(--success-border);
}
.cons strong::before {
  background: var(--danger-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid var(--danger-border);
}

.pros ul, .cons ul { list-style: none; padding-left: 0 !important; margin: 0; }
.pros li, .cons li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.93rem;
}
.pros li::before { content: "+"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cons li::before  { content: "−"; position: absolute; left: 0; color: var(--danger);  font-weight: 700; }

/* ========== NOTE / TODO / DISCLOSE ========== */
.disclose {
  font-size: 0.87rem;
  color: var(--faint);
  border-left: 3px solid #2b3a55;
  padding-left: 14px;
  margin: 26px 0;
}

.note-verify {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin: 16px 0;
  font-size: 0.92rem;
  color: #fcd34d;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.note-verify svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.note-verify strong { display: block; margin-bottom: 3px; }

/* ========== BUY PANEL ========== */
.buy {
  background: linear-gradient(155deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.buy > strong, .buy .buy-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.buy ul { margin: 0 0 6px; }

.buy .affiliate-note {
  font-size: 0.82rem;
  color: var(--faint);
  margin: 12px 0 0;
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(120deg, #f7b733, #e8960f);
  color: #1a1205;
  border-radius: 11px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 6px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(247, 183, 51, 0.22);
}
.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(247, 183, 51, 0.35);
  color: #1a1205;
}

.btn-amazon .btn-icon svg { width: 22px; height: 22px; }
.btn-amazon .btn-text { display: flex; flex-direction: column; line-height: 1.25; }
.btn-amazon .btn-main { font-size: 0.97rem; }
.btn-amazon .btn-sub { font-size: 0.74rem; font-weight: 500; opacity: 0.75; }

.buy-secondary { font-size: 0.84rem; color: var(--faint); }

/* ========== RELATED ========== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0 8px;
}

.related-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.related-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}
.related-card img {
  width: 64px; height: 64px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 42%, #16203a, #0c1424);
  border-radius: 9px;
  padding: 5px;
  flex-shrink: 0;
}
.related-card .r-title { font-weight: 600; color: #eef3fb; font-size: 0.95rem; line-height: 1.3; }
.related-card .r-cat { font-size: 0.75rem; color: var(--faint); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ========== COMMENTS ========== */
.comments {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.comment-form form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.comment-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 6px;
}
.comment-form label:first-child { margin-top: 0; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.comment-form textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  margin-top: 18px;
  background: var(--grad);
  color: #04121a;
  border: none;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.25);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(34, 211, 238, 0.4); }
.btn-submit:active { transform: translateY(0); }

.comment-note { font-size: 0.84rem; color: var(--faint); margin-top: 12px; }

.comment-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }

.comment-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  animation: fadeUp .4s ease both;
}
.comment-item .c-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.comment-item .c-name { font-weight: 700; color: #eef3fb; font-size: 0.95rem; }
.comment-item .c-date { font-size: 0.78rem; color: var(--faint); }
.comment-item .c-body { margin: 0; color: var(--muted); font-size: 0.94rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== BACK TO TOP / TOAST ========== */
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow), var(--glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 250;
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top svg { width: 19px; height: 19px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 90px);
  background: var(--card-2);
  border: 1px solid var(--success-border);
  color: var(--ink);
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  z-index: 400;
  transition: transform .35s cubic-bezier(.22,.8,.32,1);
  max-width: min(480px, calc(100vw - 40px));
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.warn { border-color: var(--warn-border); }

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.32,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--header-bg);
  padding: 44px 0 30px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 26px;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo img { width: 34px; height: 34px; border-radius: 9px; }
.footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--faint);
}
.footer-bottom p { margin: 0.4em 0; }

/* ========== AFFILIATE PAGE ========== */
.legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.legal-card p { color: var(--muted); }
.legal-card p:first-child { margin-top: 0; }
.legal-card p:last-child { margin-bottom: 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .review-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 10, 20, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    gap: 4px;
    backdrop-filter: blur(14px);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }

  main { padding: 26px 0 56px; }
  .hero { padding: 30px 0 6px; }
  .grid { gap: 16px; }
  .card { padding: 18px; }
  .spec th { width: 40%; font-size: 0.78rem; }
  .product-hero { flex-direction: column; }
  .product-img-wrap { flex: 1 1 100%; }
  .btn-amazon { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .field-note { padding: 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ========== USATO SU EBAY ========== */
.buy-used {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px dashed rgba(34, 211, 238, 0.45);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.06);
}
.buy-used > strong { display: block; margin-bottom: 4px; color: #eef3fb; }
.buy-used p { margin: 0; }
.card:not(:has(.card-img)) { min-height: 0; }
.card[data-cat="teltonika"] { align-self: start; }

/* ========== FIX ICONE SVG (dimensioni esplicite) ========== */
.review-meta svg { width: 15px; height: 15px; flex-shrink: 0; vertical-align: -2px; }
.btn-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.verdict-value svg { width: 20px; height: 20px; flex-shrink: 0; }
.review-meta { display: flex; align-items: center; gap: 6px; }
main svg:not([class]):not([width]) { max-width: 1.5em; max-height: 1.5em; }
.card:not(:has(.card-img)) { align-self: start; }
