/* ZYNGuida — style.css */
:root {
  --bg:        #0f172a;
  --bg-card:   #1e293b;
  --bg-muted:  #172033;
  --purple:    #7c3aed;
  --purple-lt: #a78bfa;
  --purple-dk: #5b21b6;
  --white:     #f8fafc;
  --muted:     #94a3b8;
  --border:    #2d3d5a;
  --gold:      #f59e0b;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(124,58,237,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: rgba(15,23,42,.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.5px;
}

.logo span { color: var(--purple-lt); }

nav { display: flex; gap: .15rem; flex-wrap: wrap; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .65rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(124,58,237,.2);
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.25rem 4rem;
  text-align: center;
  background: linear-gradient(145deg, #0f172a 0%, #1a1040 50%, #0f172a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124,58,237,.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,.18);
  border: 1px solid rgba(124,58,237,.4);
  color: var(--purple-lt);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 1.2rem;
  letter-spacing: -.02em;
}

.hero h1 em { color: var(--purple-lt); font-style: normal; }

.hero p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  box-shadow: var(--shadow);
}

.hero-cta:hover { background: var(--purple-dk); transform: translateY(-2px); }

.hero-img {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

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

/* ── MAIN LAYOUT ── */
main { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }

/* ── SECTIONS ── */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.8rem;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: .1em;
  width: 4px; height: 1em;
  background: var(--purple);
  border-radius: 2px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card img { width: 100%; height: 180px; object-fit: cover; display: block; }

.card-body { padding: 1.25rem; }

.card-tag {
  display: inline-block;
  background: rgba(124,58,237,.15);
  color: var(--purple-lt);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .6rem;
}

.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }

.card p { font-size: .88rem; color: #cbd5e1; }

.card a {
  display: inline-block;
  margin-top: .85rem;
  color: var(--purple-lt);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.card a:hover { text-decoration: underline; }

/* ── FLAVOR GRID ── */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.flavor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: box-shadow .2s, transform .2s;
}

.flavor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.flavor-name { font-size: 1.05rem; font-weight: 700; }

.flavor-desc { font-size: .87rem; color: #cbd5e1; flex: 1; }

.stars { color: var(--gold); font-size: .95rem; letter-spacing: .05em; }

.strength-badge {
  display: inline-block;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  color: var(--purple-lt);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 20px;
}

/* ── COMPARISON TABLE ── */
.table-wrap { overflow-x: auto; margin-bottom: 3rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 540px;
}

thead {
  background: rgba(124,58,237,.2);
  border-bottom: 2px solid var(--purple);
}

thead th {
  padding: .9rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--purple-lt);
}

tbody tr { border-bottom: 1px solid var(--border); }

tbody tr:hover { background: rgba(124,58,237,.06); }

tbody td { padding: .85rem 1rem; vertical-align: top; }

tbody td strong { color: var(--purple-lt); }

/* ── REVIEWS ── */
.review-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }

.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-meta { flex: 1; }

.review-name { font-weight: 700; font-size: .95rem; }

.review-date { font-size: .78rem; color: var(--muted); }

.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: .5rem; }

.review-text { font-size: .92rem; color: #cbd5e1; line-height: 1.65; }

/* ── NOTA REDAZIONE ── */
.nota-redazione {
  background: rgba(124,58,237,.08);
  border-left: 4px solid var(--purple);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-size: .88rem;
  color: #cbd5e1;
}

.nota-redazione strong { color: var(--purple-lt); }

/* ── INFO BOX ── */
.info-box {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}

.info-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: .7rem; color: var(--purple-lt); }

.info-box ul { padding-left: 1.2rem; }

.info-box li { margin-bottom: .4rem; font-size: .9rem; color: #cbd5e1; }

/* ── STRENGTHS ── */
.strength-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
}

.strength-label { font-weight: 700; min-width: 120px; }

.strength-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }

.strength-bar { height: 100%; background: var(--purple); border-radius: 4px; }

.strength-mg { font-size: .85rem; color: var(--muted); min-width: 64px; text-align: right; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, rgba(124,58,237,.15) 0%, rgba(91,33,182,.2) 100%);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-section h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .75rem; }

.cta-section p { color: #cbd5e1; margin-bottom: 1.75rem; max-width: 520px; margin-left: auto; margin-right: auto; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--purple-dk); transform: translateY(-2px); }

/* ── RISORSE ── */
.risorse-section {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 3rem 0;
}

.risorse-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

.risorse-section ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }

.risorse-section a {
  color: var(--purple-lt);
  text-decoration: none;
  font-size: .88rem;
  border: 1px solid rgba(124,58,237,.3);
  padding: .3rem .75rem;
  border-radius: 20px;
  transition: background .2s;
}

.risorse-section a:hover { background: rgba(124,58,237,.15); }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

.breadcrumb a { color: var(--purple-lt); text-decoration: none; }

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span { opacity: .5; }

/* ── AUTHOR ── */
.author-line {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.author-line strong { color: #e2e8f0; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 3.5rem 1.25rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.page-hero h1 em { color: var(--purple-lt); font-style: normal; }

.page-hero p { font-size: 1rem; color: #cbd5e1; max-width: 620px; }

/* ── FOOTER ── */
footer {
  background: rgba(15,23,42,.97);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
}

footer .footer-inner { max-width: 1100px; margin: 0 auto; }

footer a { color: var(--purple-lt); text-decoration: none; }

footer a:hover { text-decoration: underline; }

footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1rem; }

/* ── WINNER / VERDICT TAG ── */
.verdict {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
  nav { gap: .1rem; }
  nav a { font-size: .78rem; padding: .3rem .5rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .page-hero { padding: 2.5rem 1rem 1.5rem; }
  main { padding: 2rem 1rem 3rem; }
  .strength-row { flex-wrap: wrap; }
  .strength-bar-wrap { width: 100%; order: 3; }
}
