/* =================================================================
   Rome Cooking Class — stylesheet
   Layout & components: ToursCE blog pattern (blog-design-instructions.md)
   Palette & fonts: fonts-colors.txt — Italian warm palette, Fraunces + Source Sans 3
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* palette */
  --terracotta:      #B85C38;   /* brand accent — H2 borders, decorative */
  --terracotta-deep: #99421F;   /* CTA bg, links, tag text — AA-safe */
  --terracotta-soft: #FBEDE4;   /* callout / tag backgrounds */
  --terracotta-bd:   #E7C8B2;   /* callout / tag borders */
  --cream:           #F7EBDD;   /* page background */
  --cream-soft:      #FCF5EC;   /* lighter alt surface */
  --surface:         #FFFFFF;   /* cards / article surface */
  --olive:           #6F7D4F;   /* checkmarks, secondary accent */
  --olive-deep:      #515C3A;   /* olive text */
  --tomato:          #B7352D;   /* rating stars, badges (sparing) */
  --espresso:        #2E211B;   /* headings, footer bg */
  --text:            #574A40;   /* body text */
  --text-muted:      #6E5F52;   /* meta text */
  --border:          rgba(46,33,27,.12);
  --border-md:       rgba(46,33,27,.20);

  /* spacing */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --section-py: clamp(2.6rem, 6vw, 4.4rem);

  --container: 1140px;
  --measure: 760px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;

  --shadow-card: 0 1px 2px rgba(46,33,27,.05), 0 8px 24px -12px rgba(46,33,27,.18);
  --shadow-soft: 0 2px 10px -4px rgba(46,33,27,.14);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-deep); }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--espresso);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.05rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { color: var(--espresso); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-lg) 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--terracotta-deep); outline-offset: 2px; border-radius: 3px; }

/* ---------- 3. Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose p { color: var(--text); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
  padding: 8px 24px;
  max-width: var(--container); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--espresso);
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.16rem;
  letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { color: var(--espresso); }
.brand svg { display: block; flex: none; }
.brand b { color: var(--terracotta-deep); font-weight: 600; }
.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  display: inline-block; padding: 8px 12px;
  font-size: .95rem; font-weight: 600;
  color: var(--text); text-decoration: none; border-radius: 6px;
}
.primary-nav a:hover { color: var(--terracotta-deep); background: var(--terracotta-soft); }
.primary-nav a[aria-current="page"] { color: var(--terracotta-deep); }
.primary-nav .nav-cta {
  margin-left: 6px;
  background: var(--terracotta-deep); color: #fff;
  padding: 9px 16px; border-radius: 7px;
}
.primary-nav .nav-cta:hover { background: var(--terracotta); color: #fff; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--border-md); border-radius: 8px;
  cursor: pointer; color: var(--espresso);
  align-items: center; justify-content: center;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 5. Breadcrumb ---------- */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  list-style: none; margin: 0 auto; padding: 9px 24px;
  max-width: var(--container);
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta-deep); }
.breadcrumb li[aria-current="page"] { color: var(--espresso); font-weight: 600; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--border-md); }

/* ---------- 6. Buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem; font-weight: 700;
  border-radius: 8px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  padding: 12px 22px; transition: background .15s ease, transform .15s ease;
}
.btn-primary { background: var(--terracotta-deep); color: #fff; }
.btn-primary:hover { background: var(--terracotta); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--espresso);
  border-color: var(--border-md);
}
.btn-secondary:hover { border-color: var(--terracotta-deep); color: var(--terracotta-deep); }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 1.18rem;
  color: var(--olive-deep); text-decoration: none;
  border: 1.5px solid var(--olive-deep);
  border-radius: 8px; padding: 10px 20px;
  transition: background .15s ease, color .15s ease;
}
.btn-text:hover { background: var(--olive-deep); color: #fff; gap: 9px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ---------- 7. Section head / eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--terracotta-deep);
  margin: 0 0 .5rem;
}
.section-head { margin-bottom: var(--space-lg); }
.section-head .sub { color: var(--text-muted); font-size: 1.08rem; max-width: var(--measure); }

/* H2 with terracotta top-border accent (blog signature element) */
.h2-accent {
  display: inline-block;
  padding-top: 10px;
  border-top: 3px solid var(--terracotta);
  margin-bottom: .55em;
}

