﻿/*
Theme Name: PharmaTruck
Theme URI: https://pharmatruck.it/
Author: PharmaTruck
Description: Tema su misura per PharmaTruck, consegna farmaci a domicilio.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pharmatruck
*/

:root {
  --ink: #141a24;
  --ink-2: #4b5363;
  --ink-3: #6f7788;
  --brand: #f5484c;
  --brand-600: #e23438;
  --brand-700: #c32a2e;
  --brand-800: #9d2125;
  --brand-50: #fff2f1;
  --brand-100: #ffdedc;
  --green: #156b53;
  --green-50: #eaf5f1;
  --surface: #ffffff;
  --surface-2: #faf8f6;
  --surface-3: #f3efea;
  --line: #e7e1da;
  --line-strong: #d6cec4;
  --focus: #1f6feb;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 26, 36, .05);
  --shadow: 0 2px 4px rgba(20, 26, 36, .04), 0 14px 32px -16px rgba(20, 26, 36, .22);
  --shadow-lift: 0 4px 8px rgba(20, 26, 36, .05), 0 22px 44px -18px rgba(20, 26, 36, .28);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;
  --space-11: 96px;
  --space-12: 120px;
  --wrap: 1180px;
  --wrap-narrow: 660px;
  --measure: 36rem;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --font-display: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand-100); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.028em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.42rem + 2.7vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.26rem + 1.75vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.06rem + .55vw, 1.5rem); letter-spacing: -.02em; }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 var(--space-5); }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }

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

ul, ol { margin: 0 0 var(--space-5); padding-left: 1.3em; }
li { margin-bottom: var(--space-2); }

table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
td { font-variant-numeric: tabular-nums; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-8) 0; }

blockquote {
  margin: 0 0 var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--surface-2);
  border-radius: var(--radius);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: var(--space-4); top: var(--space-2); }

.topbar {
  background: var(--ink);
  color: #cdd3dd;
  font-size: .86rem;
}
.topbar__inner {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-6);
  align-items: center;
  min-height: 38px;
}
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--brand-100); }
.topbar svg { width: 15px; height: 15px; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease-out);
}
.masthead.is-stuck { box-shadow: var(--shadow-sm); }
.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { max-height: 40px; width: auto; }
.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  color: var(--ink);
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; position: relative; }
.nav__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out);
}
.nav__list > li > a:hover { background: var(--surface-3); color: var(--ink); }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--brand-700); }
.nav__list > li.menu-item-has-children > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .5;
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .16s var(--ease-out), transform .16s var(--ease-out), display .16s allow-discrete;
  z-index: 70;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
@starting-style {
  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.tiles { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.tiles > * { flex: 1 1 220px; min-width: 0; }
.tiles > br, .products > br, .postlist > br { display: none; }
.prose .tiles, .prose .products { margin: var(--space-7) 0; }
.prose [style*="color"], .prose [style*="background"] { color: inherit !important; background-color: transparent !important; }
.prose span[style], .prose p[style], .prose li[style], .prose strong[style], .prose em[style] { font-size: inherit !important; font-family: inherit !important; }
.tile--cta, .tile--all { justify-content: center; background: var(--surface-2); border-style: dashed; }
.plainlist__head { margin: var(--space-7) 0 var(--space-4); font-size: 1.05rem; }
.plainlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plainlist li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.plainlist li span { color: var(--ink-3); font-size: .9rem; }
.sub-menu li { margin: 0; }
.sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .96rem;
  color: var(--ink);
  text-decoration: none;
}
.sub-menu a:hover { background: var(--brand-50); color: var(--brand-700); }

.searchform { position: relative; flex: 1 1 240px; min-width: 170px; max-width: 420px; }
.searchform--nav { display: none; }
.searchform input[type="search"] {
  width: 100%;
  font-family: var(--font-text);
  font-size: .98rem;
  padding: 11px 68px 11px 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .16s var(--ease-out), background-color .16s var(--ease-out);
}
.searchform input[type="search"]:focus { background: var(--surface); border-color: var(--ink-3); }
.searchform input::placeholder { color: var(--ink-3); }
.searchform__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}
.searchform button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  padding: 0 11px;
  border-radius: 999px;
  cursor: pointer;
}
.searchform button:hover { background: var(--surface-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out), border-color .16s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-700); color: #fff; }
.btn--primary:hover { background: var(--brand-800); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #26303f; color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.masthead__cta { white-space: nowrap; flex-shrink: 0; }
.btn--wide { width: 100%; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.hero {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  padding: var(--space-11) 0 var(--space-9);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--space-10);
  align-items: center;
}
.hero h1 { margin-bottom: var(--space-5); }
.hero__lead { font-size: 1.2rem; color: var(--ink-2); max-width: 54ch; }
.hero__list { list-style: none; padding: 0; margin: 0 0 var(--space-7); display: grid; gap: var(--space-3); }
.hero__list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-weight: 600; }
.hero__list svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero__note { font-size: .9rem; color: var(--ink-3); margin: var(--space-5) 0 0; max-width: 48ch; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}
.hero__badge svg { width: 26px; height: 26px; color: var(--brand); flex-shrink: 0; }
.hero__badge strong { font-family: var(--font-display); display: block; font-size: .98rem; }
.hero__badge span { font-size: .85rem; color: var(--ink-2); line-height: 1.35; display: block; }

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-7) 0 0;
  margin-top: var(--space-8);
  border-top: 1px solid var(--line);
}
.figures div { min-width: 120px; }
.figures strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.figures span { font-size: .95rem; color: var(--ink-2); }

