/* AlternativeGratis.it — editorial utilitarian */
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Italic-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf8f3;          /* warm off-white */
  --surface: #ffffff;
  --surface-alt: #f3efe6;
  --border: #e8e2d3;
  --border-strong: #d6ceb8;
  --ink: #171513;          /* near-black */
  --ink-2: #3a362e;
  --ink-3: #6b6558;
  --ink-4: #9a9485;
  --accent: #047857;       /* emerald-700 */
  --accent-hover: #065f46;
  --accent-soft: #ecfdf5;
  --free: #16a34a;         /* green-600 */
  --free-bg: #dcfce7;
  --oss: #1d4ed8;          /* blue-700 */
  --oss-bg: #dbeafe;
  --freemium: #c2410c;     /* orange-700 */
  --freemium-bg: #ffedd5;
  --star: #d97706;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.serif { font-family: 'Instrument Serif', 'Source Serif Pro', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-2px); }
.brand .tld { color: var(--ink-3); font-weight: 500; }
.header-nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.header-nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.header-nav a:hover { color: var(--ink); text-decoration: none; }
.header-nav a.active { color: var(--accent); }
@media (max-width: 640px) {
  .header-nav { gap: 16px; }
  .header-nav a.hide-sm { display: none; }
}

/* ---------- Search ---------- */
.searchbar {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 0 14px; height: 52px;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.12); }
.searchbar svg { color: var(--ink-3); flex-shrink: 0; }
.searchbar input {
  border: 0; background: transparent; outline: none;
  flex: 1; font: inherit; font-size: 16px; color: var(--ink);
  padding: 0 12px; min-width: 0;
}
.searchbar input::placeholder { color: var(--ink-4); }
.searchbar-lg { height: 64px; padding: 0 18px; border-radius: 14px; }
.searchbar-lg input { font-size: 18px; }

