/* ============================================================
   Milan Duomo Tours — milanduomotour.com
   Editorial blog guide layout (toursce pattern, NO sidebar).
   Palette + fonts per font-colors.txt. Mobile-first CSS.
   ============================================================ */

:root {
  /* palette — font-colors.txt */
  --bg:            #FAF6EE;   /* ivory page background */
  --surface:       #FFFFFF;   /* white article / card surface */
  --subtle:        #F1EADC;   /* warm subtle panel */
  --text:          #2B2118;   /* espresso main text */
  --text-soft:     #6B5D4E;   /* darkened taupe — body-secondary, AA on white */
  --text-mute:     #7A6D5F;   /* taupe — small meta, AA on white & ivory */
  --accent:        #A97832;   /* antique brass — borders, chips, eyebrows */
  --accent-deep:   #8A6021;   /* darker brass — small UI on light */
  --sage:          #D7D8C6;   /* pale sage — soft accent panels */
  --cta:           #5A2E2E;   /* deep burgundy — primary CTA + links */
  --cta-hover:     #431F1F;   /* darker burgundy hover */
  --border:        rgba(43, 33, 24, 0.14);
  --border-soft:   rgba(43, 33, 24, 0.08);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 880px;
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--cta); }
section[id], div[id] { scroll-margin-top: 84px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

.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;
}
.note { font-size: 14.5px; color: var(--text-soft); }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cta); color: #fff; padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand svg { display: block; }
.brand-text {
  font-family: var(--font-head); font-weight: 600; font-size: 19px;
  color: var(--text); line-height: 1;
}
.brand-text b { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; border-radius: 6px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--text); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

.primary-nav { display: none; }
.primary-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 8px 18px 16px;
}
.primary-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.primary-nav a {
  display: block; padding: 11px 6px; min-height: 44px;
  font-size: 15px; color: var(--text-soft); text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
}
.primary-nav a:hover { color: var(--accent-deep); }
.primary-nav .nav-cta {
  display: inline-flex; align-items: center; margin-top: 12px;
  background: var(--cta); color: #fff; border: none;
  padding: 10px 20px; min-height: 44px; border-radius: 6px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  font-family: var(--font-body);
}
.primary-nav .nav-cta:hover { background: var(--cta-hover); color: #fff; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.breadcrumb ol {
  max-width: 1140px; margin: 0 auto; padding: 9px 18px;
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  color: var(--text-mute);
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb li[aria-current] { color: var(--text); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--text-mute); }

/* ============================================================
   ARTICLE HEADER ZONE
   ============================================================ */
.article-header {
  background: var(--surface);
  padding: 26px 18px 0;
}
.article-header-inner { max-width: var(--wrap); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 12px;
}

.tag-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.tag {
  display: inline-block;
  background: #F0E6D4; color: var(--cta);
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 20px;
  border: 1px solid var(--accent);
  text-transform: uppercase;
}

.article-header h1 {
  font-size: 32px; line-height: 1.18;
  margin-bottom: 14px; max-width: 760px;
}
.deck {
  font-size: 17px; color: var(--text-soft);
  max-width: 680px; line-height: 1.65; margin-bottom: 22px;
}

/* hero image */
.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  width: 100%; height: 260px; object-fit: cover;
  object-position: center 38%;
  border-radius: 10px 10px 0 0;
}
.hero-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(to bottom, transparent, rgba(20, 14, 8, .72));
  color: rgba(255, 255, 255, .92);
  font-size: 12px; border-radius: 0;
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-body {
  max-width: var(--wrap); margin: 0 auto;
  padding: 28px 18px 10px;
}
.article-section { margin-bottom: 40px; }
.article-section > h2 {
  font-size: 25px;
  margin-bottom: 14px;
  padding-top: 9px;
  border-top: 3px solid var(--accent);
  display: inline-block;
}
.article-section h3 {
  font-size: 19px; margin: 26px 0 9px;
}
.article-section h4 {
  font-size: 16px; margin: 18px 0 6px; font-weight: 600;
}
.article-section p { margin-bottom: 14px; color: var(--text); }
.article-section p.lede { color: var(--text); font-size: 17.5px; }
.lead-answer {
  font-weight: 600; color: var(--text);
}
.article-section ul, .article-section ol { margin: 0 0 16px 22px; }
.article-section li { margin-bottom: 7px; }
.section-intro { color: var(--text-soft); }

a.inline { color: var(--cta); text-decoration: underline; text-underline-offset: 2px; }
a.inline:hover { color: var(--cta-hover); }

