/* ==========================================================================
   Bella Italia Goods — editorial stylesheet
   Type: Bodoni Moda (display) + Archivo (body/utility)
   Section colour coding: each category owns a hue, applied to rules,
   eyebrows and card rails so readers learn the sections by sight.
   ========================================================================== */

:root {
  /* surface */
  --paper:      #FBFAF7;
  --paper-alt:  #F1EFE9;
  --ink:        #101318;
  --ink-soft:   #5E636C;
  --rule:       #D9D7CF;

  /* section hues */
  --azzurro:    #12459B;  /* Italia Explored   */
  --rosso:      #B5342B;  /* Mangia Italiano   */
  --nero:       #101318;  /* Italian Elegance  */
  --verde:      #2F6B4F;  /* Wellness alla Italiana */
  --ocra:       #B07A16;  /* Italian Icons     */

  --accent:     var(--azzurro);   /* per-page override */

  --measure: 68ch;
  --gap: 1.75rem;
  --shell: 1180px;
}

/* section theming: set data-section on <body> or any block */
[data-section="italia-explored"]        { --accent: var(--azzurro); }
[data-section="mangia-italiano"]        { --accent: var(--rosso);   }
[data-section="italian-elegance"]       { --accent: var(--nero);    }
[data-section="wellness-alla-italiana"] { --accent: var(--verde);   }
[data-section="italian-icons"]          { --accent: var(--ocra);    }

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

/* Lock the page to a light palette. Without this, a phone or browser in dark
   mode can force its own background behind the page and invert the type,
   which reads as black text on a black field. */
html {
  color-scheme: light only;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
}
img {
  max-width: 100%; height: auto; display: block;
  /* a soft block instead of a broken icon while an image loads or fails */
  background: var(--paper-alt);
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

/* ------------------------------------------------------------ utilities -- */
.eyebrow {
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.meta {
  font-size: .78rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- topbar -- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}
.topbar .shell {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 40px;
}
.topbar a { text-decoration: none; opacity: .82; }
.topbar a:hover { opacity: 1; }
.topbar .spacer { margin-left: auto; }

/* -------------------------------------------------------------- masthead -- */
.masthead { padding: 2.75rem 0 1.5rem; text-align: center; }
.wordmark {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.015em;
  margin: 0;
  text-decoration: none;
  display: inline-block;
}
.wordmark em { font-style: italic; font-weight: 400; }
.tagline {
  margin: .9rem 0 0;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* tricolore hairlines — the flag reduced to three rules */
.tricolore {
  display: flex; height: 3px; margin: 1.4rem auto 0;
  width: min(100%, 240px);
}
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: var(--verde); }
.tricolore span:nth-child(2) { background: var(--paper-alt); }
.tricolore span:nth-child(3) { background: var(--rosso); }

/* ------------------------------------------------------------------- nav -- */
.mainnav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 1.75rem;
}
.mainnav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1rem, 4vw, 2.75rem);
  list-style: none; margin: 0; padding: .9rem 0;
}
.mainnav a {
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover, .mainnav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}
.mainnav li:nth-child(1) a:hover { border-bottom-color: var(--azzurro); }
.mainnav li:nth-child(2) a:hover { border-bottom-color: var(--rosso); }
.mainnav li:nth-child(3) a:hover { border-bottom-color: var(--nero); }
.mainnav li:nth-child(4) a:hover { border-bottom-color: var(--verde); }
.mainnav li:nth-child(5) a:hover { border-bottom-color: var(--ocra); }

/* ------------------------------------------------- signature: notch rule -- */
/* Section headers sit in a notch cut out of a heavy rule. */
.section-head {
  display: flex; align-items: center; gap: 1rem;
  margin: 3.25rem 0 1.5rem;
}
.section-head h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.section-head::after {
  content: ""; flex: 1; height: 6px;
  background: var(--accent);
}
.section-head .more {
  font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; color: var(--accent);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- lead -- */
.lead {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .lead { grid-template-columns: 1.15fr 1fr; align-items: center; }
}
.lead figure { margin: 0; }
.lead figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.lead-title {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: .7rem 0 .9rem;
}
.lead-title a { text-decoration: none; }
.lead-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lead-dek {
  font-size: 1.06rem; color: var(--ink-soft); margin: 0 0 1rem;
  max-width: 46ch;
}

/* ---------------------------------------------------------------- cards -- */
.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.card figure { margin: 0 0 .85rem; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.18;
  margin: .5rem 0 .45rem;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card p { margin: 0 0 .5rem; font-size: .9rem; color: var(--ink-soft); }

/* compact list variant for icons/people */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  border-top: 1px solid var(--rule);
  padding: .85rem 0;
}
.list li:first-child { border-top: 0; }
.list h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.02rem; font-weight: 700; margin: .3rem 0 0; line-height: 1.2;
}
.list h3 a { text-decoration: none; }
.list h3 a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- ad slots -- */
.adslot {
  margin: 3rem 0; padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.adslot::before {
  content: "Advertisement";
  display: block; margin-bottom: .6rem;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- article -- */
.article-head { padding: 2.5rem 0 0; text-align: center; }
.article-head h1 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.05rem, 5.4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -.02em;
  margin: .8rem auto .9rem;
  max-width: 20ch;
}
.article-dek {
  font-size: 1.1rem; color: var(--ink-soft);
  max-width: 54ch; margin: 0 auto 1.2rem;
}
.article-meta {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.article-hero { margin: 2rem 0; }
.article-hero img { aspect-ratio: 16 / 9; object-fit: cover; }
.article-hero figcaption {
  font-size: .76rem; color: var(--ink-soft); margin-top: .6rem;
}

.prose { max-width: var(--measure); margin: 2.25rem auto 0; }
.prose > * + * { margin-top: 1.3em; }
.prose p { margin: 0; }
.prose h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.7rem; font-weight: 700; line-height: 1.15;
  margin-top: 2.4em; letter-spacing: -.01em;
}
.prose h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.28rem; font-weight: 700; margin-top: 1.9em;
}
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45em; }
.prose img { margin-block: 1.6em; }
.prose blockquote {
  margin: 1.9em 0; padding-left: 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.3rem; font-style: italic; line-height: 1.35;
}
.prose a { color: var(--accent); text-underline-offset: 2px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: .5rem; }

