/* damyle.it — Siti Non AAMS */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #12141a;
  --ink-2: #1c1f28;
  --ink-3: #262a35;
  --paper: #faf8f4;
  --card: #ffffff;
  --gold: #d7a83a;
  --gold-dark: #b1832a;
  --gold-light: #f3e2b8;
  --teal: #1f8a70;
  --teal-light: #e4f4ef;
  --red: #c0392b;
  --red-light: #fbe9e7;
  --text: #1c1f28;
  --text-muted: #5b6272;
  --border: #e8e2d6;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(18, 20, 26, 0.08);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--ink);
  color: #f5f2ea;
  padding: 14px 0;
  border-bottom: 3px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav a { color: #d9d4c8; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--gold); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  color: #f5f2ea;
  padding: 52px 0 44px;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}
.hero .tagline {
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero p { color: #cfcabd; margin: 0 0 14px; max-width: 760px; }
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.trust-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(215,168,58,0.35);
  color: #f0ead9;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Toplist section */
.toplist-section {
  background: var(--ink-2);
  padding: 8px 0 40px;
}
.toplist-section .wrap { }
[data-toplist] {
  background: var(--card);
  border-radius: var(--radius);
  padding: 6px;
}

/* Main content */
main { background: var(--paper); }
.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.section > .wrap > h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 0 0 14px;
}
.section > .wrap > p.lede { color: var(--text-muted); max-width: 780px; }
.section p { margin: 0 0 14px; max-width: 820px; }
.section h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.section h4 { font-size: 1rem; margin: 18px 0 8px; color: var(--gold-dark); }

/* Tables — desktop */
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  min-width: 560px;
}
thead th {
  background: var(--ink);
  color: #f5f2ea;
  text-align: left;
  padding: 12px 14px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #fbf9f5; }
td.rating { color: var(--gold-dark); font-weight: 700; }

/* Spec table (H4, key/value) */
.spec-table td:first-child { font-weight: 600; color: var(--ink); width: 38%; background: #f6f3ec; }

/* Brand review card */
.brand-review {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 20px 0 8px;
  box-shadow: var(--shadow);
}
.brand-review h3 { margin-top: 0; }
.feature-list { margin: 10px 0 16px; padding-left: 20px; }
.feature-list li { margin-bottom: 6px; }
.pro-con { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.pro-con .box { border-radius: 10px; padding: 14px 16px; }
.pro-con .pro { background: var(--teal-light); border: 1px solid rgba(31,138,112,0.25); }
.pro-con .con { background: var(--red-light); border: 1px solid rgba(192,57,43,0.2); }
.pro-con h5 { margin: 0 0 8px; font-family: 'Sora', sans-serif; font-size: 0.9rem; }
.pro-con .pro h5 { color: var(--teal); }
.pro-con .con h5 { color: var(--red); }
.pro-con ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.pro-con li { margin-bottom: 4px; }

/* Callout / calculation box */
.calc-box {
  background: var(--gold-light);
  border: 1px solid rgba(215,168,58,0.5);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0;
}
.calc-box strong { color: var(--ink); }

.note {
  background: #f6f3ec;
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Author box */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0 8px;
  box-shadow: var(--shadow);
}
.author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box .name { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--ink); }
.author-box .role { color: var(--text-muted); font-size: 0.88rem; margin: 2px 0 6px; }
.author-box p { margin: 0; font-size: 0.88rem; color: var(--text-muted); max-width: none; }

/* Pro/contro page-level */
.verdict-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item p { margin: 0; }

/* About / Chi siamo anchor */
.about-block {
  background: var(--ink-2);
  color: #eee8da;
  border-radius: var(--radius);
  padding: 26px;
}
.about-block h2 { color: #fff; }
.about-block p { color: #d6d1c4; }

/* Footer */
footer {
  background: var(--ink);
  color: #b9b3a3;
  padding: 30px 0;
  font-size: 0.85rem;
}
footer .wrap { display: flex; flex-direction: column; gap: 10px; }
footer nav ul { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; }
footer a { color: #d9d4c8; }
footer .disclaimer { color: #948d7c; line-height: 1.6; max-width: 900px; }
.footer-badge { color: var(--gold); font-weight: 700; }

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .site-nav ul { gap: 14px; }
  .pro-con { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 30px; }

  /* Stacked tables — card technique */
  .table-wrap { overflow-x: visible; box-shadow: none; border-radius: 0; }
  table.stack, table.stack thead, table.stack tbody, table.stack th, table.stack td, table.stack tr {
    display: block;
  }
  table.stack { min-width: 0; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    padding: 10px 14px;
  }
  table.stack td {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
  }
  table.stack td:last-child { border-bottom: none; }
  table.stack td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.72rem;
  }

  /* Spec (key/value) tables — simpler stack, no data-label needed */
  table.spec-table.stack td { display: block; text-align: left; padding: 6px 0; }
  table.spec-table.stack td:first-child { background: transparent; font-weight: 700; padding-bottom: 0; }
  table.spec-table.stack td::before { content: none; }
}
