body.wiki-editorial {
  --editorial-navy: #0b2342;
  --editorial-paper: #f4f7fb;
  --editorial-card: #fff;
  --editorial-ink: #102641;
  --editorial-line: #adbed1;
  --editorial-focus: #0756c5;
  --editorial-radius: 18px;
  --editorial-space: clamp(1rem, 3vw, 2.5rem);
}
body.seller-home.wiki-editorial main .seller-hero {
  gap: var(--editorial-space);
  border-radius: var(--editorial-radius) !important;
}
body.wiki-editorial .seller-hero #seller-title,
body.lifestyle-page.wiki-editorial .lifestyle-app .discovery-welcome #life-title {
  font-size: clamp(2rem, 4.3vw, 4rem) !important;
  letter-spacing: -.04em;
  line-height: 1.06 !important;
}
body.wiki-editorial .seller-portrait,
body.wiki-editorial .editorial-zone-photo { min-width: 0; }
body.wiki-editorial .editorial-zone-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--editorial-radius);
}
body.wiki-editorial .editorial-zone-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 43%;
}
body.wiki-editorial .wiki-home-find,
body.wiki-editorial .district-introduction {
  background: var(--editorial-card);
  color: var(--editorial-ink);
  border: 1px solid var(--editorial-line);
  border-radius: var(--editorial-radius);
  padding: var(--editorial-space);
}
body.wiki-editorial .wiki-home-find {
  max-width: none;
  margin-block: var(--editorial-space);
}
body.wiki-editorial .wiki-home-find :is(a, button),
body.wiki-editorial .district-shortcuts a { min-height: 44px; }
body.wiki-editorial .wiki-home-find a { color: var(--editorial-ink); }
body.wiki-editorial .wiki-home-find :focus-visible {
  outline: 3px solid var(--editorial-focus);
  outline-offset: 3px;
}
@media (prefers-color-scheme: dark) {
  body.seller-home.wiki-editorial {
    --editorial-card: #153759;
    --editorial-ink: #f3f7fb;
    --editorial-line: #6984a0;
    --editorial-focus: #d6efff;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body.wiki-editorial :is(.seller-portrait, .editorial-zone-photo) {
    animation: wiki-editorial-entry 360ms ease-out both;
  }
  @media (hover: hover) and (pointer: fine) {
    body.wiki-editorial .wiki-home-find nav a { transition: transform 160ms ease-out; }
    body.wiki-editorial .wiki-home-find nav a:hover { transform: translateY(-2px); }
  }
}
@keyframes wiki-editorial-entry {
  from { transform: translateY(7px); }
  to { transform: translateY(0); }
}

/* Keep destinations below the sticky site chrome after hash navigation. */
body.wiki-editorial[data-zone-slug] :is(
  #life-start, #racconto, #explore, #daily-life, #life-charts,
  #district-intro-title, #conosco-la-via
) {
  scroll-margin-top: var(--section-anchor-offset, 12rem);
}
body.wiki-editorial[data-zone-slug] .lifestyle-app main.wrap .discovery-welcome {
  margin-top: clamp(1rem, 3vw, 2.5rem);
  gap: var(--editorial-space);
}
body.wiki-editorial[data-zone-slug] .lifestyle-app .district-shortcuts {
  margin-block: 1rem 0;
}
body.wiki-editorial[data-zone-slug] .lifestyle-app .district-shortcuts a {
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  body.wiki-editorial[data-zone-slug] .lifestyle-app main.wrap {
    padding-inline: 1rem;
  }
  body.wiki-editorial[data-zone-slug] .editorial-zone-photo img {
    aspect-ratio: 2 / 1;
  }
}

