/* Equilibrio Salò — stylesheet */

:root {
  --teal-900: #0b3634;
  --teal-800: #0f4643;
  --teal-700: #14615c;
  --teal-500: #1c9c8f;
  --teal-300: #7fd4c6;
  --coral-500: #ff6b4a;
  --coral-600: #eb5636;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-alt: #f0ede4;
  --ink: #17272a;
  --muted: #5a6a68;
  --border: #e2ddd0;
  --radius: 14px;
  --shadow: 0 10px 30px -14px rgba(11, 54, 52, 0.25);
}

* , *::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, h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  color: var(--teal-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin-top: 2.4em; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 600; margin-top: 1.6em; }
p { margin: 0 0 1.1em; color: var(--ink); }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--teal-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header .bar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}
.brand .name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.brand .name span { color: var(--coral-500); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #d7ece8;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

@media (max-width: 680px) {
  .brand .name { font-size: 0.92rem; }
  .site-header .bar { position: relative; }
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
  }
  .nav-toggle-label:hover { background: rgba(255,255,255,0.08); }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--teal-900);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.3rem 1.25rem 0.7rem; }
  .site-nav li { border-top: 1px solid rgba(255,255,255,0.1); }
  .site-nav li:first-child { border-top: none; }
  .site-nav a { display: block; padding: 0.7rem 0; font-size: 0.9rem; }
  .nav-toggle:checked ~ .site-nav { max-height: 320px; }
  .nav-toggle:checked ~ .nav-toggle-label { background: rgba(255,255,255,0.12); }
}

/* Hero — deliberately compact so the toplist clears the fold on mobile */
.hero {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #eafaf6;
  padding: 1.6rem 0 1.4rem;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #cdeee7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero .lead {
  color: #d7ece8;
  font-size: 1rem;
  max-width: 70ch;
  margin-bottom: 0.9rem;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #bfe4dc;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.35rem; }
.trust-strip strong { color: #fff; font-weight: 600; }

@media (max-width: 480px) {
  .hero { padding: 1rem 0 0.9rem; }
  .hero h1 { font-size: 1.32rem; }
  .hero .eyebrow { font-size: 0.65rem; padding: 0.2rem 0.5rem; margin-bottom: 0.5rem; }
  .hero .lead { font-size: 0.9rem; margin-bottom: 0.7rem; }
  .trust-strip { font-size: 0.7rem; gap: 0.35rem 0.6rem; }
  .toplist-section { padding: 1rem 0 1.2rem; }
  .toplist-section h2 { margin-top: 0; font-size: 1.15rem; }
  .toplist-section .intro { font-size: 0.85rem; margin-bottom: 0.7rem; }
}

/* Toplist section */
.toplist-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0 1.8rem;
}
.toplist-section h2 { margin-top: 0; }
.toplist-section .intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
[data-toplist] { min-height: 60px; }
.legal-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
}

section.block { padding: 2.2rem 0; }
section.block:nth-of-type(odd) { background: var(--surface-alt); }

/* Author byline */
.byline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.4rem 0 2rem;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.byline strong { color: var(--ink); }

/* Featured brand cards */
.brand-cards { display: grid; gap: 1.4rem; margin-top: 1.4rem; }
.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
}
.brand-card img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.brand-card .content { padding: 1.2rem 1.3rem; }
.brand-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.brand-card h3 { margin: 0; }
.rank-badge {
  background: var(--teal-900);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.stars { color: var(--coral-500); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0.9rem 0;
}
.pros-cons ul { padding-left: 1.1em; margin: 0.3em 0 0; font-size: 0.88rem; }
.pros-cons .pros h4 { color: var(--teal-700); margin: 0 0 0.2em; font-size: 0.85rem; }
.pros-cons .cons h4 { color: var(--coral-600); margin: 0 0 0.2em; font-size: 0.85rem; }
@media (max-width: 640px) {
  .brand-card { grid-template-columns: 1fr; }
  .brand-card img { min-height: 150px; }
  .pros-cons { grid-template-columns: 1fr; }
}

.btn {
  display: inline-block;
  background: var(--coral-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--coral-600); text-decoration: none; }

/* In breve bullet callouts */
.in-breve {
  background: var(--surface);
  border-left: 4px solid var(--teal-500);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}
.in-breve p { margin: 0 0 0.4em; font-weight: 600; color: var(--teal-900); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.02em; }
.in-breve ul { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.in-breve li { margin-bottom: 0.25em; }

/* Responsive comparison table -> stacked cards on mobile */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
table.compare th, table.compare td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.compare thead th {
  background: var(--teal-900);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
table.compare tbody tr:last-child td { border-bottom: none; }
@media (max-width: 700px) {
  table.compare thead { display: none; }
  table.compare, table.compare tbody, table.compare tr, table.compare td { display: block; width: 100%; }
  table.compare tr { border-bottom: 8px solid var(--bg); }
  table.compare td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  table.compare td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--teal-800);
    flex-shrink: 0;
    padding-right: 0.8rem;
  }
}

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
}
.faq-item h3 { margin: 0 0 0.4em; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Bio box */
.bio-box {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 2rem;
  align-items: flex-start;
}
.bio-box .avatar { width: 56px; height: 56px; font-size: 1.05rem; }
.bio-box h4 { margin: 0 0 0.2em; }
.bio-box p { margin: 0 0 0.5em; font-size: 0.92rem; color: var(--muted); }
.bio-box .links a { font-size: 0.85rem; margin-right: 0.9rem; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #fff;
  padding: 2.2rem 0 1.8rem;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #d7ece8; max-width: 65ch; }

/* Footer */
.site-footer {
  background: var(--teal-900);
  color: #cfe6e1;
  padding: 2.2rem 0 1.6rem;
  font-size: 0.85rem;
}
.site-footer .container { max-width: 1040px; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.site-footer h5 { color: #fff; font-family: "Poppins", sans-serif; font-size: 0.85rem; margin: 0 0 0.6em; text-transform: uppercase; letter-spacing: 0.03em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #cfe6e1; }
.site-footer a:hover { color: #fff; }
.footer-badges { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: 0.78rem; color: #9fc4bc; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; color: #9fc4bc; font-size: 0.78rem; line-height: 1.6; }
@media (max-width: 640px) {
  .site-footer .cols { grid-template-columns: 1fr; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}