/* ---------- 8. Tag chips ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.1rem; }
.tag {
  display: inline-block;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  font-size: .72rem; font-weight: 700;
  padding: 4px 11px; border-radius: 20px;
  border: 1px solid var(--terracotta-bd);
  text-transform: uppercase; letter-spacing: .04em;
}
.tag--olive {
  background: #EEF1E6; color: var(--olive-deep);
  border-color: #D2DAC0;
}

/* ---------- 9. Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 9px; }
.checklist li {
  position: relative; padding-left: 30px;
  color: var(--text); font-size: 1rem; line-height: 1.55;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--olive)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    no-repeat center;
}
.checklist--cross li::before {
  background: #B9B0A6
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E")
    no-repeat center;
}

/* ---------- 10. Callout box ---------- */
.callout {
  background: var(--terracotta-soft);
  border: 1px solid var(--terracotta-bd);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 1.4rem 0;
}
.callout p { margin: 0; color: #6B3A22; }
.callout p + p { margin-top: .7rem; }
.callout strong { color: var(--terracotta-deep); }
.callout .callout__label {
  display: block;
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--terracotta-deep); margin-bottom: 6px;
}
.callout--olive {
  background: #EEF1E6; border-color: #D2DAC0; border-left-color: var(--olive);
}
.callout--olive p { color: #3F472C; }
.callout--olive strong, .callout--olive .callout__label { color: var(--olive-deep); }

/* ---------- 11. Info / fact grid ---------- */
.fact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin: 1.3rem 0;
}
.fact-grid > div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px;
}
.fact-grid .label {
  display: block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted);
  margin-bottom: 3px;
}
.fact-grid .value { font-size: 1.02rem; font-weight: 600; color: var(--espresso); }

/* ---------- 12. Hero / article header zone ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero__inner { max-width: var(--container); margin: 0 auto; padding: clamp(1.8rem, 4vw, 3rem) 24px clamp(1.4rem, 3vw, 2.2rem); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 14px;
}
.hero__meta .dot { color: var(--border-md); }
.hero h1 { max-width: 16ch; margin-bottom: .35em; }
.hero__deck {
  font-size: 1.16rem; color: var(--text);
  max-width: 60ch; margin-bottom: 1.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.hero__figure {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 21 / 9; background: var(--cream-soft);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(28,18,12,.55));
}
.hero__caption {
  position: absolute; left: 16px; bottom: 12px; z-index: 1;
  color: rgba(255,255,255,.92); font-size: .8rem; letter-spacing: .01em;
}

/* page intro (post-hero prose) */
.intro { padding: var(--section-py) 0 calc(var(--section-py) * .4); }
.intro .intro__body { max-width: var(--measure); }
.intro__meta {
  border-left: 3px solid var(--terracotta);
  padding: 4px 0 4px 14px; margin-top: 1.3rem;
  font-size: .95rem; color: var(--text-muted);
}
.intro__meta strong { color: var(--espresso); }

/* ---------- 13. Category block (homepage) ---------- */
.cat-block { padding: var(--section-py) 0; }
.cat-block:nth-of-type(even) { background: var(--cream-soft); }
.cat-block__head { margin-bottom: 1.3rem; }
.cat-block__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.cat-block__media {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft);
  position: sticky; top: calc(var(--header-h) + 18px);
}
.cat-block__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-block__body { min-width: 0; }
.cat-block__tours { margin-top: 1.6rem; }
.cat-block__tours h3.mini-head {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-family: "Source Sans 3", sans-serif; font-weight: 700;
  margin-bottom: 1rem;
}
.cat-block__foot { margin-top: 1.5rem; }

/* ---------- 14. Tour cards ---------- */
.tour-grid { display: grid; gap: 22px; }
.tour-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tour-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.tour-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-soft); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card__media:hover img { transform: scale(1.04); }
.tour-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.tour-card__label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--terracotta-deep); margin-bottom: 6px;
}
.tour-card__title { font-size: 1.18rem; line-height: 1.25; margin-bottom: 8px; }
.tour-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px;
  font-size: .88rem; color: var(--text-muted); margin-bottom: 10px;
}
.tour-card__meta .stars { color: var(--tomato); letter-spacing: 1px; }
.tour-card__meta .price { color: var(--espresso); font-weight: 700; }
.tour-card__meta .sep { color: var(--border-md); }
.tour-card__free {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: var(--olive-deep); background: #EEF1E6;
  border: 1px solid #D2DAC0; border-radius: 5px; padding: 2px 8px;
  margin-bottom: 12px;
}
.tour-card__desc { font-size: .98rem; color: var(--text); margin-bottom: 14px; }
.tour-card__widget {
  margin: 2px 0 14px; min-height: 340px;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.tour-card__widget [data-gyg-widget] { min-height: 320px; }
.tour-card__cta { margin-top: auto; }
.tour-card__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .92rem; font-weight: 700; text-decoration: none;
  color: var(--terracotta-deep);
}
.tour-card__link:hover { color: var(--terracotta); gap: 8px; }