body.wiki-editorial[data-zone-slug="centro"] .lifestyle-app main.wrap .discovery-welcome {
  grid-template-areas: "copy photo" "tools tools" "profiles profiles";
}
body.wiki-editorial[data-zone-slug] .lifestyle-app .editorial-zone-photo {
  grid-area: photo;
}
body.wiki-editorial[data-zone-slug] .lifestyle-app main.wrap .discovery-welcome {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "copy photo" "tools tools" "seller seller" "profiles profiles";
  align-items: center !important;
}
body.wiki-editorial[data-zone-slug] .lifestyle-app .discovery-entry-tools {
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
}
body.wiki-editorial[data-zone-slug] .lifestyle-app .discovery-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
}
body.wiki-editorial[data-zone-slug] .lifestyle-app .discovery-steps > :is(a, button) {
  min-width: 0;
  min-height: 48px;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 1050px) {
  body.wiki-editorial[data-zone-slug] .lifestyle-app .discovery-entry-tools {
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 4fr);
    align-items: end;
  }
  body.wiki-editorial[data-zone-slug] .lifestyle-app .discovery-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body.wiki-editorial[data-zone-slug] .lifestyle-app main.wrap .discovery-welcome {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "photo" "tools" "seller" "profiles";
  }
  body.wiki-editorial[data-zone-slug="centro"] .lifestyle-app main.wrap .discovery-welcome {
    grid-template-areas: "copy" "photo" "tools" "profiles";
  }
}

.centro-microzones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .7rem;
}
.centro-microzones div { border-left: 3px solid var(--editorial-line); padding: .25rem .7rem; }
.centro-microzones dt { font-weight: 700; }
.centro-microzones dd { margin: .25rem 0 0; }

body.seller-home.wiki-editorial #main-content .wiki-home-find {
  background: #0b2342;
  color: #fff;
}
body.seller-home.wiki-editorial .wiki-home-find nav a,
body.seller-home.wiki-editorial #main-content .wiki-home-find .gps-status,
body.seller-home.wiki-editorial .wiki-home-find .gps-status a {
  color: #dcecff !important;
}
body.seller-home.wiki-editorial .wiki-home-find nav a { text-decoration: underline; }
body.seller-home.wiki-editorial .wiki-home-find .wiki-content-search button {
  background: #0756c5;
  border-color: #8ab4df;
}
body.seller-home.wiki-editorial .wiki-home-find .wiki-content-search button:is(:hover,:focus-visible) {
  background: #06449c;
}
body.seller-home.wiki-editorial .wiki-home-find [data-home-guide] button {
  width: auto;
  min-width: 64px;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid #adbed1;
  border-radius: .5rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body.seller-home.wiki-editorial .wiki-home-find [data-home-guide] button span { display: block; }
body.seller-home.wiki-editorial .wiki-home-find {
  font: 1rem/1.5 var(--giuliani-font-body, Arial, sans-serif);
}
body.seller-home.wiki-editorial .wiki-home-find .gps-status:empty { display: none; }
body.seller-home.wiki-editorial .wiki-home-find .gps-status { font-size: .9375rem; }
body.seller-home.wiki-editorial .wiki-home-address { margin-top: .75rem; border-top: 1px solid #66839e; }
body.seller-home.wiki-editorial .wiki-home-address summary {
  box-sizing: border-box;
  min-height: 44px;
  padding-block: .625rem;
  cursor: pointer;
}
body.seller-home.wiki-editorial .wiki-home-find :is(input, button, summary) { font-size: 1rem; }

@media (max-width: 700px) {
  body.seller-home.wiki-editorial #main-content { padding-inline: .75rem !important; }
  body.seller-home.wiki-editorial #main-content .wiki-home-find {
    margin-block: .75rem 1.25rem;
    padding: 1rem;
    border-radius: 12px;
  }
  body.seller-home.wiki-editorial .wiki-home-find nav {
    gap: 0 .875rem;
    margin-top: .375rem;
  }
  body.seller-home.wiki-editorial .wiki-home-find .wiki-content-search { margin-block: .75rem; }
  body.seller-home.wiki-editorial .wiki-home-find .gps-home { margin-top: .75rem; }
  body.seller-home.wiki-editorial .wiki-home-find .gps-choice > div { display: grid; }
  body.seller-home.wiki-editorial .wiki-home-find .gps-choice > div a { justify-content: center; }
}

.editorial-zone-photo figcaption {
  padding: .45rem .65rem;
  font-size: .8125rem;
  line-height: 1.45;
  background: #f4f7fb;
  color: #304c68;
}
.editorial-zone-photo figcaption a { color: #06449c; text-decoration: underline; }

body.seller-home.wiki-editorial .wiki-home-find:has([data-home-guide] button) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
}
body.seller-home.wiki-editorial .wiki-home-find [data-home-guide]:empty { display: none; }
body.seller-home.wiki-editorial .wiki-home-find nav { flex: 1 1 15rem; margin-top: 0; }
