/* ════════════════════════════════════════════
   AI Daily Italia — Design System v2.1
   Dark + Light mode con toggle
════════════════════════════════════════════ */

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

/* ── DARK MODE (default) ── */
:root {
  --bg:            #08080e;
  --bg-elevated:   #0d0d16;
  --surface:       #111120;
  --surface2:      #181828;
  --surface3:      #1e1e32;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.14);
  --border-accent: rgba(123,116,255,0.35);
  --text:          #eeeef5;
  --text-muted:    #9090b0;
  --text-dim:      #50506a;
  --accent:        #7b74ff;
  --accent-2:      #a78bfa;
  --accent-soft:   rgba(123,116,255,0.10);
  --accent-glow:   rgba(123,116,255,0.20);
  --accent-grad:   linear-gradient(135deg, #7b74ff, #a78bfa);
  --green:         #34d399;
  --green-soft:    rgba(52,211,153,0.10);
  --amber:         #fbbf24;
  --amber-soft:    rgba(251,191,36,0.10);
  --red:           #f87171;
  --red-soft:      rgba(248,113,113,0.10);
  --cyan:          #38bdf8;
  --cyan-soft:     rgba(56,189,248,0.10);
  --pink:          #f472b6;
  --pink-soft:     rgba(244,114,182,0.10);
  --purple:        #c084fc;
  --purple-soft:   rgba(192,132,252,0.10);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.5);
  --nav-bg:        rgba(8,8,14,0.82);
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg:            #f8f8fc;
  --bg-elevated:   #f0f0f8;
  --surface:       #ffffff;
  --surface2:      #f4f4fb;
  --surface3:      #ebebf6;
  --border:        rgba(0,0,0,0.08);
  --border-hover:  rgba(0,0,0,0.15);
  --border-accent: rgba(100,90,240,0.30);
  --text:          #111128;
  --text-muted:    #555575;
  --text-dim:      #9999bb;
  --accent:        #5b52ee;
  --accent-2:      #8b7cf6;
  --accent-soft:   rgba(91,82,238,0.08);
  --accent-glow:   rgba(91,82,238,0.15);
  --accent-grad:   linear-gradient(135deg, #5b52ee, #8b7cf6);
  --green:         #059669;
  --green-soft:    rgba(5,150,105,0.08);
  --amber:         #d97706;
  --amber-soft:    rgba(217,119,6,0.08);
  --red:           #dc2626;
  --red-soft:      rgba(220,38,38,0.08);
  --cyan:          #0284c7;
  --cyan-soft:     rgba(2,132,199,0.08);
  --pink:          #db2777;
  --pink-soft:     rgba(219,39,119,0.08);
  --purple:        #7c3aed;
  --purple-soft:   rgba(124,58,237,0.08);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --nav-bg:        rgba(248,248,252,0.88);
}

/* ── Variabili strutturali (invariate tra temi) ── */
:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ════ NAVIGAZIONE ════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text-muted); background: var(--surface2); }
.nav-link.active { color: var(--text); background: var(--surface2); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.badge-live {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}
[data-theme="light"] .badge-live { border-color: rgba(5,150,105,0.25); }
.badge-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

/* Toggle tema */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--border-accent); color: var(--accent); background: var(--accent-soft); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.btn-admin {
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-admin:hover { border-color: var(--border-accent); color: var(--accent); background: var(--accent-soft); }

/* ════ HERO ════ */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 28px 56px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center top, rgba(123,116,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse at center top, rgba(91,82,238,0.05) 0%, transparent 70%);
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  background: var(--accent-soft);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-title em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  width: fit-content;
  background: var(--surface);
}
.stat { padding: 16px 28px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-dim); }