/* ---------- 15. FAQ accordion (cinque-terre pattern) ---------- */
.faq-list { margin: 1.2rem 0 0; }
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
}
details.faq[open] { border-color: var(--terracotta-bd); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--espresso);
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px;
  line-height: 1.4;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--terracotta);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body {
  padding: 0 22px 18px;
  font-size: .96rem;
  line-height: 1.7;
  color: var(--text);
}
details.faq .faq-body p { margin: 0; }

/* ---------- 16. Reviews ---------- */
.reviews { padding: var(--section-py) 0; background: var(--cream-soft); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 1.4rem; }
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.review-card .review-stars {
  color: var(--tomato); font-size: 1rem; letter-spacing: 1px;
  margin: 0 0 6px; font-weight: 700;
}
.review-card blockquote {
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: 1rem; line-height: 1.55; color: var(--espresso);
  margin: 0 0 10px; font-weight: 400;
}
.review-card blockquote::before { content: "\201C"; }
.review-card blockquote::after { content: "\201D"; }
.review-card .review-meta { font-size: .82rem; color: var(--text-muted); margin: 0; }
.review-card .review-meta strong { color: var(--espresso); font-weight: 700; }

/* ---------- 17. Activities / "explore more" widget ---------- */
.also { padding: var(--section-py) 0; }
.also__widget {
  margin-top: 1.4rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; min-height: 300px;
}
.also__disclosure { font-size: .82rem; color: var(--text-muted); margin-top: 1rem; }

/* ---------- 18. Final CTA banner ---------- */
.cta-banner { background: var(--espresso); color: var(--cream); padding: var(--section-py) 0; }
.cta-banner .eyebrow { color: #E8A87E; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(247,235,221,.88); max-width: 56ch; }
.cta-banner__points {
  list-style: none; padding: 0; margin: 1.2rem 0 1.6rem;
  display: grid; gap: 8px; max-width: 56ch;
}
.cta-banner__points li {
  position: relative; padding-left: 28px; color: rgba(247,235,221,.92);
}
.cta-banner__points li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--terracotta)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    no-repeat center;
}
.cta-banner__disclosure { font-size: .82rem; color: rgba(247,235,221,.62); margin-top: 1.3rem; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--espresso); color: rgba(247,235,221,.92); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: var(--container); margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 24px 1.75rem;
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand b { color: #E8A87E; }
.footer-brand p { color: rgba(247,235,221,.78); font-size: .95rem; }
.footer-col h3 {
  font-family: "Source Sans 3", sans-serif; color: #E8C9A0;
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a {
  color: rgba(247,235,221,.92); text-decoration: none; font-size: .95rem;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.footer-col a:hover { color: #fff; border-bottom-color: #E8C9A0; }
.footer-bottom {
  max-width: var(--container); margin: 0 auto;
  padding: 1.5rem 24px 2rem;
  border-top: 1px solid rgba(247,235,221,.18);
}
.footer-bottom p { margin: 0 0 .4rem; font-size: .84rem; color: rgba(247,235,221,.7); }
.footer-bottom p:last-child { margin-bottom: 0; }

/* ---------- 20. Two-column layout (category pages) ---------- */
.layout {
  max-width: var(--container); margin: 0 auto;
  padding: var(--section-py) 24px;
  display: grid; grid-template-columns: minmax(0,1fr) 300px;
  gap: clamp(2rem, 4vw, 3.2rem); align-items: start;
}
.article-body > section { margin-bottom: var(--space-xl); }
.article-body > section:last-child { margin-bottom: 0; }
.article-body h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body h3 { margin-top: 1.6rem; }
.article-body p { max-width: var(--measure); }

/* TOC box */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius-sm); padding: 18px 22px;
  margin-bottom: var(--space-xl);
}
.toc__title {
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 11px;
}
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 9px; font-size: .96rem;
  color: var(--text); text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--terracotta-deep); font-weight: 700; font-size: .82rem;
  flex: none; padding-top: 1px;
}
.toc a:hover { color: var(--terracotta-deep); }

/* sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 20px; }
.side-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.side-card h3 {
  font-size: 1rem; padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.side-facts { list-style: none; padding: 0; margin: 0; }
.side-facts li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .92rem; padding: 8px 0; border-bottom: 1px solid var(--border);
}
.side-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-facts .k { color: var(--text-muted); }
.side-facts .v { color: var(--espresso); font-weight: 600; text-align: right; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; font-size: .96rem; text-decoration: none;
  color: var(--espresso); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--terracotta-deep); }
.side-links span { color: var(--text-muted); font-weight: 400; font-size: .82rem; }
.side-cta {
  background: var(--terracotta-soft);
  border: 1px solid var(--terracotta-bd);
  border-radius: var(--radius); padding: 18px 20px;
}
.side-cta h3 { border: 0; padding: 0; margin-bottom: 6px; color: var(--terracotta-deep); }
.side-cta p { font-size: .92rem; color: #6B3A22; margin-bottom: 14px; }

/* ---------- 20b. Timeline (how it works) ---------- */
.timeline { counter-reset: step; display: grid; gap: 0; margin-top: 1.4rem; max-width: var(--measure); }
.timeline li {
  list-style: none; counter-increment: step;
  position: relative; padding: 0 0 22px 56px;
}
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--terracotta-deep); color: #fff;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.timeline li::after {
  content: ""; position: absolute; left: 18px; top: 38px; bottom: 0;
  width: 2px; background: var(--terracotta-bd);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline .t-time {
  display: block; font-weight: 700; color: var(--espresso);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px;
}
.timeline .t-body { color: var(--text); }

/* ---------- 21. Misc ---------- */
.lede { font-size: 1.14rem; color: var(--text); }
.section-pad { padding: var(--section-py) 0; }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .side-cta { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px -16px rgba(46,33,27,.4);
    margin-left: 0; padding: 8px 0 14px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px; }
  .primary-nav a { padding: 13px 12px; border-radius: 8px; font-size: 1.02rem; }
  .primary-nav li + li { border-top: 1px solid var(--border); }
  .primary-nav .nav-cta {
    margin: 10px 0 0; text-align: center; border-top: 0;
  }
  .primary-nav li.nav-cta-li { border-top: 0; }
  .cat-block__grid { grid-template-columns: 1fr; }
  .cat-block__media { position: static; aspect-ratio: 16 / 9; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .tour-grid--2 { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__figure { aspect-ratio: 4 / 3; }
  .hero__cta .btn-primary, .hero__cta .btn-secondary { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
  .container, .header-inner, .breadcrumb ol, .hero__inner, .footer-grid, .footer-bottom, .layout { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =================================================================
   23. HOMEPAGE — editorial article layout
   (structure recreated from the cinqueterrefromflorence.tours homepage;
   Rome palette + Fraunces / Source Sans 3 retained)
   ================================================================= */

/* ---- Article header zone ---- */
.article-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.article-header-inner { max-width: var(--container); margin: 0 auto; padding: 34px 24px 0; }
.meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 15px; font-size: .8rem; color: var(--text-muted);
}
.meta-row .meta-piece { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .meta-piece::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--terracotta); display: inline-block;
}
.article-h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.95rem);
  font-weight: 600; max-width: 24ch; margin: 0 0 .4em;
  color: var(--espresso); line-height: 1.12; letter-spacing: -.015em;
}
.article-deck {
  font-size: 1.18rem; color: var(--text); max-width: 64ch;
  line-height: 1.6; margin: 0 0 1.5rem;
}
.hero-figure {
  position: relative; width: 100%; margin: 0;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  background: var(--cream-soft);
}
.hero-figure img {
  width: 100%; height: clamp(280px, 36vw, 460px); object-fit: cover; display: block;
}
.hero-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 48%, rgba(28,18,12,.55));
}
.hero-caption {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  font-size: .8rem; color: #fff; font-weight: 600;
  text-shadow: 0 1px 5px rgba(0,0,0,.7);
}

/* ---- Author / source bar ---- */
.author-bar {
  background: var(--cream-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; gap: 14px; align-items: center; margin: 0 0 26px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--terracotta-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif; font-weight: 600; font-size: .95rem;
}
.author-info { font-size: .86rem; line-height: 1.5; }
.author-info .author-name { font-weight: 700; color: var(--espresso); }
.author-info .author-role { font-size: .8rem; color: var(--text-muted); }

/* ---- Table of contents card ---- */
.toc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 0 0 34px;
}
.toc-title {
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-muted); margin: 0 0 13px;
}
.toc-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px;
  list-style: none; padding: 0; margin: 0; font-size: .92rem;
}
.toc-list li { display: flex; gap: 9px; align-items: baseline; }
.toc-list .toc-num {
  font-family: "Fraunces", serif; font-size: .78rem; font-weight: 600;
  color: var(--terracotta-deep); min-width: 18px;
}
.toc-list a { color: var(--text); text-decoration: none; }
.toc-list a:hover { color: var(--terracotta-deep); }

