/* ==========================================================================
   siti-incontri.eu — identità visiva
   Stile editoriale mediterraneo: fondo caldo chiaro, terracotta + bordeaux,
   serif elegante per i titoli, sans pulito per il corpo del testo.
   Volutamente diverso da 24randki.pl: tema chiaro, bottoni squadrati,
   font pairing differente, layout a rivista invece che a lista scura.
   ========================================================================== */

:root {
  --bg: #FBF3E7;
  --bg-alt: #F3E3CB;
  --surface: #FFFFFF;
  --surface-2: #FBEFDD;
  --border: #E4CBA3;
  --text: #2B1B12;
  --text-muted: #6E5642;
  --accent: #C1440E;
  --accent-2: #8C1F2B;
  --gold: #A6791E;
  --focus: #2F6F76;
  --radius-s: 3px;
  --radius-m: 6px;
  --radius-l: 10px;
  --max-w: 1140px;
  --shadow: 0 14px 34px -18px rgba(43,27,18,.35);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  color: #201209;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-style: italic; font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; font-style: normal; }
p { margin: 0 0 1em; }
a { color: var(--accent-2); }
.muted { color: var(--text-muted); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }

.rule {
  width: 56px; height: 3px; background: var(--gold); border: none; margin: 14px 0 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 243, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; gap: 16px;
}
.logo {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: 1.4rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo em { color: var(--accent); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a.navlink {
  color: var(--text-muted); text-decoration: none; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.site-nav a.navlink:hover { color: var(--accent-2); }

/* ---------- Buttons (squadrati, non a pillola: diverso dal sito polacco) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-s);
  font-weight: 600; font-size: .96rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  text-transform: uppercase; letter-spacing: .03em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #FFF9F0; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-block { width: 100%; }

.cta-note { font-size: .78rem; color: var(--text-muted); margin: 9px 0 0; text-align: center; }
.cta-note strong { color: var(--gold); }

/* ---------- Chips / tag ---------- */
.chip {
  display: inline-block; padding: 4px 11px; border: 1px solid var(--border);
  border-radius: 999px; font-size: .74rem; color: var(--text-muted);
  margin: 0 6px 6px 0; background: var(--surface-2);
}

/* ---------- Hero ---------- */
.hero { padding: 60px 0 44px; border-bottom: 1px solid var(--border); }
.hero .eyebrow-plain {
  color: var(--accent-2); font-weight: 700; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
}
.hero p.lead { font-size: 1.14rem; color: var(--text-muted); max-width: 64ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.trust-item { font-size: .86rem; color: var(--text-muted); }
.trust-item b { color: var(--text); display: block; font-family: "Playfair Display", serif; font-size: 1.5rem; }

/* ---------- Metodologia ---------- */
.method { padding: 50px 0; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 24px; }
.method-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 22px; }
.method-card .num { font-family: "Playfair Display", serif; font-style: italic; color: var(--accent); font-size: 1.7rem; }

/* ---------- Categorie ---------- */
.categories { padding: 50px 0; border-bottom: 1px solid var(--border); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 24px; }
.cat-card { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
.cat-card h3 { margin-bottom: 6px; }

/* ---------- Ranking ---------- */
.ranking { padding: 54px 0 20px; }
.ranking-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }

.rank-card {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 22px;
}
.rank-card.top1 { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

.rank-num {
  font-family: "Playfair Display", serif; font-style: italic; font-size: 2.1rem;
  color: var(--text-muted); text-align: center;
}
.rank-card.top1 .rank-num { color: var(--gold); }

.rank-main h3 { margin-bottom: 4px; }
.rank-main h3 a { color: var(--text); text-decoration: none; }
.rank-main h3 a:hover { color: var(--accent-2); }
.rank-summary { color: var(--text-muted); font-size: .95rem; margin: 6px 0 10px; max-width: 62ch; }

.score-bar-wrap { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.score-bar { width: 120px; height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.score-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.score-num { font-size: .85rem; color: var(--gold); font-weight: 700; }

.rank-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 176px; }
.rank-actions .review-link { text-align: center; font-size: .84rem; }

@media (max-width: 720px) {
  .rank-card { grid-template-columns: 46px 1fr; }
  .rank-actions { grid-column: 1 / -1; min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .rank-actions .btn { flex: 1 1 auto; }
}

/* ---------- Città (griglia geografica) ---------- */
.cities { padding: 50px 0; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.city-pill {
  display: block; text-align: center; padding: 14px 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-m); text-decoration: none;
  color: var(--text); font-weight: 600; font-size: .92rem;
}
.city-pill:hover { border-color: var(--accent); color: var(--accent-2); }
.city-pill span { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { padding: 50px 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-family: "Work Sans", sans-serif; font-size: 1.04rem; margin-bottom: 6px; font-weight: 600; }
.faq-item p { color: var(--text-muted); margin: 0; }

/* ---------- Pagina recensione ---------- */
.breadcrumbs { font-size: .84rem; color: var(--text-muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-2); }

.review-hero { padding: 30px 0 38px; border-bottom: 1px solid var(--border); }
.review-hero-top { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; justify-content: space-between; }
.review-badge {
  display: inline-block; margin-bottom: 12px; padding: 6px 14px; font-size: .8rem; font-weight: 700;
  color: var(--accent-2); border: 1px solid var(--accent-2); border-radius: var(--radius-s);
  text-transform: uppercase; letter-spacing: .04em;
}
.score-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px 24px; text-align: center; min-width: 150px; }
.score-box .score { font-family: "Playfair Display", serif; font-style: italic; font-size: 2.5rem; color: var(--accent); }
.score-box .score small { font-size: 1rem; color: var(--text-muted); font-style: normal; }
.score-box .label { font-size: .78rem; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.pc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 22px; }
.pc-card h3 { font-family: "Work Sans", sans-serif; font-size: 1rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .03em; }
.pc-card.pros { border-left: 3px solid #4C7A52; }
.pc-card.cons { border-left: 3px solid var(--accent-2); }
.pc-card ul { margin: 0; padding-left: 18px; }
.pc-card li { margin-bottom: 8px; color: var(--text-muted); }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

.info-table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.info-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); }
.info-table td:first-child { color: var(--text-muted); width: 40%; font-weight: 600; }

.sticky-cta {
  position: sticky; bottom: 16px; margin-top: 34px; background: var(--surface); border: 2px solid var(--accent);
  border-radius: var(--radius-m); padding: 24px; text-align: center; box-shadow: var(--shadow);
}

.related { padding: 20px 0 60px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.related-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 16px; text-decoration: none; color: var(--text);
}
.related-card:hover { border-color: var(--accent); }
.related-card .rc-rank { color: var(--text-muted); font-size: .8rem; }
.related-card h4 { margin: 4px 0 0; font-size: 1.02rem; font-family: "Work Sans", sans-serif; font-weight: 600; }

/* ---------- Pagina città ---------- */
.city-hero { padding: 30px 0 34px; border-bottom: 1px solid var(--border); }
.region-badge {
  display: inline-block; margin-bottom: 12px; padding: 6px 14px; font-size: .8rem; font-weight: 700;
  color: var(--gold); border: 1px solid var(--gold); border-radius: var(--radius-s);
  text-transform: uppercase; letter-spacing: .04em;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 32px; color: var(--text-muted); font-size: .88rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.age-disclaimer {
  background: var(--surface); border: 1px solid var(--accent-2); border-radius: var(--radius-m);
  padding: 15px 19px; margin-bottom: 22px; font-size: .85rem;
}
.age-disclaimer strong { color: var(--accent-2); }
.disclosure { font-size: .78rem; color: var(--text-muted); max-width: 72ch; }

@media (max-width: 560px) { .site-nav .navlink { display: none; } }

.skip-link {
  position: absolute; left: -999px; top: auto; background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-s); z-index: 100; border: 1px solid var(--border);
}
.skip-link:focus { left: 16px; top: 16px; }
