/* claudiosilvestri.it - simple modern theme */

:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-alt: #f0f1fa;
  --ink: #191a34;
  --ink-soft: #55587a;
  --border: #e5e7f4;
  --primary: #4b3bf0;
  --primary-dark: #2f2299;
  --blue: #2e6ff2;
  --gold: #f5a524;
  --gold-dark: #c9820d;
  --teal: #0fac9b;
  --danger: #d64545;
  --danger-bg: #fdeeee;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(25, 26, 52, 0.18);
  --max-w: 1080px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.brand-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav.site-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 0 1 auto;
  min-width: 0;
}
nav.site-nav::-webkit-scrollbar { display: none; }
nav.site-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
}
nav.site-nav a:hover { background: var(--surface-alt); color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--blue));
  color: #fff;
  padding: 44px 0 40px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: #fff; margin: 0 0 14px; }
.hero p.lead { font-size: 1.05rem; color: #e7e8fb; margin: 0 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #241300; box-shadow: 0 10px 22px -8px rgba(245, 165, 36, 0.55); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

/* Author byline */
.byline {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.byline .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.byline img.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--surface-alt); }
.byline-text { font-size: 0.9rem; color: var(--ink-soft); }
.byline-text strong { color: var(--ink); }
.byline-text a { color: var(--primary); font-weight: 600; text-decoration: none; }
.byline-text a:hover { text-decoration: underline; }

/* Toplist */
.toplist-section {
  background: var(--surface);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.toplist-section h2 { font-size: 1.5rem; margin: 0 0 6px; }
.toplist-section .subtitle { color: var(--ink-soft); margin: 0 0 20px; max-width: 62ch; }
.toplist-card {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
}

/* Article */
main { padding: 8px 0 10px; }
section.block { padding: 38px 0; }
section.block.alt { background: var(--surface); }
section.block h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
  padding-top: 4px;
}
section.block h3 { font-size: 1.15rem; margin: 24px 0 10px; }
section.block p { margin: 0 0 14px; color: var(--ink); max-width: 74ch; }
section.block ul, section.block ol { margin: 0 0 16px; padding-left: 0; list-style: none; max-width: 74ch; }
section.block ul li, section.block ol li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
section.block ul li:last-child, section.block ol li:last-child { border-bottom: none; }
section.block ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}
.section-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0 26px;
  max-width: 74ch;
}
.section-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Featured brand cards */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
  margin-top: 8px;
}
.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.brand-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.brand-card-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; }
.brand-card-rating {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: #fff4de;
  padding: 3px 9px;
  border-radius: 999px;
  flex: none;
}
.brand-card-bonus { color: var(--teal); font-weight: 700; margin: 0 0 12px; }
.brand-card-features {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}
.brand-card-features li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: none;
}
.brand-card-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.brand-card-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.brand-card-proscons .pc strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.pc-pro strong { color: var(--teal); }
.pc-con strong { color: var(--danger); }
.brand-card-proscons ul { margin: 0; padding-left: 16px; list-style: disc; }
.brand-card-proscons li { font-size: 0.82rem; color: var(--ink-soft); padding: 2px 0; line-height: 1.4; }
.brand-card-cta { margin-top: auto; }

@media (max-width: 700px) {
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card-proscons { grid-template-columns: 1fr; }
}

/* Callouts */
.callout {
  border-radius: var(--radius-md);
  padding: 20px 22px;
  max-width: 74ch;
  margin: 0 0 16px;
}
.callout.warning { background: var(--danger-bg); border: 1px solid #f6c9c9; }
.callout.warning ul li::before { background: var(--danger); }
.callout.good { background: #eafaf3; border: 1px solid #bfe9d4; }
.callout.good ul li::before { background: var(--teal); }
.callout ul { margin-bottom: 0; }
.callout ul li { border-bottom: 1px solid rgba(0,0,0,0.06); }

/* Trust / author card */
.trust-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 20px 0;
  max-width: 74ch;
  flex-wrap: wrap;
}
.trust-card img.portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: var(--shadow); }
.trust-card .trust-body { flex: 1; min-width: 220px; }
.trust-card .trust-body strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.trust-card .trust-body .role { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 10px; }

/* FAQ */
.faq-section { background: var(--surface); }
details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 18px;
  margin-bottom: 12px;
  max-width: 74ch;
  background: var(--bg);
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  flex: none;
}
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item p { padding-bottom: 16px; margin: 0; }

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--blue));
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #e7e8fb; max-width: 62ch; margin: 0 auto 22px; }

/* Footer */
footer.site-footer {
  background: #14152b;
  color: #c7c8e0;
  padding: 34px 0 26px;
  font-size: 0.88rem;
}
footer.site-footer .foot-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
footer.site-footer .brand-name { color: #fff; }
footer.site-footer a { color: #b9baf2; }
footer.site-footer .disclaimer { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; color: #9293b5; line-height: 1.6; }
footer.site-footer .age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #9293b5;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 8px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .trust-card { flex-direction: column; }
}
@media (max-width: 560px) {
  .brand-tag { display: none; }
  nav.site-nav a { font-size: 0.84rem; padding: 7px 8px; }
  section.block { padding: 28px 0; }
  .hero { padding: 32px 0 28px; }
}
@media (max-width: 480px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
  .brand { flex: 1 1 auto; }
  .brand-name { overflow: visible; text-overflow: clip; }
  nav.site-nav { flex: 1 1 100%; width: 100%; justify-content: flex-start; }
}