/* ---- Article sections ---- */
.article-section { margin-bottom: 38px; }
.article-section > h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.3vw, 1.85rem);
  font-weight: 600; margin: 0 0 .5em; padding-top: 10px;
  border-top: 3px solid var(--terracotta); display: inline-block;
  line-height: 1.22;
}
.article-section > p { max-width: var(--measure); }
.cat-eyebrow {
  display: block; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--terracotta-deep); margin: 0 0 6px;
}
.section-link { margin-top: 14px; }

/* ---- Inline prose links ---- */
.ilink {
  color: var(--terracotta-deep); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--terracotta-bd);
  text-underline-offset: 2px; text-decoration-thickness: 1.5px;
}
.ilink:hover { color: var(--terracotta); text-decoration-color: var(--terracotta); }
.ilink--olive { color: var(--olive-deep); text-decoration-color: rgba(81, 92, 58, .45); }
.ilink--olive:hover { color: var(--olive); text-decoration-color: var(--olive); }

/* ---- Hero pillars grid ---- */
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin: 14px 0 6px;
}
.pillar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px;
  display: block; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pillar-card:hover {
  border-color: var(--terracotta-bd); transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.pillar-eyebrow {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta-deep); margin: 0 0 6px;
}
.pillar-card h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--espresso);
  margin: 0 0 7px; line-height: 1.3;
}
.pillar-card p { font-size: .92rem; line-height: 1.55; margin: 0; color: var(--text); }

/* ---- Inline article image ---- */
.inline-img { width: 100%; border-radius: var(--radius-sm); margin: 20px 0 6px; }
figure.inline { margin: 0; }
figure.inline figcaption {
  font-size: .8rem; color: var(--text-muted); margin: 0 0 4px;
}

/* ---- Featured tour card (content + widget, side by side) ---- */
.tour-cta-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 18px 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 360px);
  box-shadow: var(--shadow-card);
}
.tour-cta-content { padding: 22px 24px 24px; min-width: 0; }
.tour-cta-content h3 {
  font-size: 1.32rem; font-weight: 600; color: var(--espresso);
  margin: 4px 0 9px; line-height: 1.24;
}
.tour-cta-meta {
  font-size: .86rem; color: var(--text-muted); margin: 0 0 13px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px;
}
.tour-cta-meta .stars { color: var(--tomato); letter-spacing: 1px; }
.tour-cta-meta strong { color: var(--espresso); font-weight: 700; }
.tour-cta-meta .sep { color: var(--border-md); }
.meta-pill {
  display: inline-block; background: var(--terracotta-deep); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 12px; text-transform: uppercase;
}
.tour-cta-content > p { font-size: .96rem; line-height: 1.62; margin: 0 0 14px; color: var(--text); }
.tour-included {
  list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px;
}
.tour-included li {
  position: relative; padding-left: 28px; font-size: .9rem;
  color: var(--text); line-height: 1.5;
}
.tour-included li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--olive)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    no-repeat center;
}
.tour-cta-cta { margin: 0; }
.tour-cta-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--terracotta-deep);
}
.tour-cta-link:hover { color: var(--terracotta); gap: 8px; }
.tour-cta-widget {
  background: var(--cream-soft); padding: 14px;
  border-left: 1px solid var(--border);
  display: flex; align-items: stretch; min-height: 360px;
}
.tour-cta-widget > div { width: 100%; }

/* ---- Pulled-quote callout cite ---- */
.callout-cite {
  display: block; margin-top: 10px; font-size: .8rem;
  color: var(--olive-deep); font-weight: 700; font-style: normal;
  letter-spacing: .01em;
}

/* ---- Reviews grid (2-up) ---- */
.reviews-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin: 6px 0 0;
}
.review-source { font-size: .95rem; color: var(--text-muted); font-style: italic; margin: 0 0 14px; }

/* ---- Practical info Q&A grid ---- */
.practical-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px; margin: 6px 0 0;
}
.practical-item h3 {
  font-size: 1.02rem; font-weight: 600; color: var(--espresso); margin: 0 0 5px;
}
.practical-item p { font-size: .92rem; line-height: 1.6; margin: 0; color: var(--text); }