/* Bodoni drop cap opening the body — the didone is the point, so show it */
.prose > p:first-of-type::first-letter {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700;
  float: left;
  font-size: 3.9em;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--accent);
}

/* ---------------------------------------------------------------- share -- */
.share {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
  max-width: var(--measure); margin: 2.75rem auto 0;
  padding-top: 1.25rem; border-top: 1px solid var(--rule);
}
.share a {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--rule); padding: .45rem .8rem;
}
.share a:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------- footer -- */
.sitefooter {
  margin-top: 4.5rem;
  background: var(--ink); color: var(--paper);
  padding: 3rem 0 2rem;
}
.sitefooter .wordmark { font-size: 2rem; }
.sitefooter a { color: var(--paper); opacity: .8; text-decoration: none; }
.sitefooter a:hover { opacity: 1; text-decoration: underline; }
.footer-cols {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2rem;
}
.footer-cols h4 {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 .8rem; color: #9aa0aa; font-weight: 600;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .45rem; font-size: .9rem; }
.colophon {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid #2a2f38;
  font-size: .76rem; color: #9aa0aa;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.colophon .spacer { margin-left: auto; }

/* -------------------------------------------------------------- a11y/mo -- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Long-read article layout
   These guides run 2,000+ words with nine or ten sections. Newspaper gave
   readers one long scroll and no way to navigate it. This adds a contents
   rail, sectioned figures and a collapsible FAQ.
   ========================================================================== */

.article-layout { display: block; }
@media (min-width: 1020px) {
  .article-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, var(--measure));
    gap: 3.5rem;
    align-items: start;
    justify-content: center;
  }
  .article-layout .prose { max-width: none; margin-left: 0; margin-right: 0; }
}

/* contents rail ---------------------------------------------------------- */
.toc { display: none; }
@media (min-width: 1020px) {
  .toc {
    display: block;
    position: sticky;
    top: 2rem;
    font-size: .82rem;
  }
}
.toc h2 {
  font-size: .66rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 .9rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .1rem; }
.toc a {
  display: block; padding: .4rem 0 .4rem .5rem;
  text-decoration: none; color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  line-height: 1.3;
}
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.toc a.is-current {
  color: var(--ink); font-weight: 600;
  border-left-color: var(--accent);
}

/* reading progress ------------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 50;
}
@media (prefers-reduced-motion: no-preference) {
  .progress { transition: width .1s linear; }
}

/* section figures -------------------------------------------------------- */
.prose h2 { scroll-margin-top: 1.5rem; }
.prose h3 { scroll-margin-top: 1.5rem; }
.prose figure img { width: 100%; }

/* a photo that earns extra width, kept inside the reading column's rhythm */
@media (min-width: 1020px) {
  .prose figure.wide { margin-inline: -2.5rem; }
}

/* a labelled list — used for "Local specialties", "Where to stay" --------- */
.spec { list-style: none; margin: 1.4em 0; padding: 0; }
.spec li {
  border-top: 1px solid var(--rule);
  padding: .9rem 0 .9rem 0;
  display: grid; gap: .15rem;
}
.spec li:last-child { border-bottom: 1px solid var(--rule); }
.spec .name {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700; font-size: 1.05rem;
}
.spec .what { color: var(--ink-soft); font-size: .94rem; }

/* FAQ -------------------------------------------------------------------- */
.faq { margin: 1.6em 0; }
.faq details {
  border-top: 1px solid var(--rule);
}
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: .95rem 2rem .95rem 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700; font-size: 1.06rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: .8rem;
  font-family: "Archivo", sans-serif; font-weight: 400;
  font-size: 1.3rem; color: var(--accent);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 0 0 1.1rem; color: var(--ink-soft); }

/* at-a-glance panel ------------------------------------------------------ */
.glance {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0 1.2rem;
  margin: 2rem 0;
  display: grid; gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.glance div { display: grid; gap: .2rem; }
.glance dt, .glance .k {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.glance dd, .glance .v {
  margin: 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.02rem; font-weight: 700; line-height: 1.25;
}

/* text-forward homepage columns ------------------------------------------ */
.columns {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.columns > section { min-width: 0; }
.columns .section-head { margin-top: 0; }
.columns .section-head::after { height: 4px; }

/* ---------------------------------------------------------------- pager -- */
/* Real links, not a JavaScript "Load more" button. This is what lets a
   crawler reach every article in an archive. */
.pager {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  margin: 2.5rem 0 1rem;
  font-size: .82rem; font-weight: 600;
}
.pager a, .pager span {
  min-width: 2.2rem; padding: .5rem .7rem;
  text-align: center; text-decoration: none;
  border: 1px solid var(--rule);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager span[aria-current] {
  background: var(--accent); border-color: var(--accent); color: var(--paper);
}
.pager .prev, .pager .next { letter-spacing: .08em; text-transform: uppercase; }