.section { padding: var(--space-11) 0; }
.section--tight { padding: var(--space-9) 0; }
.section--alt { background: var(--surface-2); }
.section--ink { background: var(--ink); color: #e8ebf0; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #c3cad6; }
.section__head { max-width: 46ch; margin-bottom: var(--space-8); }
.section__head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.section__head--wide { max-width: 62ch; }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.steps { counter-reset: step; display: grid; gap: var(--space-7); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding-top: var(--space-5); border-top: 2px solid var(--brand); }
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--ink-2); margin: 0; font-size: 1rem; }

.feature { display: grid; gap: var(--space-3); align-content: start; }
.feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0; }
.feature p { color: var(--ink-2); margin: 0; font-size: 1rem; }

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.card h2, .card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.card__meta { font-size: .86rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:hover { box-shadow: var(--shadow-lift); }
@media (hover: hover) and (pointer: fine) {
  .card--link:hover { transform: translateY(-3px); }
}
.card__media { margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) 0; }
.card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card__tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.card__arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--brand-700); }
.card__arrow svg { width: 16px; height: 16px; transition: transform .18s var(--ease-out); }
.card--link:hover .card__arrow svg { transform: translateX(3px); }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .16s var(--ease-out), background-color .16s var(--ease-out);
}
.tile:hover { border-color: var(--brand); background: var(--brand-50); color: var(--ink); }
.tile strong { font-family: var(--font-display); font-size: 1.02rem; }
.tile span { font-size: .88rem; color: var(--ink-2); }

.panel {
  background: var(--brand-50);
  border-radius: var(--radius-lg);
  padding: var(--space-9);
}
.panel--green { background: var(--green-50); }
.panel__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }

.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: var(--space-9); }
.cta-band h2 { color: #fff; margin-bottom: var(--space-4); }
.cta-band p { color: #c3cad6; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.pagehead { padding: var(--space-9) 0 var(--space-7); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pagehead h1 { margin: 0; }
.pagehead p { margin: var(--space-4) 0 0; color: var(--ink-2); font-size: 1.1rem; max-width: 62ch; }

.crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: var(--space-4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); text-decoration: underline; }

.page-body { padding: var(--space-9) 0 var(--space-11); }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-10);
  align-items: start;
}
.layout--single { grid-template-columns: minmax(0, 1fr); }

