/* ===========================================================
   farmaciadiurgnano.it — sharp, flat, no-gradient design system
   =========================================================== */

:root {
  --bg: #0c0d10;
  --bg-panel: #15171c;
  --bg-panel-alt: #1c1f26;
  --border: #2a2d35;
  --text: #f2f3f5;
  --text-dim: #a7acb8;
  --text-faint: #6b7080;
  --red: #d81324;
  --red-dark: #a30e1d;
  --gold: #d9a441;
  --green: #1f8a4c;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 3rem; }
h3 { font-size: 1.3rem; margin-top: 2rem; }
p { margin: 0 0 1.1em; color: var(--text-dim); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.logo .dot { color: var(--red); }
.logo-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
nav.main-nav a:hover { color: var(--red); text-decoration: none; }
nav.main-nav a.active { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(10, 11, 14, 0.88);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 780px; }
.hero .lead {
  color: var(--text);
  font-size: 1.15rem;
  max-width: 640px;
  margin-top: 1rem;
}
.hero-ctas { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Buttons (sharp corners, flat fill, no gradient) ---------- */
.btn {
  display: inline-block;
  border: 2px solid transparent;
  padding: 0.85rem 1.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 0;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--text-faint); color: var(--text); }
.btn-outline:hover { border-color: var(--white); color: var(--white); text-decoration: none; }

/* ---------- Sections ---------- */
main { padding: 3.5rem 0 2rem; }
section { margin-bottom: 3rem; }
.section-note {
  color: var(--text-faint);
  font-size: 0.9rem;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Toplist container ---------- */
.toplist-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin: 1.5rem 0 2rem;
}
.toplist-wrap h3 {
  margin-top: 0;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.disclaimer-badge {
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: 1rem;
}

/* ---------- Content image ---------- */
.figure {
  margin: 2rem 0;
  border: 1px solid var(--border);
}
.figure img { width: 100%; }
.figure figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  background: var(--bg-panel);
}

/* ---------- Lists ---------- */
ol.step-list, ul.plain-list {
  padding-left: 0;
  list-style: none;
  margin: 1.25rem 0;
}
ol.step-list li, ul.plain-list li {
  padding: 0.9rem 0 0.9rem 2.6rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
ol.step-list { counter-reset: step; }
ol.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
ul.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--gold);
}
ul.plain-list.cons li::before { background: var(--red); }
li strong { color: var(--white); }

/* ---------- Tables (stacked on mobile) ---------- */
.table-scroll { width: 100%; overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-panel);
  margin: 1.5rem 0;
}
table.data-table caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-faint);
  padding-bottom: 0.5rem;
}
table.data-table th, table.data-table td {
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-dim);
}
table.data-table thead th {
  background: var(--bg-panel-alt);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
table.data-table td.op-name, table.data-table td.op-name a {
  font-weight: 700;
  color: var(--white);
}
table.data-table td.op-name a { color: var(--gold); }

@media (max-width: 700px) {
  table.data-table thead { display: none; }
  table.data-table, table.data-table tbody, table.data-table tr, table.data-table td {
    display: block;
    width: 100%;
  }
  table.data-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
  }
  table.data-table td {
    border: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
  table.data-table td:last-child { border-bottom: none; }
  table.data-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
  }
}

/* ---------- Operator profile cards ---------- */
.operator-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin: 1.75rem 0;
}
.operator-card h3 { margin-top: 0; }
.operator-card .specs {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}
.operator-card .specs h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.operator-card .specs ul { margin: 0; padding-left: 0; list-style: none; }
.operator-card .specs li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-dim);
}
.operator-card .specs li:last-child { border-bottom: none; }
.operator-card .specs li strong { color: var(--white); }
.no-link-note {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Flow diagram (KYC / tax) ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.75rem 0;
}
.flow-step {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 1rem 1.1rem;
  flex: 1 1 200px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.flow-step strong { display: block; color: var(--white); margin-bottom: 0.3rem; font-family: 'Space Grotesk', sans-serif; }
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  flex: 0 0 auto;
}
.flow-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  flex: 1 1 100%;
}