/* ════ TICKER ════ */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 42px;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  overflow: hidden;
}
.ticker-label {
  background: var(--accent-grad);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
/* Contenitore che delimita lo spazio della traccia scorrevole */
.ticker-outer {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  padding: 0 20px;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-item { font-size: 13px; color: var(--text-muted); transition: color 0.15s; flex-shrink: 0; }
.ticker-item:hover { color: var(--text); }
.ticker-dot { color: var(--accent); margin-right: 10px; }

/* ════ LAYOUT ════ */
.main-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 52px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 52px;
}
@media(max-width:960px) { .main-grid { grid-template-columns: 1fr; } }

.section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after { content:''; flex:1; height:1px; background: var(--border); }

/* ════ CARD ARTICOLI ════ */
.articles { display: flex; flex-direction: column; gap: 2px; }
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: block;
  margin-bottom: 2px;
}
.article-card:hover {
  border-color: var(--border-hover);
  background: var(--surface2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.article-card.featured {
  background: var(--surface);
  border-color: var(--border-accent);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.article-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-grad);
}
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.category-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.tag-modelli  { background: var(--accent-soft); color: var(--accent); }
.tag-tool     { background: var(--green-soft);  color: var(--green);  }
.tag-business { background: var(--amber-soft);  color: var(--amber);  }
.tag-ricerca  { background: var(--cyan-soft);   color: var(--cyan);   }
.tag-creator  { background: var(--pink-soft);   color: var(--pink);   }
.tag-coding   { background: var(--purple-soft); color: var(--purple); }
.article-source { font-size: 12px; color: var(--text-dim); }
.article-time   { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.article-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.article-card.featured .article-title { font-size: 22px; letter-spacing: -0.02em; }
.article-summary { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.article-footer { display: flex; align-items: center; gap: 12px; }
.importance-bar { display: flex; gap: 3px; }
.imp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface3); }
.imp-dot.filled { background: var(--accent); }
.imp-dot.filled.high { background: var(--green); }
.article-link { font-size: 12px; color: var(--text-dim); margin-left: auto; transition: color 0.15s; }
.article-link:hover { color: var(--accent); }

/* ════ SIDEBAR ════ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: background 0.25s, border-color 0.25s;
}
.side-card-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.tool-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.tool-item:last-child { border-bottom: none; padding-bottom: 0; }
.tool-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.tool-info { flex: 1; min-width: 0; }
.tool-name { font-weight: 600; font-size: 14px; color: var(--text); }
.tool-desc { font-size: 12px; color: var(--text-muted); }
.tool-price { font-size: 11px; font-weight: 600; color: var(--green); margin-top: 2px; }
.tool-price.paid { color: var(--amber); }
.creator-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.creator-item:last-child { border-bottom: none; }
.creator-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.creator-name { font-size: 14px; font-weight: 500; color: var(--text); }
.creator-lang { font-size: 11px; color: var(--text-dim); }
.creator-badge { font-size: 10px; margin-left: auto; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* Newsletter */
.newsletter-box {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.newsletter-box h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.newsletter-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-dim); }
.newsletter-btn {
  padding: 9px 16px;
  background: var(--accent-grad);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.newsletter-btn:hover { opacity: 0.88; }

/* ════ PAGE HEADER ════ */
.page-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 52px 28px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-header h1 { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.page-header p { font-size: 16px; color: var(--text-muted); }

/* ════ TOOL DIRECTORY ════ */
.tools-wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px 80px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.tool-card-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tool-card-full:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tool-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tool-card-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.tool-card-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tool-card-cat { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.tool-card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.65; }
.tool-card-footer { display: flex; align-items: center; justify-content: space-between; }
.tool-price-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.price-free     { background: var(--green-soft);  color: var(--green); }
.price-paid     { background: var(--amber-soft);  color: var(--amber); }
.price-freemium { background: var(--cyan-soft);   color: var(--cyan);  }
.tool-card-link { font-size: 12px; color: var(--text-dim); transition: color 0.15s; }
.tool-card-link:hover { color: var(--accent); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--border-accent); }

/* ════ CREATOR ════ */
.creator-wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px 80px; }
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.creator-card-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color 0.2s;
}
.creator-card-full:hover { border-color: var(--border-hover); }
.creator-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.creator-av-lg { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.creator-card-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.creator-card-handle { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.creator-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.last-video { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.last-video-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 7px; }
.last-video-title { font-size: 13px; font-weight: 500; color: var(--accent); transition: color 0.15s; line-height: 1.4; }
.last-video-title:hover { color: var(--accent-2); }

/* ════ PAGINA ARTICOLO ════ */
.article-page { max-width: 740px; margin: 0 auto; padding: 52px 28px 100px; }
.article-page .breadcrumb { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.article-page .breadcrumb a:hover { color: var(--text-muted); }
.article-page h1 { font-family: var(--font-display); font-size: clamp(26px,4vw,40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; margin: 18px 0 24px; }
.article-page .article-body { font-size: 16px; color: var(--text-muted); line-height: 1.85; }
.article-page .article-body p { margin-bottom: 20px; }
.article-page h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text); margin: 32px 0 12px; letter-spacing: -0.015em; }
.article-page ul { padding-left: 22px; margin-bottom: 20px; }
.article-page li { margin-bottom: 9px; color: var(--text-muted); }
.source-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 28px; padding: 10px 18px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-md); font-size: 13px; font-weight: 500;
  transition: background 0.15s;
}
.source-link:hover { background: var(--accent-glow); }
.related-articles { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-link { display: block; font-size: 14px; color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--accent); }