.prose { font-size: 1.08rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: var(--space-9); }
.prose h3 { margin-top: var(--space-7); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose dl, .prose blockquote, .prose h2, .prose h3, .prose h4 { max-width: var(--measure); }
.wrap--narrow .prose p, .wrap--narrow .prose ul, .wrap--narrow .prose ol, .wrap--narrow .prose dl, .wrap--narrow .prose blockquote, .wrap--narrow .prose h2, .wrap--narrow .prose h3, .wrap--narrow .prose h4 { max-width: none; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.prose ol { padding-left: 1.2em; }
.prose img { border-radius: var(--radius); margin: var(--space-6) 0; }
.prose table { margin: var(--space-6) 0; }
.prose figure { margin: var(--space-6) 0; }
.prose figcaption { font-size: .9rem; color: var(--ink-3); margin-top: var(--space-2); }

.aside { display: grid; gap: var(--space-6); position: sticky; top: 104px; align-self: start; align-content: start; }
.toc { background: var(--surface-2); border-radius: var(--radius); padding: var(--space-6); }
.toc h2 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--space-4); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: var(--space-3); }
.toc li { counter-increment: toc; display: flex; gap: var(--space-3); font-size: .96rem; line-height: 1.4; }
.toc li::before { content: counter(toc); color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: .86rem; padding-top: 2px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand-700); text-decoration: underline; }
.toc--inline { margin: 0 0 var(--space-7); }
.toc--inline ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.toc--inline li { font-size: .92rem; }
.toc--inline a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
}
.toc--inline a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.prose h2 { scroll-margin-top: 96px; }
h2[id] { scroll-margin-top: 96px; }
.ptform { margin: var(--space-8) 0 0; background: var(--surface-2); border-radius: var(--radius); padding: var(--space-6); }
.ptform h2 { margin-top: 0; }
.ptform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.ptform__row { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.ptform__row--wide { grid-column: 1 / -1; }
.prose .ptform__row, .prose .ptform__ok, .prose .ptform__err { max-width: none; }
.ptform__row label { font-size: .9rem; font-weight: 600; color: var(--ink-1); }
.ptform__row input, .ptform__row select, .ptform__row textarea { width: 100%; max-width: 100%; box-sizing: border-box; font: inherit; font-size: .96rem; color: var(--ink-1); background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); padding: 11px 13px; }
.ptform__row textarea { resize: vertical; min-height: 110px; }
.ptform__row input:focus, .ptform__row select:focus, .ptform__row textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.ptform__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.ptform__note { font-size: .85rem; color: var(--ink-2); flex: 1 1 260px; }
.ptform__consent { margin: 0; }
.ptform__consent label { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; font-weight: 400; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.ptform__consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--brand); }
.ptform__consent span { flex: 1 1 auto; min-width: 0; }
.ptform__consent input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ptform__hp { display: none; }
.ptform__ok, .ptform__err { font-size: .96rem; border-radius: calc(var(--radius) / 2); padding: 12px 15px; margin-bottom: var(--space-5); }
.ptform__ok { background: #e8f6ed; color: #1d6b3a; }
.ptform__err { background: #fdeaea; color: #a32020; }
@media (max-width: 720px) { .ptform { padding: var(--space-5); } .ptform__grid { grid-template-columns: 1fr; } }
.aside__box { background: var(--surface-2); border-radius: var(--radius); padding: var(--space-6); }
.aside__box h3 { font-size: 1.05rem; margin-bottom: var(--space-3); }
.aside__box p { font-size: .96rem; color: var(--ink-2); margin-bottom: var(--space-3); }
.aside__box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.aside__box a { font-size: .96rem; }

.faq { display: grid; gap: var(--space-3); }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { margin: var(--space-4) 0 0; color: var(--ink-2); max-width: 68ch; }

.pharma__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: start; }
.pharma__contact { display: grid; gap: var(--space-2); font-size: 1.02rem; }
.pharma__contact a { text-decoration: none; }
.hours { width: 100%; }
.hours td:first-child { font-family: var(--font-display); font-weight: 600; width: 40%; }
.hours tr:last-child td { border-bottom: 0; }
.factlist { display: grid; gap: var(--space-3); margin: 0; }
.factlist div { display: flex; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--line); padding-bottom: var(--space-3); }
.factlist dt { color: var(--ink-2); font-size: .96rem; }
.factlist dd { margin: 0; font-weight: 600; text-align: right; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--ink-2);
}
.chip--rx { background: var(--brand-50); color: var(--brand-700); }
.chip--otc { background: var(--green-50); color: var(--green); }