/* ---------- Pros / cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.75rem 0; }
.pros-cons > div { background: var(--bg-panel); border: 1px solid var(--border); padding: 1.5rem; }
.pros-cons h3 { margin-top: 0; font-size: 1.05rem; }
.pros-cons .pros h3 { color: var(--green); }
.pros-cons .cons h3 { color: var(--red); }
@media (max-width: 680px) { .pros-cons { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--white);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2rem;
  color: var(--red);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item p { padding-bottom: 1.1rem; }

/* ---------- Author / EEAT box ---------- */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 2rem 0;
}
.author-avatar {
  width: 64px;
  height: 64px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.3rem;
}
.author-box .name { color: var(--white); font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.author-box .role { color: var(--text-faint); font-size: 0.85rem; }
.author-box p { margin: 0.4rem 0 0; font-size: 0.9rem; }

/* ---------- Who-we-are page ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.75rem 0; }
.value-card { background: var(--bg-panel); border: 1px solid var(--border); padding: 1.5rem; }
.value-card h3 { margin-top: 0; font-size: 1.05rem; }
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 1.75rem 0; }
.team-card { background: var(--bg-panel); border: 1px solid var(--border); padding: 1.5rem; }
.team-card .name { color: var(--white); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; }
.team-card .role { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.6rem; display: block; }
@media (max-width: 680px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-panel);
}
footer.site-footer p { font-size: 0.85rem; color: var(--text-faint); }
footer.site-footer .foot-links { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
footer.site-footer .foot-links a { color: var(--text-dim); font-weight: 600; font-size: 0.9rem; }
.age-badge {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
}

/* ===========================================================
   v3: busier homepage blocks
   =========================================================== */
.btn-gold { background: var(--gold); color: #1a1406; }
.btn-gold:hover { background: #e8b95a; text-decoration: none; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
.btn-block { display: block; text-align: center; margin-top: 1rem; }
.muted { color: var(--text-faint); }

/* Bonus ticker under the header */
.ticker { overflow: hidden; background: var(--red); border-top: 1px solid var(--red-dark); }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker-track span { white-space: nowrap; padding: 0.4rem 1.5rem; font-size: 0.82rem; color: var(--white); border-right: 1px solid rgba(255,255,255,0.25); }
.ticker-track b { color: #ffe3a3; margin-right: 0.35rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Hero extras */
.crumbs { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 0.9rem; }
.crumbs a { color: var(--text-dim); }
.crumbs span { margin: 0 0.35rem; }
.stat-tiles { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.stat-tiles li { background: rgba(21,23,28,0.85); border: 1px solid var(--border); border-left: 3px solid var(--gold); padding: 0.9rem 1rem; }
.stat-tiles strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; color: var(--white); line-height: 1.1; }
.stat-tiles span { font-size: 0.8rem; color: var(--text-dim); }
@media (max-width: 780px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Logo strip */
.logo-strip { background: var(--bg-panel); border-bottom: 1px solid var(--border); }
.logo-strip-inner { max-width: 1080px; margin: 0 auto; padding: 0.9rem 1.5rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; justify-content: space-between; }
.logo-strip-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.logo-strip img { height: 36px; width: auto; object-fit: contain; opacity: 0.85; transition: opacity .15s; }
.logo-strip a:hover img { opacity: 1; }
@media (max-width: 700px) { .logo-strip-inner { gap: 1rem; justify-content: center; } .logo-strip-label { width: 100%; text-align: center; } .logo-strip img { height: 28px; } }

/* Byline */
.byline { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; color: var(--text-dim); border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.75rem; }
.byline img { width: 48px; height: 48px; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }

/* Quick picks */
.quick-picks { background: var(--bg-panel); border: 1px solid var(--border); border-top: 3px solid var(--red); padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.quick-picks .qp-title { margin: 0 0 0.9rem; font-size: 1.15rem; }
.quick-picks ul { list-style: none; margin: 0; padding: 0; }
.quick-picks li { display: grid; grid-template-columns: 11rem 7rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.quick-picks li:last-child { border-bottom: none; }
.qp-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); font-weight: 700; }
.quick-picks strong { color: var(--white); font-family: 'Space Grotesk', sans-serif; }
.quick-picks em { font-style: normal; font-size: 0.88rem; color: var(--text-dim); }
@media (max-width: 700px) {
  .quick-picks li { grid-template-columns: 1fr auto; gap: 0.2rem 0.75rem; }
  .qp-tag { grid-column: 1 / -1; }
  .quick-picks strong, .quick-picks em { grid-column: 1; }
  .quick-picks li .btn { grid-column: 2; grid-row: 2 / 4; }
}

/* TOC chips */
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.toc a { border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.8rem; }
.toc a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* Brand screenshot cards */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 1.75rem 0; }
@media (max-width: 780px) { .brand-grid { grid-template-columns: 1fr; } }
.brand-card { position: relative; background: var(--bg-panel); border: 1px solid var(--border); display: flex; flex-direction: column; scroll-margin-top: 110px; }
.bc-rank { position: absolute; top: 0; left: 0; z-index: 2; background: var(--red); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; }
.bc-shot { display: block; border-bottom: 1px solid var(--border); overflow: hidden; aspect-ratio: 960 / 525; background: #000; }
.bc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.bc-shot:hover img { transform: scale(1.03); }
.bc-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.bc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.bc-head img { height: 36px; width: auto; }
.bc-score { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--gold); }
.bc-score small { font-size: 0.8rem; color: var(--text-faint); }
.brand-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.bc-bonus { background: var(--bg-panel-alt); border-left: 3px solid var(--gold); color: var(--white); font-weight: 700; padding: 0.55rem 0.8rem; margin: 0.4rem 0 0.9rem; font-size: 0.95rem; }
.bc-facts { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
.bc-facts li { font-size: 0.84rem; color: var(--text-dim); }
.bc-facts b { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.mini-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: auto; }
.mini-pc ul { list-style: none; margin: 0; padding: 0; }
.mini-pc li { font-size: 0.82rem; color: var(--text-dim); padding: 0.2rem 0 0.2rem 1.2rem; position: relative; }
.pc-pro li::before { content: "+"; position: absolute; left: 0; color: #3fcf7c; font-weight: 700; }
.pc-con li::before { content: "-"; position: absolute; left: 0.1rem; color: var(--red); font-weight: 700; }
@media (max-width: 420px) { .mini-pc, .bc-facts { grid-template-columns: 1fr; } }

/* Images */
.figure-wide { margin-top: 0.5rem; }
.figure img { height: auto; }
.img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.5rem; }
.img-duo .figure { margin: 0; }
@media (max-width: 680px) { .img-duo { grid-template-columns: 1fr; } }
.author-photo { width: 80px; height: 80px; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }

/* Payment chips */
.chip-row { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-row li { background: var(--bg-panel-alt); border: 1px solid var(--border); padding: 0.35rem 0.75rem; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.chip-row li.chip-dim { color: var(--text-faint); border-style: dashed; }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--bg-panel-alt); border: 1px solid var(--border); border-left: 4px solid var(--red); padding: 1.1rem 1.4rem; margin: 2rem 0; color: var(--text-dim); }
.cta-band strong { color: var(--white); }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { display: flex; align-items: center; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg-panel); border-top: 2px solid var(--red); padding: 0.55rem 0.9rem; }
  .sticky-cta img { height: 22px; width: auto; }
  .sticky-cta span { flex: 1; font-size: 0.78rem; color: var(--white); font-weight: 600; }
  body { padding-bottom: 58px; }
}

/* Stacked tables: keep captions readable on mobile */
@media (max-width: 700px) { table.data-table caption { display: block; width: 100%; } }