.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(23, 21, 19, 0.12);
  max-height: 400px; overflow-y: auto; z-index: 20;
}
.search-result {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; color: var(--ink);
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result.highlighted { background: var(--surface-alt); text-decoration: none; }
.search-result-name { font-weight: 600; font-size: 15px; }
.search-result-cat { color: var(--ink-3); font-size: 13px; margin-left: auto; }
.search-empty { padding: 20px; color: var(--ink-3); font-size: 14px; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead {
  font-size: 18px; color: var(--ink-2);
  max-width: 600px; margin: 0 auto 36px;
}
.hero .searchbar { max-width: 620px; margin: 0 auto; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.hero-pill {
  font-size: 13.5px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
}
.hero-pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); text-decoration: none; }
.hero-pill span { color: var(--ink-4); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-header h2 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.01em;
  margin: 0; color: var(--ink);
}
.section-header .link { font-size: 14.5px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.section-intro { font-size: 16.5px; color: var(--ink-2); margin: -16px 0 28px; max-width: 620px; }

/* ---------- Categories grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 18px 16px;
  color: var(--ink); min-height: 120px;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.cat-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(23,21,19,0.04); }
.cat-icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.cat-name { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.cat-count { font-size: 13px; color: var(--ink-3); }
.cat-count strong { color: var(--ink-2); font-weight: 600; }

/* ---------- Software cards (grid) ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sw-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--ink);
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.sw-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(23,21,19,0.04); }
.sw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sw-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-alt); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.sw-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.sw-card .cat-tag { font-size: 12.5px; color: var(--ink-3); }
.sw-card .desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--ink-3); }
.sw-card-foot strong { color: var(--ink); font-weight: 600; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  line-height: 1.4;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-free { color: var(--free); background: var(--free-bg); }
.badge-oss { color: var(--oss); background: var(--oss-bg); }
.badge-freemium { color: var(--freemium); background: var(--freemium-bg); }
.badge-neutral { color: var(--ink-2); background: var(--surface-alt); text-transform: none; font-weight: 500; letter-spacing: 0; }

/* ---------- Platform icons ---------- */
.platforms { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.platform {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--surface-alt); color: var(--ink-2);
  font-size: 13px;
}
.platform[title="Windows"] { background: #eaf2fb; color: #1e5a9c; }
.platform[title="Mac"] { background: #efeae6; color: #3a2a1a; }
.platform[title="Linux"] { background: #fff3df; color: #9a5d00; }
.platform[title="Web"] { background: #e8f3ef; color: #1b6b52; }
.platform[title="iOS"] { background: #f1edf6; color: #4a3a6c; }
.platform[title="Android"] { background: #e9f2e7; color: #2c6a2c; }

/* ---------- Software detail ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--ink-3); margin: 24px 0 12px; }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { margin: 0 8px; color: var(--ink-4); }

.sw-hero { padding: 8px 0 36px; }
.sw-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.sw-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.05;
  margin: 0 0 12px;
}
.sw-hero h1 em { font-style: italic; color: var(--accent); }
.sw-hero .sub { font-size: 17px; color: var(--ink-2); max-width: 680px; margin: 0 0 28px; }

/* Related software (internal linking, SEO) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s, background .15s;
}
.related-card:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}
.related-card .related-text { flex: 1; min-width: 0; }
.related-card .related-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-card .related-meta {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.related-card svg { flex-shrink: 0; color: var(--ink-3); }
.related-card:hover svg { color: var(--accent); }

.principale {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  align-items: start;
}
.principale .sw-logo { width: 56px; height: 56px; border-radius: 12px; font-size: 22px; }
.principale h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.principale .meta { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.principale .meta strong { color: var(--ink-2); font-weight: 600; }
.principale .row { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 10px; font-size: 14px; }
.principale .row .k { color: var(--ink-3); font-weight: 500; margin-right: 6px; }
.principale .why { margin-top: 14px; padding: 12px 14px; background: var(--surface-alt); border-radius: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.principale .why strong { color: var(--ink); }
@media (max-width: 600px) {
  .principale { grid-template-columns: 1fr; padding: 20px; }
}

/* ---------- Alternative card ---------- */
.alt-list { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.alt-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  display: grid; grid-template-columns: 1fr; gap: 16px;
  position: relative;
}
.alt-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.alt-head .sw-logo { width: 48px; height: 48px; border-radius: 10px; font-size: 19px; }
.alt-titlewrap { flex: 1; min-width: 180px; }
.alt-titlewrap h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: var(--ink); }
.alt-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.alt-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--star); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.stars .empty { color: var(--border-strong); }
.alt-desc { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 0; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }
.pros, .cons { border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.pros { background: #f0fbf4; border: 1px solid #c7ecd2; }
.cons { background: #fff7ed; border: 1px solid #fde1c1; }
.pros .head, .cons .head { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.pros .head { color: #15803d; }
.cons .head { color: #c2410c; }

.ideale {
  background: linear-gradient(180deg, #fdfbf5 0%, #f8f3e6 100%);
  border: 1px solid #e9dfbf;
  border-radius: 12px; padding: 12px 16px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
}
.ideale strong { color: var(--ink); font-weight: 600; }

.alt-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.alt-foot-meta { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent;
  transition: background .12s, transform .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.compare th { font-weight: 600; font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface-alt); }
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:first-child, table.compare th:first-child { padding-left: 20px; }
table.compare .nm { font-weight: 600; color: var(--ink); }
table.compare .check { color: var(--free); font-weight: 700; }
table.compare .dash { color: var(--ink-4); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 24px; color: var(--ink-3); line-height: 1; transition: transform .15s; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 40px 0 28px;
  margin-top: 80px;
}
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; } .footer-cols > :first-child { grid-column: span 2; } }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 0 0 12px; font-weight: 600; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-3); gap: 16px; flex-wrap: wrap; }

/* ---------- Filters (all software page) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.filter-pill {
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: all .12s;
}
.filter-pill:hover { border-color: var(--border-strong); }
.filter-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.row-gap-lg > * + * { margin-top: 24px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ---------- Verdict box ---------- */
.verdict {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0; border-radius: 16px;
  padding: 20px 24px;
}
.verdict-label {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #047857; background: #fff; border: 1px solid #a7f3d0;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.verdict-body { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Conversion hero (above-the-fold compare) ---------- */
.vs-hero {
  position: relative;
  background: linear-gradient(180deg, #fffaf0 0%, #fef3e7 100%);
  border: 1px solid #f5d9b0;
  border-radius: 20px;
  padding: 24px;
  margin: 8px 0 20px;
  box-shadow: 0 10px 40px rgba(194, 65, 12, 0.06);
}
.vs-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.vs-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: #7c2d12; color: #fff;
  padding: 5px 11px; border-radius: 999px;
}
.vs-updated { font-size: 13px; color: var(--ink-3); }

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 720px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-arrow-cell { display: none; }
  .vs-mobile-arrow { display: flex !important; }
}

.vs-card {
  background: #fff; border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border);
  min-width: 0;
}
.vs-card.paid { border-color: #fdba74; }
.vs-card.free { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(4, 120, 87, 0.15); position: relative; }
.vs-card-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.vs-card.paid .vs-card-label { color: #c2410c; }
.vs-card.free .vs-card-label { color: var(--accent); }
.vs-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vs-card-head h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.vs-price {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); font-weight: 400;
}
.vs-card.paid .vs-price { color: #9a3412; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #c2410c; }
.vs-card.free .vs-price { color: var(--accent); }
.vs-price small { font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--ink-3); font-weight: 500; text-decoration: none; margin-left: 4px; }
.vs-card.paid .vs-price small { color: #9a3412; }
.vs-perks { font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.vs-perks .perk { display: inline-flex; align-items: center; gap: 6px; }
.vs-perks .perk.good { color: #065f46; }
.vs-perks .perk.bad { color: #9a3412; }
.vs-card .cta { margin-top: auto; }
.vs-arrow-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 8px; min-width: 100px;
}
.vs-mobile-arrow {
  display: none;
  justify-content: center; align-items: center; padding: 4px 0;
}
.vs-save {
  display: inline-flex; flex-direction: column; align-items: center;
  background: #16a34a; color: #fff;
  padding: 10px 14px; border-radius: 12px;
  font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
  transform: rotate(-3deg);
}
.vs-save .amt { font-size: 22px; line-height: 1; }
.vs-save .period { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; margin-top: 3px; font-weight: 600; }
.vs-arrow-svg { color: #16a34a; margin: 10px 0; }

.vs-summary {
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed #f5d9b0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 640px) { .vs-summary { grid-template-columns: 1fr; gap: 12px; } }
.vs-summary-cell h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); margin: 0 0 6px;
}
.vs-summary-cell p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.vs-summary-cell strong { color: var(--ink); font-weight: 600; }

/* ---------- Featured alternative (#1) ---------- */
.alt-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 10px 30px rgba(4, 120, 87, 0.08);
}
.alt-card.featured::before {
  content: 'Migliore scelta';
  position: absolute; top: -12px; left: 20px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 6px;
}
.save-inline {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dcfce7; color: #166534;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}

/* ---------- Editorial ---------- */
.editorial { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 720px; }
.editorial p { margin: 0 0 14px; }
.editorial ul { padding-left: 22px; margin: 0 0 14px; }
.editorial li { margin-bottom: 10px; }
.editorial strong { color: var(--ink); font-weight: 600; }

/* ---------- Prose (static pages) ---------- */
.prose { color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 720px; }
.prose h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.015em; margin: 0 0 20px; color: var(--ink); line-height: 1.05; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 32px 0 12px; color: var(--ink); }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { font-weight: 500; }