.notice {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: var(--space-6);
  font-size: .98rem;
  color: var(--ink-2);
}
.notice h3 { font-size: 1.05rem; margin-bottom: var(--space-3); }
.notice p:last-child { margin-bottom: 0; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); }
.products > * { min-width: 0; }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .18s var(--ease-out);
}
.product-card:hover { border-color: transparent; box-shadow: var(--shadow-lift); color: var(--ink); }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card:hover h3 a { color: var(--brand-700); }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { transform: translateY(-3px); }
}
.product-card__media {
  background: var(--surface-2);
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: var(--space-3);
}
.product-card__media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-card h3 { font-size: 1.05rem; margin: 0; }
.product-card__inn { font-size: .88rem; color: var(--ink-3); }
.product-card__price { margin-top: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.product-card__price span { font-weight: 400; font-size: .85rem; color: var(--ink-3); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}
.product__gallery { background: var(--surface-2); border-radius: var(--radius-lg); padding: var(--space-7); display: grid; place-items: center; }
.product__gallery img { max-width: 100%; height: auto; object-fit: contain; }
.product__buy { background: var(--surface-2); border-radius: var(--radius); padding: var(--space-6); display: grid; gap: var(--space-4); }
.product__price { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -.03em; }
.product__price small { font-family: var(--font-text); font-weight: 400; font-size: .92rem; color: var(--ink-2); display: block; letter-spacing: 0; }
.product__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }

.facts { margin: var(--space-5) 0 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-6); font-size: .98rem; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.facts dt, .facts dd { padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
.prose .facts { max-width: var(--measure); margin: var(--space-7) 0; }
.prose .facts--wide { max-width: none; }
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dt { padding-bottom: 2px; border-bottom: 0; }
  .facts dd { padding-bottom: var(--space-3); }
}

.price-table { margin: var(--space-6) 0; }
.price-table th:first-child, .price-table td:first-child { font-family: var(--font-display); font-weight: 600; }
.price-table tbody tr:nth-child(odd) { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }

.reviewer {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  font-size: .96rem;
  color: var(--ink-2);
}
.reviewer svg { width: 28px; height: 28px; color: var(--green); flex-shrink: 0; }
.reviewer strong { color: var(--ink); display: block; font-family: var(--font-display); }

.section--faq { margin-top: var(--space-8); }
.section--faq h2 { margin-bottom: var(--space-5); }

.catindex { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-7); margin: var(--space-6) 0; }
.catindex__group h3 { font-size: 1rem; margin: 0 0 var(--space-3); }
.catindex__group h3 a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.catindex__group h3 a:hover { color: var(--brand-700); border-color: currentColor; }
.catindex__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.catindex__group li { display: grid; gap: 1px; font-size: .95rem; line-height: 1.4; }
.catindex__group li a { color: var(--ink-2); text-decoration: none; }
.catindex__group li a:hover { color: var(--brand-700); }
.catindex__group li span { color: var(--ink-3); font-size: .82rem; }

