/* ==========================================================================
   Wissi — salute & benessere
   Design tokens
   ========================================================================== */

:root {
  --orange: #FC8B23;
  --orange-deep: #E8710C;
  --orange-soft: #FFE4C4;
  --ink: #2B2620;
  --ink-soft: #5A5248;
  --paper: #FFF7EC;
  --paper-raised: #FFFFFF;
  --teal: #2F6B63;
  --teal-deep: #204A44;
  --line: #EEDFC8;

  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Literata', Georgia, serif;

  --max-width: 1120px;
  --radius-lg: 28px;
  --radius-md: 16px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.2em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: relative;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-header .logo img { height: 75px; width: auto; }

.site-nav { display: flex; gap: 28px; align-items: center; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--orange-deep); }

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  max-width: 12ch;
}

.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-blob {
  position: absolute;
  top: -140px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--orange-soft);
  opacity: .55;
  z-index: 0;
}

/* ==========================================================================
   Rubriche (topic grid)
   ========================================================================== */

.rubriche {
  padding: 32px 0 96px;
}

.rubriche h2 {
  font-size: 1.9rem;
  max-width: 20ch;
}

.rubriche-intro {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 40px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.topic-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(43,38,32,.07), 0 1px 2px rgba(43,38,32,.05);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.topic-card:hover { box-shadow: 0 6px 16px rgba(43,38,32,.1); border-color: var(--orange); transform: translateY(-3px); }



.topic-card--featured {
  grid-column: span 2;
  background: linear-gradient(155deg, var(--orange) 0%, var(--orange-deep) 100%);
  border: none;
  color: #fff;
  padding: 32px;
}

.topic-card--featured h3 { color: #fff; font-size: 1.5rem; }
.topic-card--featured p { color: rgba(255,255,255,.88); margin-bottom: 0; }
.topic-card--featured:hover { border-color: transparent; }

.topic-card--placeholder {
  opacity: .62;
  cursor: default;
}
.topic-card--placeholder:hover { transform: none; border-color: var(--line); }

.topic-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--teal-deep);
  align-self: flex-start;
  background: rgba(47,107,99,.1);
  padding: 5px 12px;
  border-radius: 100px;
}

.topic-card--featured .topic-tag {
  color: #fff;
  background: rgba(255,255,255,.22);
}

.topic-card h3 { font-size: 1.15rem; margin-bottom: 0; }

.topic-card .read-more {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: inherit;
}

.topic-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
}

/* ==========================================================================
   Article page
   ========================================================================== */

.article-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.article-tag {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange-deep);
  font-size: 0.92rem;
  display: inline-block;
  margin-bottom: 18px;
}

.article-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  max-width: 22ch;
}

.article-hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.article-body {
  padding: 48px 0 24px;
}

.article-body .wrap { max-width: 720px; }

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}

.article-body p { font-size: 1.08rem; }

.pull-note {
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 22px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-deep);
}

.cta-card {
  margin: 48px 0 12px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
}

.cta-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.cta-card-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
}

.cta-card h3 { color: #fff; font-size: 1.4rem; max-width: 30ch; }
.cta-card p { color: rgba(255,255,255,.88); max-width: 48ch; }

/* Comparison / ranking blocks */

.compare-table-wrap { overflow-x: auto; margin: 8px 0 40px; }

.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; }

.compare-table th, .compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.compare-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.compare-table tr:nth-child(even) td { background: rgba(47,107,99,.05); }

.compare-table tr:last-child td { border-bottom: none; }

.product-pick {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 20px;
  background: var(--paper-raised);
  box-shadow: 0 2px 6px rgba(43,38,32,.07), 0 1px 2px rgba(43,38,32,.05);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.product-pick-img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
}

.product-pick-content { flex: 1; min-width: 0; }

.product-pick--best { border: 2px solid var(--orange); }

.product-pick-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  color: #fff;
  background: var(--orange-deep);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.product-pick h3 { font-size: 1.2rem; margin-bottom: 4px; }

.product-pick .best-for {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-pick p { font-size: 1rem; margin-bottom: 14px; }

.product-pick .btn { padding: 10px 22px; font-size: 0.92rem; }

@media (max-width: 640px) {
  .compare-table-wrap { overflow-x: visible; }
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
  .compare-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--paper-raised);
    box-shadow: 0 2px 6px rgba(43,38,32,.07), 0 1px 2px rgba(43,38,32,.05);
  }
  .compare-table tr:nth-child(even) td { background: none; }
  .compare-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
  }
  .compare-table td:last-child { border-bottom: none; }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--teal-deep);
    margin-bottom: 2px;
  }
}

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 100px;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}
.btn-primary:hover { background: var(--orange-deep); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--teal-deep);
}
.btn-light:hover { background: var(--orange-soft); }

.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }

.disclaimer-inline {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-page { padding: 56px 0 96px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 0.3em; }
.legal-page .updated { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 2.4em; }
.legal-page h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal-page p, .legal-page li { font-size: 1rem; color: var(--ink-soft); }
.placeholder-field {
  background: var(--orange-soft);
  color: var(--orange-deep);
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer .foot-links { display: flex; gap: 22px; }
.site-footer a { color: var(--ink-soft); font-size: 0.92rem; text-decoration: none; }
.site-footer a:hover { color: var(--orange-deep); }

.site-footer .foot-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 560px) {
  .site-header .logo img { height: 62px; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(43,38,32,.1);
    padding: 8px 24px 20px;
    z-index: 20;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .topic-card--featured { grid-column: span 1; }
  .cta-card { padding: 28px; flex-direction: column; align-items: flex-start; }
  .product-pick { flex-direction: column; align-items: center; }
  .product-pick-content { text-align: left; width: 100%; }
  .product-pick-img { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topic-card { transition: none; }
}