/* ---------- table of contents ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin-bottom: 34px;
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-mute);
  margin-bottom: 12px; border: none; padding: 0; display: block;
}
.toc ol {
  list-style: none; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 4px 26px;
}
.toc li { margin: 0; }
.toc a {
  display: flex; gap: 9px; align-items: baseline;
  padding: 5px 2px; min-height: 30px;
  font-size: 15px; color: var(--text-soft); text-decoration: none;
}
.toc a:hover { color: var(--accent-deep); }
.toc .num {
  font-family: var(--font-head); font-size: 13px;
  color: var(--accent); font-weight: 600; min-width: 22px;
}

/* ---------- callout box ---------- */
.callout {
  background: #FBF3E6;
  border: 1px solid #E4CFA4;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 15px 19px;
  margin: 20px 0;
}
.callout p { font-size: 15.5px; color: #5A4322; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--cta); }
.callout--warn { background: #F7ECEA; border-color: #D9B6B0; border-left-color: var(--cta); }
.callout--warn p { color: #5A2E2E; }

/* ---------- info / stat grid ---------- */
.info-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin: 18px 0;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 15px;
}
.stat-card .label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 3px;
}
.stat-card .value { font-size: 15.5px; font-weight: 700; color: var(--text); }

/* ---------- quick-answer cards ---------- */
.qa-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin: 18px 0;
}
.qa-card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 8px 8px; padding: 16px 18px;
}
.qa-card h3 {
  font-size: 17px; margin: 0 0 7px;
}
.qa-card p { font-size: 15px; color: var(--text-soft); margin: 0; }

/* ---------- mistake cards ---------- */
.mistake-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin: 18px 0;
}
.mistake-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  border-radius: 0 8px 8px 0; padding: 15px 17px;
}
.mistake-card__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 7px;
}
.mistake-card__mark {
  flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%;
  background: var(--cta); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1;
}
.mistake-card h4 { font-size: 16px; margin: 0; line-height: 1.3; }
.mistake-card p { font-size: 14.5px; color: var(--text-soft); margin: 0; }

/* ---------- checklist ---------- */
.checklist { list-style: none; margin: 14px 0 16px !important; }
.checklist li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 15.5px; color: var(--text-soft); margin-bottom: 9px;
}
.checklist li::before {
  content: ""; flex: 0 0 auto; margin-top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.xlist li::before { background: var(--cta); }

/* ---------- data table ---------- */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  background: var(--surface); border: 1px solid var(--border);
}
table.data caption {
  text-align: left; font-size: 13px; color: var(--text-mute);
  padding: 0 0 8px; font-style: italic;
}
table.data th, table.data td {
  padding: 9px 12px; border-bottom: 1px solid var(--border-soft);
  text-align: left; vertical-align: top;
}
table.data thead th {
  background: var(--accent-deep); color: #fff;
  font-family: var(--font-body); font-size: 12.5px;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data .hi { font-weight: 700; color: var(--cta); }

/* ---------- tour cards (3-up, affiliate links only) ---------- */
.tour-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin: 20px 0;
}
.tour-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
}
.tour-card__body {
  padding: 15px 17px 15px; display: flex; flex-direction: column; flex: 1 1 auto;
}
.tour-card__rank {
  align-self: flex-start;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--cta);
  padding: 4px 11px; border-radius: 20px; margin-bottom: 8px;
}
.tour-card--1 .tour-card__rank { background: var(--accent-deep); }
.tour-card--2 .tour-card__rank { background: var(--cta); }
.tour-card--3 .tour-card__rank { background: #5C6438; }
.tour-card__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.2;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 2px;
}
.tour-card .tour-card__title {
  font-size: 17.5px; line-height: 1.25; margin: 0 0 4px;
}
.tour-card__meta {
  font-size: 13px; color: var(--text-soft); margin-bottom: 7px;
}
.tour-card__meta .stars { color: var(--accent-deep); letter-spacing: .04em; }
.tour-card__desc {
  font-size: 14.5px; color: var(--text-soft); line-height: 1.55;
  margin-bottom: 11px; flex: 1 1 auto;
}
.tour-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.tour-card__price {
  font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--text);
}
.tour-card__price small { font-size: 11px; color: var(--text-mute); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer; border: none;
  border-radius: 6px; padding: 10px 18px; min-height: 44px;
}
.btn--cta { background: var(--cta); color: #fff; }
.btn--cta:hover { background: var(--cta-hover); color: #fff; }
.btn--accent { background: var(--accent-deep); color: #fff; }
.btn--accent:hover { background: #6E4D1A; color: #fff; }
.btn--ghost {
  background: transparent; color: var(--cta);
  border: 1px solid var(--accent); font-weight: 700;
}
.btn--ghost:hover { background: var(--subtle); }
.btn--block { width: 100%; }

/* ---------- official ticket banner ---------- */
.official-box {
  background: var(--subtle);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 22px 0;
}
.official-box h3 { font-size: 18px; margin-bottom: 6px; }
.official-box p { font-size: 14.5px; color: var(--text-soft); margin-bottom: 14px; }

/* ---------- category cards ---------- */
.cat-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin: 20px 0;
}
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(43,33,24,.35); }
.cat-card__strip {
  height: 8px; background: var(--accent);
}
.cat-card--1 .cat-card__strip { background: var(--accent); }
.cat-card--2 .cat-card__strip { background: var(--cta); }
.cat-card--3 .cat-card__strip { background: #6E7A4A; }
.cat-card--4 .cat-card__strip { background: #7A4A3A; }
.cat-card--5 .cat-card__strip { background: var(--accent-deep); }
.cat-card--6 .cat-card__strip { background: #8A6B4A; }
.cat-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.cat-card__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 5px;
}
.cat-card h3 { font-size: 18px; margin-bottom: 8px; }
.cat-card p { font-size: 14.5px; color: var(--text-soft); margin-bottom: 14px; flex: 1 1 auto; }
.cat-card__link {
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  color: var(--cta);
}

/* ---------- season strip ---------- */
.season-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0;
}
.season-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 15px 17px;
  border-top: 4px solid var(--sage);
}
.season-card--best { border-top-color: var(--accent); }
.season-card--avoid { border-top-color: var(--cta); }
.season-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.season-card .tag-mini {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent-deep); margin-bottom: 7px;
}
.season-card p { font-size: 14.5px; color: var(--text-soft); margin: 0; }

/* ---------- review cards ---------- */
.review-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin: 20px 0;
}
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 17px 19px;
}
.review-card .stars { color: var(--accent-deep); font-size: 14px; letter-spacing: .08em; }
.review-card blockquote {
  font-family: var(--font-head); font-style: italic;
  font-size: 16px; line-height: 1.55; color: var(--text);
  margin: 9px 0 12px;
}
.review-card .who { font-size: 13px; color: var(--text-soft); font-weight: 700; }
.review-card .who span { color: var(--text-mute); font-weight: 400; }
.review-source {
  font-size: 13px; color: var(--text-mute); font-style: italic; margin-top: 4px;
}