/* ---- Share row ---- */
.share-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-top: 22px; margin-top: 30px; border-top: 1px solid var(--border);
}
.share-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: 6px; padding: 7px 14px; font-size: .82rem;
  color: var(--text); cursor: pointer; text-decoration: none;
  font-family: "Source Sans 3", sans-serif;
}
.share-btn:hover { border-color: var(--terracotta-deep); color: var(--terracotta-deep); }

/* ---- Sidebar cards (homepage) ---- */
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px;
}
.sidebar-card h3 {
  font-size: 1.02rem; font-weight: 600; margin: 0 0 13px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-size: .88rem; padding: 9px 0; border-bottom: 1px solid var(--border);
}
.facts-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts-list .facts-key { color: var(--text-muted); }
.facts-list .facts-val { color: var(--espresso); font-weight: 700; text-align: right; }
.facts-list li.facts-list__wide { flex-direction: column; align-items: flex-start; gap: 4px; }
.facts-list .facts-formats {
  display: flex; flex-direction: column; gap: 3px;
  font-size: .86rem; line-height: 1.5; color: var(--text-muted);
}
.facts-list .facts-formats .ff-line { white-space: nowrap; }
.sidebar-cta {
  background: var(--terracotta-soft); border: 1px solid var(--terracotta-bd);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px;
}
.sidebar-cta h3 { font-size: 1.02rem; font-weight: 600; color: var(--terracotta-deep); margin: 0 0 7px; }
.sidebar-cta p { font-size: .86rem; color: #6B3A22; line-height: 1.55; margin: 0 0 14px; }
.mini-tours { list-style: none; padding: 0; margin: 0; }
.mini-tours li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mini-tours li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-thumb { width: 58px; height: 58px; border-radius: 7px; object-fit: cover; flex: none; }
.mini-info { font-size: .86rem; line-height: 1.4; min-width: 0; }
.mini-info a {
  color: var(--espresso); font-weight: 700; text-decoration: none;
  display: block; margin-bottom: 2px;
}
.mini-info a:hover { color: var(--terracotta-deep); }
.mini-meta { font-size: .76rem; color: var(--terracotta-deep); font-weight: 700; }
.sidebar-widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin: 0 0 18px; min-height: 320px;
}
.widget-label {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700; margin: 0 0 8px;
}
.btn--full { display: flex; width: 100%; justify-content: center; }

/* ---- Alternates section (full-width) ---- */
.alternates {
  background: var(--cream-soft); border-top: 1px solid var(--border);
  padding: var(--section-py) 0;
}
.alternates-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.alternates-head { max-width: 64ch; margin-bottom: 1.6rem; }
.alternates-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.95rem); font-weight: 600;
  margin: 0 0 .4em; padding-top: 10px;
  border-top: 3px solid var(--terracotta); display: inline-block;
}
.alternates-head p { font-size: 1.05rem; color: var(--text-muted); margin: 0; }
.alternates-widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; min-height: 300px;
}
.alternates-disclosure { font-size: .8rem; color: var(--text-muted); margin: 1rem 0 0; }

/* ---- Final CTA banner ---- */
.final-cta {
  background: linear-gradient(135deg, var(--espresso) 0%, #5C4435 100%);
  color: var(--cream); padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}
.final-cta-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; text-align: center; }
.final-cta .eyebrow { color: #F0BE94; }
.final-cta h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 600;
  color: #fff; margin: 0 0 .4em; line-height: 1.18;
}
.final-cta > .final-cta-inner > p:not([class]) {
  font-size: 1.05rem; line-height: 1.65; color: rgba(247,235,221,.88);
  margin: 0 auto 1.4rem; max-width: 60ch;
}
.final-cta ul {
  list-style: none; padding: 0; margin: 0 auto 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; max-width: 64ch;
}
.final-cta ul li {
  font-size: .9rem; color: rgba(247,235,221,.92);
  display: inline-flex; align-items: center; gap: 8px;
}
.final-cta ul li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #E8A87E; display: inline-block; flex: none;
}
.final-cta .disclosure { font-size: .8rem; color: rgba(247,235,221,.78); margin: 2rem 0 0; }

/* ---- Homepage responsive ---- */
@media (max-width: 1024px) {
  .tour-cta-card { grid-template-columns: 1fr; }
  .tour-cta-widget { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 820px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .toc-list { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .practical-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .article-header-inner { padding-top: 24px; }
  .hero-figure img { height: 240px; }
  .tour-cta-content { padding: 20px 20px 22px; }
}