.sources {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.sources h2 { font-size: 1.05rem; margin: 0 0 var(--space-4); }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.sources li { display: grid; gap: 3px; font-size: .95rem; line-height: 1.5; }
.sources li a { justify-self: start; color: var(--brand-700); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.sources li a:hover { color: var(--ink); }
.sources li span { color: var(--ink-3); font-size: .9rem; }
.sources__note { margin: var(--space-5) 0 0; font-size: .9rem; color: var(--ink-3); }

.hubintro { margin: 0 0 var(--space-8); }
.hubintro h2 { margin-top: var(--space-7); }
.postlist { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.postlist > * { flex: 1 1 300px; max-width: 100%; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

.pagination { display: flex; gap: var(--space-2); margin-top: var(--space-8); }
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.site-footer { background: var(--ink); color: #aeb6c4; padding: var(--space-11) 0 var(--space-7); margin-top: var(--space-12); }
.site-footer a { color: #e7eaef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); }
.footer__brand img { max-height: 42px; width: auto; margin-bottom: var(--space-4); }
.footer__brand p { font-size: .96rem; max-width: 34ch; }
.footer h3 { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: var(--space-4); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-size: .96rem; }
.footer__links li { margin: 0; }
.social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  transition: background-color .16s var(--ease-out);
}
.social a:hover { background: var(--brand); }
.social svg { width: 18px; height: 18px; color: #fff; }
.footer__note {
  margin: var(--space-8) 0 0;
  max-width: 78ch;
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}
.footer__note + .footer__bottom { margin-top: var(--space-6); }
.footer__bottom {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: space-between;
  font-size: .88rem;
}

.map-figure { margin: 0; }
.map-figure figcaption { margin-top: var(--space-2); font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
.map-embed { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); line-height: 0; background: var(--surface-2); }
.map-embed__base { display: block; width: 100%; height: 380px; object-fit: cover; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed:not(:has(.map-embed__base)) iframe { position: static; height: 380px; }
.steps { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: 1fr; counter-reset: none; }
.steps li { position: relative; margin: 0; padding: var(--space-5) var(--space-6); background: var(--surface-2); border-radius: var(--radius-lg); display: grid; grid-template-columns: 48px 1fr; gap: var(--space-2) var(--space-5); align-items: center; }
.steps li::before { content: none; }
.steps__icon { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.steps__icon svg { width: 24px; height: 24px; }
.steps__num { align-self: end; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.steps__num::before { content: 'Passo '; }
.steps li p { margin: 0; align-self: start; font-size: .97rem; }
@media (max-width: 560px) { .steps li { grid-template-columns: 1fr; } .steps__icon { grid-row: auto; } }
.brandmark { margin: var(--space-7) 0; padding: var(--space-6); background: var(--surface-2); border-radius: var(--radius-lg); display: grid; place-items: center; max-width: var(--measure); }
.brandmark img { width: 100%; max-width: 190px; height: auto; display: block; }
.pharma__map { margin: var(--space-5) 0 0; }
.pharma__map img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.pharma__map figcaption { margin-top: var(--space-2); font-size: .82rem; color: var(--ink-2); }
.map-link { margin-top: var(--space-3); }
.map-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.map-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .hero__badge { left: auto; right: 12px; bottom: -16px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .aside { position: static; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .panel__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 861px) and (max-width: 1280px) {
  .masthead__inner { gap: var(--space-4); }
  .nav__list { gap: 0; }
  .nav__list > li > a { padding: 10px 10px; font-size: .94rem; }
  .searchform { flex: 1 1 220px; min-width: 200px; }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .masthead__cta { display: none; }
  .searchform { min-width: 170px; }
}

@media (max-width: 860px) {
  .masthead__inner { min-height: 68px; gap: var(--space-4); }
  .masthead__inner > .searchform { display: none; }
  .searchform--nav { display: block; flex: none; max-width: none; margin-bottom: var(--space-4); }
  .searchform--nav input[type="search"] { height: 50px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: var(--space-4) var(--space-5) var(--space-6);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li > a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__list > li:last-child > a { border-bottom: 0; }
  .sub-menu {
    position: static;
    display: block;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 0 0 var(--space-3) var(--space-4);
  }
  .masthead__cta { display: none; }
  .hero { padding: var(--space-9) 0 var(--space-8); }
  .section { padding: var(--space-9) 0; }
  .topbar__inner { justify-content: center; gap: var(--space-4); font-size: .8rem; }
}

@media (max-width: 760px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--surface);
  }
  .price-table tbody tr:nth-child(odd) { background: var(--surface); }
  .price-table th[scope="row"] { border: 0; padding: var(--space-2) var(--space-2) var(--space-3); font-size: 1rem; }
  .price-table td {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 9px var(--space-2);
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
  }
  .price-table td::before { content: attr(data-dose); color: var(--ink-2); font-size: .92rem; }
  .table-scroll { overflow: visible; }
}

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .wrap { padding: 0 var(--space-4); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .panel, .cta-band { padding: var(--space-7) var(--space-5); }
  .crumbs ol { flex-wrap: wrap; row-gap: var(--space-2); }
  .crumbs li { min-width: 0; }
  .crumbs li span[aria-current] { overflow-wrap: anywhere; }
  .figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
  .figures div { min-width: 0; }
  .figures strong { font-size: 1.6rem; }
  .pharma__head { grid-template-columns: minmax(0, 1fr); }
  .hero__badge { position: static; max-width: none; margin-top: var(--space-4); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .site-footer { padding-top: var(--space-9); margin-top: var(--space-9); }
  .map-embed__base { height: auto; }
  .map-embed:not(:has(.map-embed__base)) iframe { height: 300px; }
  .prose ul, .prose ol { padding-left: 1.3rem; }
  .prose ul ul, .prose ul ol, .prose ol ul, .prose ol ol { padding-left: 1rem; }
  .tiles > * { flex-basis: 100%; }
  .products { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .product-card { padding: var(--space-4); gap: var(--space-2); }
  .product-card h3 { font-size: .98rem; }
  .product-card__inn { font-size: .82rem; }
  .product-card__price { font-size: 1rem; }
  .product-card__price span { display: block; font-size: .78rem; }
}

.crosslink__note { color: var(--ink-2); font-size: 1rem; max-width: 68ch; margin-top: var(--space-3); }
.crosslink__more { margin-top: var(--space-5); font-size: .96rem; }
.prose p, .prose li, .prose td, .prose dd, .prose h1, .prose h2, .prose h3, .prose h4 { overflow-wrap: anywhere; }
.prose a { word-break: break-word; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  color: var(--ink-3);
  font-size: .95rem;
}
.byline a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color .16s ease, border-color .16s ease; }
.byline a:hover { color: var(--brand-600); border-color: currentColor; }
.byline__author { display: inline-flex; align-items: center; gap: var(--space-2); }
.byline__mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  display: grid;
  place-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .16s ease;
}
.chip:hover { background: var(--brand-100); }

.post-cover { margin: 0 0 var(--space-8); }
.post-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); display: block; background: var(--surface-3); }
.cover-credit { margin-top: var(--space-2); font-size: .78rem; line-height: 1.45; color: var(--ink-3); }
.cover-credit a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cover-credit a:hover { color: var(--ink-2); }
.post-cover--hub { margin-bottom: var(--space-7); }
.post-cover--hub img { max-height: 320px; }
@media (max-width: 720px) {
  .post-cover img { max-height: 260px; border-radius: var(--radius-sm); }
  .post-cover--hub img { max-height: 200px; }
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.taglist__label { color: var(--ink-3); font-size: .9rem; margin-right: var(--space-1); }
.taglist a {
  font-size: .88rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.taglist a:hover { background: var(--ink); color: #fff; }

.blogfoot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-7); }
.blogfoot h2 { font-size: 1.02rem; margin: 0 0 var(--space-4); }
.blogfoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.blogfoot li { display: grid; gap: 2px; font-size: .95rem; line-height: 1.4; }
.blogfoot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.blogfoot a:hover { color: var(--brand-700); border-color: currentColor; }
.blogfoot time { color: var(--ink-3); font-size: .84rem; }
@media (max-width: 860px) {
  .blogfoot__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}

.authorbox {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.authorbox__mark {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}
.authorbox h2 { margin: 0 0 var(--space-2); font-size: 1.1rem; }
.authorbox h2 a { color: inherit; text-decoration: none; }
.authorbox h2 a:hover { color: var(--brand-700); }
.authorbox p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.pagehead .authorbox { margin-top: var(--space-6); background: var(--surface); }

.blogident { border-top: 1px solid var(--line); padding: var(--space-6) 0; background: var(--surface); }
.blogident__note { color: var(--ink-3); font-size: .88rem; max-width: 80ch; }
.blogident__bar { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); font-size: .95rem; }
.blogident p { margin: var(--space-3) 0 0; }
.blogident a { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none; }
.blogident a:hover { color: var(--brand-700); }
.blogident span { color: var(--ink-3); }
.blogident__cta { color: var(--brand-700) !important; font-weight: 600; }

.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card--link:hover h3 a { color: var(--brand-700); }
.postlist .card__meta { display: block; }
.postlist .card p, .postlist .card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.spotlight > li { flex: 1 1 280px; }
.spotlight__more { margin-top: var(--space-5); }
.spotlight__more > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--brand-700);
  padding: var(--space-3) 0;
  list-style: none;
}
.spotlight__more > summary::-webkit-details-marker { display: none; }
.spotlight__more > summary::after { content: " +"; }
.spotlight__more[open] > summary::after { content: " \2212"; }
.spotlight__more > summary:hover { color: var(--brand); }
.spotlight__more .spotlight { margin-top: var(--space-4); }
.spotlight__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
}
.spotlight__cats { font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); }
.spotlight__item h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.spotlight__item h3 a { color: inherit; text-decoration: none; }
.spotlight__item p {
  margin: 0;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .spotlight__item--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
}

@media (max-width: 640px) {
  .spotlight > li { flex: 1 1 100%; }
  .byline { gap: var(--space-3); font-size: .9rem; }
  .authorbox { flex-direction: column; gap: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spotlight { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal.is-in { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