/* ---------- FAQ ---------- */
.faq-list { margin: 18px 0; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 14px 44px 14px 17px; position: relative;
  font-family: var(--font-head); font-size: 17px; font-weight: 500;
  color: var(--text); min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body); font-size: 22px; color: var(--accent);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-answer { padding: 0 17px 15px; }
.faq-item .faq-answer p { font-size: 15.5px; color: var(--text-soft); margin-bottom: 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--text); color: #D8CCBC;
  padding: 36px 18px 22px; margin-top: 40px;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-cols {
  display: grid; grid-template-columns: 1fr; gap: 26px; margin-bottom: 26px;
}
.footer-col h4 {
  color: #fff; font-size: 14px; font-family: var(--font-body);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: grid; gap: 7px; }
.footer-col a {
  color: #D8CCBC; text-decoration: none; font-size: 13.5px;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand { margin-bottom: 22px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: 13px; color: #B6A88F; margin-top: 8px; max-width: 440px; }
.footer-seo {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px; margin-bottom: 18px;
}
.footer-seo h4 { color: #fff; font-size: 12px; font-family: var(--font-body);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.footer-seo .seo-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-seo a { color: #B6A88F; font-size: 12.5px; text-decoration: none; }
.footer-seo a:hover { color: var(--accent); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px; font-size: 12px; color: #9C8E78;
}
.footer-legal p { margin-bottom: 6px; }
.footer-legal a { color: #B6A88F; }
.footer-disclosure { font-style: italic; }

/* ============================================================
   RESPONSIVE — tablet ≥700px
   ============================================================ */
@media (min-width: 700px) {
  .hero-figure img { height: 380px; }
  .article-header h1 { font-size: 40px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
  .mistake-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .tour-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .season-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .official-box { display: flex; align-items: center; gap: 22px; }
  .official-box > div:first-child { flex: 1 1 auto; }
  .official-box p { margin-bottom: 0; }
  .official-box .btn { white-space: nowrap; }
}

/* ============================================================
   RESPONSIVE — desktop ≥1000px
   ============================================================ */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: block; position: static; background: none;
    border: none; padding: 0;
  }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 4px; }
  .primary-nav a {
    border-bottom: none; padding: 8px 12px; font-size: 14px;
  }
  .primary-nav .nav-cta { margin-top: 0; margin-left: 8px; }
  .article-header h1 { font-size: 44px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}

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