/* ════ FOOTER ════ */
footer { border-top: 1px solid var(--border); margin-top: 80px; background: var(--bg-elevated); transition: background 0.25s; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 48px 28px 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 48px; margin-bottom: 36px; }
@media(max-width:640px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-desc { font-size: 13px; color: var(--text-dim); line-height: 1.65; max-width: 280px; }
.footer-col-title { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: var(--text-dim); transition: color 0.15s; }
.footer-links a:hover { color: var(--text-muted); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }

/* ════ EMPTY / TOAST ════ */
.empty { text-align: center; padding: 72px 28px; color: var(--text-muted); }
.empty-icon { font-size: 44px; margin-bottom: 18px; opacity: 0.25; }
.empty h3 { font-family: var(--font-display); font-size: 18px; color: var(--text); margin-bottom: 10px; }
.empty p { font-size: 14px; max-width: 340px; margin: 0 auto; line-height: 1.6; }
.toast { position: fixed; bottom: 28px; right: 28px; padding: 13px 20px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; z-index: 999; transform: translateY(80px); opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none; box-shadow: var(--shadow-md); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); color: #0a2018; }
.toast.error   { background: var(--red);   color: white; }
.toast.info    { background: var(--accent); color: white; }

/* ════ ADMIN ════ */
.admin-wrap { max-width: 1140px; margin: 0 auto; padding: 44px 28px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.admin-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.admin-tabs { display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px; margin-bottom: 32px; flex-wrap: wrap; }
.admin-tab { padding: 8px 18px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--text-dim); transition: all 0.15s; cursor: pointer; border: none; background: none; font-family: var(--font-body); }
.admin-tab.active, .admin-tab:hover { background: var(--surface2); color: var(--text); }
.fetch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.source-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }
.source-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.source-url { font-size: 11px; color: var(--text-dim); margin-bottom: 12px; word-break: break-all; }
.source-toggle { display: flex; align-items: center; justify-content: space-between; }
.toggle { position: relative; width: 36px; height: 20px; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--surface3); border-radius: 20px; cursor: pointer; transition: 0.2s; border: 1px solid var(--border); }
.toggle input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle-slider::before { content:''; position:absolute; width:14px; height:14px; left:2px; top:2px; background: white; border-radius: 50%; transition: 0.2s; }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }
.fetch-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: var(--accent-grad); color: white; border: none; border-radius: var(--r-md); font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 20px; transition: opacity 0.15s; font-family: var(--font-body); }
.fetch-btn:hover { opacity: 0.88; }
.fetch-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.progress-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; }
.progress-log { font-family: monospace; font-size: 12px; color: var(--text-muted); max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.log-line { display: flex; gap: 12px; }
.log-time { color: var(--text-dim); }
.log-ok   { color: var(--green); }
.log-err  { color: var(--red); }
.log-info { color: var(--cyan); }
.progress-bar-wrap { background: var(--surface3); border-radius: 4px; height: 4px; margin-top: 14px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent-grad); border-radius: 4px; transition: width 0.4s; }
.drafts-list { display: flex; flex-direction: column; gap: 14px; }
.draft-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.draft-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.draft-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.draft-summary { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.65; }
.draft-kp { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.draft-kp-item { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; }
.draft-kp-item::before { content: '→'; color: var(--accent); flex-shrink: 0; }
.draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-publish { padding: 8px 18px; background: var(--green); color: #fff; border: none; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity 0.15s; }
.btn-publish:hover { opacity: 0.88; }
.btn-reject { padding: 8px 18px; background: var(--red-soft); color: var(--red); border: 1px solid rgba(248,113,113,0.2); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-reject:hover { background: var(--red); color: white; }
.btn-edit { padding: 8px 18px; background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 13px; cursor: pointer; transition: color 0.15s; }
.btn-edit:hover { color: var(--text); }
.imp-badge { display: inline-flex; gap: 2px; }
.imp-pip { width: 4px; height: 12px; border-radius: 2px; background: var(--surface3); }
.imp-pip.on { background: var(--accent); }
.imp-pip.on.h { background: var(--green); }
.settings-section { margin-bottom: 36px; }
.settings-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 16px; flex-wrap: wrap; }
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 14px; font-weight: 500; }
.settings-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.settings-input { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 9px 13px; border-radius: var(--r-sm); font-size: 13px; width: 280px; outline: none; font-family: var(--font-body); transition: border-color 0.15s; }
.settings-input:focus { border-color: var(--accent); }
.save-btn { padding: 10px 24px; background: var(--accent-grad); color: white; border: none; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 20px; font-family: var(--font-body); transition: opacity 0.15s; }
.save-btn:hover { opacity: 0.88; }
.login-wrap { max-width: 420px; margin: 100px auto; padding: 0 28px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-md); }
.login-card h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 22px; letter-spacing: -0.01em; }
.login-card label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 7px; }
.login-card input { width: 100%; margin-bottom: 18px; }
.login-error { color: var(--red); font-size: 13px; margin-bottom: 14px; }
.toolbox { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tab-panel { display: none; }

/* ════ RESPONSIVE ════ */
/* ════ MOBILE RESPONSIVE ════ */
@media(max-width:768px) {
  /* Previeni overflow orizzontale globale */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { min-width: 0; }

  /* Navbar compatta su una sola riga */
  .nav-inner {
    padding: 0 14px;
    gap: 8px;
    height: 54px;
  }
  .logo-text { font-size: 15px; }
  .logo-icon { width: 26px; height: 26px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 5px 9px; font-size: 13px; }
  .badge-live { display: none; }
  .btn-admin { padding: 6px 10px; font-size: 12px; }
  .btn-admin span { display: none; }
  .theme-toggle { width: 30px; height: 30px; font-size: 14px; }

  /* Hero ridotto */
  .hero { padding: 36px 16px 28px; }
  .hero-label {
    font-size: 10px;
    padding: 3px 10px;
    white-space: normal;
    text-align: center;
  }
  .hero-title { font-size: 34px; letter-spacing: -0.02em; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  /* Statistiche hero nascoste su mobile (sono nella sidebar) */
  .hero-stats { display: none; }

  /* Ticker — fix accavallamento Breaking */
  .ticker-wrap { height: 38px; }
  .ticker-label {
    font-size: 9px;
    padding: 0 10px;
    letter-spacing: 0.06em;
    min-width: 72px;
    flex-shrink: 0;
  }
  .ticker-outer { overflow: hidden; }
  .ticker-track { gap: 36px; padding: 0 14px; }
  .ticker-item { font-size: 12px; }

  /* Filtri categoria — scroll orizzontale invece di wrap */
  .cat-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 6px;
  }
  .cat-filter-bar::-webkit-scrollbar { display: none; }
  .cat-filter-btn {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 12px;
  }
  .cat-filter-icon { font-size: 13px; }

  /* Layout principale — una colonna */
  .main-grid {
    grid-template-columns: 1fr;
    padding: 24px 14px 48px;
    gap: 32px;
  }

  /* Card articoli */
  .article-card { padding: 0; }
  .card-body { padding: 14px 16px; }
  .card-title { font-size: 15px; }
  .card-summary { font-size: 13px; }
  .card-date { display: none; }

  /* Sidebar mobile — orizzontale scorrevole per stats */
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .stat-box { padding: 10px 8px; }
  .stat-box-num { font-size: 18px; }
  .stat-box-label { font-size: 10px; }

  /* Tool of day */
  .tod-icon { font-size: 28px; }
  .tod-name { font-size: 16px; }

  /* Paginazione */
  .pagination { gap: 8px; }
  .page-btn { padding: 8px 14px; font-size: 12px; }
  .page-num { width: 32px; height: 32px; font-size: 12px; }

  /* Archivio tool */
  .tools-archive-section { padding: 40px 0; margin-top: 48px; }
  .tools-archive-inner { padding: 0 14px; }
  .tools-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tools-archive-title { font-size: 22px; }
  .tools-archive-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Page header */
  .page-header { padding: 28px 14px 18px; }
  .page-header h1 { font-size: 26px; }
  .tools-wrap, .creator-wrap { padding: 0 14px 48px; }
  .tools-grid { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: 1fr; }

  /* Articolo singolo */
  .article-page { padding: 28px 14px 60px; }
  .article-page h1 { font-size: 24px; }
  .article-page .article-body { font-size: 15px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding: 32px 14px 24px; }
}

@media(max-width:400px) {
  .nav-link:not(.active) { display: none; }
  .nav-link.active { display: block; }
  .hero-title { font-size: 28px; }
}

/* ════════════════════════════════════════════
   CARD ARTICOLI v2 — striscia categoria + badge
════════════════════════════════════════════ */
.articles { display: flex; flex-direction: column; gap: 10px; }

.article-card {
  background: var(--surface);
  border: 2.5px solid color-mix(in srgb, var(--cat-color, var(--accent)) 55%, transparent);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  text-decoration: none;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.card-stripe {
  width: 4px;
  flex-shrink: 0;
  background: var(--cat-color, var(--accent));
}

.card-body {
  padding: 18px 20px;
  flex: 1;
  min-width: 0;
}


.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.card-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--cat-bg, var(--accent-soft));
  color: var(--cat-text, var(--accent));
}
.card-source {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-source::before { content: "— "; color: var(--text-dim); }
.card-date {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.38;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-importance { display: flex; gap: 3px; align-items: center; }
.imp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.imp-dot.on  { background: var(--cat-color, var(--accent)); }
.imp-dot.off { background: var(--border); }

.card-readmore {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cat-color, var(--accent));
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   FILTRI CATEGORIA
════════════════════════════════════════════ */
.cat-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.cat-filter-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.cat-filter-btn:hover {
  border-color: var(--cat-color, var(--accent));
  color: var(--cat-color, var(--accent));
  background: var(--surface2);
}
.cat-filter-btn.active {
  background: var(--cat-bg, var(--accent-soft));
  border-color: var(--cat-color, var(--accent));
  color: var(--cat-text, var(--accent));
}
/* Bottone "Tutte" — nessun cat-color, usa accent di default */
.cat-filter-btn[data-cat=""].active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.cat-filter-btn[data-cat=""]:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-filter-icon { font-size: 15px; line-height: 1; }
.cat-filter-label { font-weight: 600; }
.cat-filter-count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  background: var(--surface3);
  color: var(--text-dim);
  margin-left: 2px;
}
.cat-filter-btn.active .cat-filter-count {
  background: var(--cat-color, var(--accent));
  color: white;
}
.cat-filter-btn[data-cat=""].active .cat-filter-count {
  background: var(--accent);
  color: white;
}

/* ── Light mode override per badge categoria ── */
[data-theme="light"] .card-badge {
  filter: none;
}
[data-theme="light"] .imp-dot.off { background: #ddd; }

/* ════════════════════════════════════════════
   PAGINAZIONE
════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.page-numbers { display: flex; gap: 4px; align-items: center; }
.page-num {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.page-num:hover { background: var(--surface2); color: var(--text); }
.page-num.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.page-dots { font-size: 13px; color: var(--text-dim); padding: 0 4px; }

/* ════════════════════════════════════════════
   SIDEBAR — STATISTICHE LIVE
════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.stat-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  text-align: center;
}
.stat-box-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-box-label { font-size: 11px; color: var(--text-dim); }
.last-update {
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ════════════════════════════════════════════
   SIDEBAR — TOOL AI DEL GIORNO
════════════════════════════════════════════ */
.tool-of-day {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  position: relative;
  overflow: hidden;
}
.tool-of-day::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.tod-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}
.tod-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.tod-cat {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.tod-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.tod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.tod-price {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.tod-price.free     { background: var(--green-soft);  color: var(--green); }
.tod-price.paid     { background: var(--amber-soft);  color: var(--amber); }
.tod-price.freemium { background: var(--cyan-soft);   color: var(--cyan);  }
.tod-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.15s;
}
.tod-link:hover { opacity: 0.75; }

/* ════════════════════════════════════════════
   SIDEBAR — TRENDING
════════════════════════════════════════════ */
.trending-list { display: flex; flex-direction: column; gap: 2px; }
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s;
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item:hover { opacity: 0.75; }
.trending-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  margin-top: 1px;
}
.trending-info { flex: 1; min-width: 0; }
.trending-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════
   SEZIONE ARCHIVIO TOOL (homepage)
════════════════════════════════════════════ */
.tools-archive-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  margin-top: 80px;
}
.tools-archive-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}
.tools-archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.tools-archive-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.tools-archive-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.tools-archive-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
}
.tools-archive-cta {
  padding: 10px 22px;
  border: 1px solid var(--border-accent);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.tools-archive-cta:hover { background: var(--accent); color: white; }

/* Griglia tool */
.tools-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.tool-archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-archive-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.tac-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tac-icon { font-size: 28px; line-height: 1; }
.tac-price {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tac-price.free     { background: var(--green-soft);  color: var(--green); }
.tac-price.paid     { background: var(--amber-soft);  color: var(--amber); }
.tac-price.freemium { background: var(--cyan-soft);   color: var(--cyan);  }
.tac-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tac-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tac-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 2px;
}

/* Bottone "Vedi tutti" in fondo */
.tools-archive-more {
  margin-top: 32px;
  text-align: center;
}
.tools-archive-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.tools-archive-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

@media(max-width:640px) {
  .tools-archive-section { padding: 48px 0; margin-top: 60px; }
  .tools-archive-inner { padding: 0 16px; }
  .tools-archive-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .tools-archive-header { flex-direction: column; align-items: flex-start; }
}
