/* Villa Franchi: shared presentation for the HOME and editorial pages. */
:root {
  /* Brand palette 02; the approved HOME uses a slightly deeper wine canvas. */
  --vf-brand-wine: #380000;
  --vf-brand-wine-light: #610e08;
  --vf-brand-coral: #ff3b44;
  --vf-brand-green: #10383e;
  --vf-brand-cream: #fffceb;
  --vf-brand-straw: #efe19d;
  --vf-surface-dark: #280000;
  --vf-surface-light: var(--vf-brand-cream);
  --vf-text-dark: var(--vf-brand-wine);
  --vf-text-light: var(--vf-brand-cream);
  --vf-accent: var(--vf-brand-coral);
  --vf-focus: var(--vf-brand-coral);
  --vf-page-width: 76rem;
  --vf-reading-width: 68ch;
  --vf-space-section: clamp(3.5rem, 7vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  min-width: 320px;
  color: var(--vf-text-dark);
  background: var(--vf-surface-light);
  font-family: "Open Sans", sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* First visit only: a quiet brand reveal with no extra dependency. */
html.vf-preloading { background: var(--vf-surface-dark); }
html.vf-preloading body { overflow: hidden; }
html.vf-preloading body::before {
  content: "";
  position: fixed;
  z-index: 10000;
  inset: 0;
  clip-path: circle(150vmax at 50% 50%);
  background: var(--vf-surface-dark) url("../assets/marks/villa-symbol.svg") center / 88px auto no-repeat;
  pointer-events: all;
}
html.vf-preloading body::after {
  content: "";
  position: fixed;
  z-index: 10001;
  top: calc(50% + 64px);
  left: 50%;
  width: 96px;
  height: 2px;
  margin-left: -48px;
  border-radius: 2px;
  background: linear-gradient(var(--vf-brand-coral), var(--vf-brand-coral)) left / 0% 100% no-repeat, rgb(255 252 235 / 16%);
  animation: vf-preloader-bar 1.3s linear forwards;
}
html.vf-preloader-leaving body::before {
  clip-path: circle(0 at 50% 50%);
  transition: clip-path 1.05s cubic-bezier(.76,0,.24,1);
}
html.vf-preloader-leaving body::after {
  opacity: 0;
  transition: opacity .3s ease;
}
@keyframes vf-preloader-bar {
  to { background-size: 100% 100%, auto; }
}
@media (prefers-reduced-motion: reduce) {
  html.vf-preloading body { overflow: auto; }
  html.vf-preloading body::before,
  html.vf-preloading body::after { display: none; }
}
img, svg { max-width: 100%; }
.atlas, .atlas-mid { font-family: "new-atlas", Georgia, serif; }
.atlas-mid { font-weight: 300; }
.opens { font-family: "Open Sans", sans-serif; font-optical-sizing: auto; }
.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: clamp(.875rem, 1.1vw, 1.125rem);
  white-space: nowrap;
}
nav a[aria-current="page"], .mobile-nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}
.mobile-nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--vf-focus);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 200;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  border: 2px solid var(--vf-brand-coral);
  border-radius: .25rem;
  color: var(--vf-brand-cream);
  background: var(--vf-surface-dark);
  font: 700 1rem/1.25 "Open Sans", sans-serif;
  text-decoration: none;
}
.skip-link:focus-visible { transform: translateY(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;
}
#mobile-menu[hidden], #mobile-menu[aria-hidden="true"], .accordion-content[hidden] { display: none !important; }
body.menu-open { overflow: hidden; }
.accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

/* The dot remains the same size, within a usable pagination target. */
.story-swiper .swiper-pagination-bullet,
.museum-swiper .swiper-pagination-bullet {
  display: inline-flex;
  width: 44px !important;
  height: 44px !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  opacity: 1;
  margin: 0 2px !important;
  cursor: pointer;
}
.story-swiper .swiper-pagination-bullet::before,
.museum-swiper .swiper-pagination-bullet::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--vf-brand-cream);
  border-radius: 50%;
  opacity: .85;
  transition: background-color 180ms ease, transform 180ms ease;
}
.story-swiper .swiper-pagination-bullet-active::before,
.museum-swiper .swiper-pagination-bullet-active::before {
  background: var(--vf-brand-cream);
  transform: scale(1.15);
}
.story-swiper .swiper-pagination-bullet:focus-visible,
.museum-swiper .swiper-pagination-bullet:focus-visible {
  outline: 2px solid var(--vf-brand-cream);
  outline-offset: 2px;
}

/* Interior pages retain the HOME's editorial hierarchy and color rhythm. */
.inner-page { overflow: clip; background: var(--vf-surface-light); }
.inner-container { width: min(calc(100% - 3rem), var(--vf-page-width)); margin-inline: auto; }
.inner-hero {
  display: flex;
  min-height: clamp(27rem, 62svh, 44rem);
  align-items: center;
  padding-block: clamp(9rem, 16vh, 13rem) var(--vf-space-section);
  color: var(--vf-text-dark);
  background: var(--vf-surface-light);
  border-bottom: 1px solid rgb(56 0 0 / 18%);
}
.inner-hero--dark {
  color: var(--vf-text-light);
  background: var(--vf-surface-dark);
  background-image: linear-gradient(90deg, rgb(40 0 0 / 92%) 0%, rgb(40 0 0 / 77%) 42%, rgb(40 0 0 / 40%) 100%), var(--inner-photo);
  background-size: cover;
  background-position: center;
  border-bottom-color: rgb(255 252 235 / 20%);
}
.inner-eyebrow, .section-kicker {
  margin: 0 0 .85rem;
  font: 400 clamp(1rem, 1.25vw, 1.25rem)/1.3 "new-atlas", Georgia, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.inner-title {
  max-width: 14ch;
  margin: 0;
  color: var(--vf-accent);
  font: 400 clamp(3.25rem, 9vw, 8rem)/.98 "new-atlas", Georgia, serif;
  text-transform: uppercase;
}
.inner-lead {
  max-width: 60ch;
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  font-size: clamp(1.125rem, 1.5vw, 1.4rem);
  line-height: 1.65;
}
.content-section {
  padding-block: var(--vf-space-section);
  color: var(--vf-text-dark);
  background: var(--vf-surface-light);
}
.content-section--dark { color: var(--vf-text-light); background: var(--vf-surface-dark); }
.content-section + .content-section:not(.content-section--dark) { border-top: 1px solid rgb(56 0 0 / 15%); }
.section-heading {
  max-width: 18ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  color: var(--vf-accent);
  font: 400 clamp(2.6rem, 6vw, 6rem)/1.04 "new-atlas", Georgia, serif;
  text-transform: uppercase;
}
.reading-copy {
  max-width: var(--vf-reading-width);
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
  line-height: 1.78;
}
.reading-copy > * + * { margin-top: 1.35em; }
.reading-copy h2, .reading-copy h3 { font-family: "new-atlas", Georgia, serif; line-height: 1.2; }
.reading-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.reading-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); }
.reading-copy a, .contact-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.reading-copy a:hover, .contact-list a:hover { text-decoration-thickness: 2px; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.content-card { min-width: 0; padding-top: 1.5rem; border-top: 2px solid currentColor; }
.content-card h3 {
  margin: 0 0 1rem;
  color: var(--vf-accent);
  font: 400 clamp(1.75rem, 2.5vw, 2.75rem)/1.12 "new-atlas", Georgia, serif;
  text-transform: uppercase;
}
.content-card p { max-width: var(--vf-reading-width); margin: 0 0 1.25rem; font-size: 1.0625rem; line-height: 1.7; }
.action-link {
  display: inline-flex;
  min-height: 48px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .6rem 1.5rem;
  border: 2px solid currentColor;
  border-radius: 100px;
  color: inherit;
  background: transparent;
  font: 500 1rem/1.35 "new-atlas", Georgia, serif;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}
.action-link:hover { color: var(--vf-brand-cream); background: var(--vf-brand-wine); }
.content-section--dark .action-link:hover,
.inner-hero--dark .action-link:hover { color: var(--vf-brand-wine); background: var(--vf-brand-cream); }
.fact-list { max-width: 60rem; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.fact-row {
  display: grid;
  grid-template-columns: minmax(9rem, .38fr) 1fr;
  gap: 1rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid currentColor;
  font-size: 1.0625rem;
}
.fact-row dt { font-family: "new-atlas", Georgia, serif; text-transform: uppercase; }
.fact-row dd { margin: 0; }
.notice {
  max-width: var(--vf-reading-width);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--vf-brand-wine);
  color: var(--vf-brand-wine);
  background: var(--vf-brand-straw);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.notice > * + * { margin-top: .75rem; }
.contact-list {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
}
.contact-list a { display: inline-flex; min-height: 44px; align-items: center; }

/* Progressive enhancement: essential text stays visible if JavaScript fails. */
.reveal { opacity: 1; translate: 0 0; }
html.js .reveal:not(.active) {
  opacity: 0;
  translate: 0 35px;
}
html.js .reveal {
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), translate .9s cubic-bezier(.16, 1, .3, 1);
}
html:not(.js) .reveal { opacity: 1 !important; translate: 0 0 !important; }

@media (max-width: 767px) {
  .inner-container { width: min(calc(100% - 2.5rem), var(--vf-page-width)); }
  .inner-hero { min-height: 29rem; padding-top: 8rem; }
  .inner-hero--dark { background-image: linear-gradient(rgb(40 0 0 / 78%), rgb(40 0 0 / 80%)), var(--inner-photo); }
  .inner-title { font-size: clamp(2.4rem, 11vw, 4.5rem); overflow-wrap: normal; }
  .content-grid, .fact-row { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  #hero h3 { font-size: clamp(2.25rem, 10.3vw, 3.6rem) !important; line-height: .98; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-layer-bg, .hero-layer-text, .hover-lift {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
  .reveal { opacity: 1 !important; translate: 0 0 !important; }
}

/* IT/EN selector stays reachable while the page scrolls. */
.language-switch {
  position: fixed;
  z-index: 70;
  top: 6.6rem;
  right: clamp(1rem, 2.5vw, 2.5rem);
  display: inline-flex;
  gap: .2rem;
  padding: .25rem;
  border: 1px solid rgb(255 252 235 / 45%);
  border-radius: 999px;
  background: var(--vf-brand-wine);
  box-shadow: 0 4px 18px rgb(0 0 0 / 28%);
}
.language-switch a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--vf-brand-cream);
  font: 700 .9rem/1 "Open Sans", sans-serif;
  text-decoration: none;
}
.language-switch a[aria-current="page"] { color: var(--vf-brand-wine); background: var(--vf-brand-cream); }
.language-switch a:focus-visible { outline: 3px solid var(--vf-brand-coral); outline-offset: 2px; }
.page-photo { margin: 0; min-width: 0; align-self: stretch; overflow: hidden; background: var(--vf-brand-wine); }
.page-photo img { display: block; width: 100%; height: 100%; min-height: 20rem; max-height: 40rem; object-fit: cover; }
.history-timeline { display: grid; gap: 0; max-width: 70rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.history-timeline li { display: grid; grid-template-columns: minmax(9rem, .26fr) 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid currentColor; }
.history-timeline time { color: var(--vf-accent); font: 400 clamp(1.8rem, 3vw, 3rem)/1.1 "new-atlas", Georgia, serif; }
.history-timeline p { max-width: 62ch; margin: 0; font-size: 1.125rem; line-height: 1.7; }
@media (max-width: 767px) {
  .language-switch { top: .8rem; right: 4.8rem; box-shadow: none; }
  .history-timeline li { grid-template-columns: 1fr; gap: .5rem; }
}

/* Footer follows the three-column layout and paired marks of the approved mockup. */
.site-footer { padding: clamp(3rem, 6vw, 6rem) 0 1.5rem; color: var(--vf-brand-cream); background: var(--vf-surface-dark); }
.site-footer-title { margin: 0 0 clamp(2.5rem, 5vw, 5rem); color: var(--vf-brand-coral); font-size: clamp(2rem, 4vw, 5.2rem); line-height: 1.05; }
.site-footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.site-footer-contact, .site-footer-legal { font-size: 1rem; line-height: 1.7; }
.site-footer-contact > * + * { margin-top: 1rem; }
.site-footer-contact address { font-style: normal; }
.site-footer-contact a, .site-footer-links a, .site-footer-meta a, .site-footer-meta button { color: inherit; text-decoration: underline; text-underline-offset: .25em; }
.site-footer-contact a:hover, .site-footer-links a:hover, .site-footer-meta a:hover, .site-footer-meta button:hover { color: var(--vf-brand-coral); }
.site-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; font-family: "new-atlas", Georgia, serif; font-size: 1.12rem; text-transform: uppercase; }
.site-footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer-links a[aria-current="page"] { color: var(--vf-brand-coral); }
.site-footer-label { margin-bottom: .75rem; font-family: "new-atlas", Georgia, serif; font-size: 1.2rem; text-transform: uppercase; }
.site-footer-legal ul { margin: 0; padding: 0; list-style: none; }
.site-footer-legal li + li { margin-top: .4rem; }
.site-footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: .25em; }
.site-footer-legal a:hover { color: var(--vf-brand-coral); }
.site-footer-legal small { font-size: .8em; opacity: .7; }
.site-footer-note { margin-top: 1rem; opacity: .75; }
.site-footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 252 235 / 30%); }
.site-footer-brands { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 4rem); }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 56px; color: var(--vf-brand-cream); text-decoration: none; }
.footer-brand img { width: auto; height: 3.75rem; flex: none; }
.footer-brand span { display: flex; flex-direction: column; font-family: "new-atlas", Georgia, serif; font-size: 1.3rem; line-height: .95; }
.footer-brand small { margin-top: .4rem; font: 600 .55rem/1.2 "Open Sans", sans-serif; letter-spacing: .16em; }
.section-medallion { padding: 0; border-radius: 0; background: transparent; }

/* Home typography follows the available width, including narrow tall screens. */
.home-page #hero { min-height: 0; }
.home-page .cinematic-title { font-size: clamp(2.5rem, 12vw, 8rem); line-height: 1.05; }
.home-manifesto { max-width: 100%; font-weight: 400; font-size: clamp(2rem, 11.5vw, 11rem); line-height: 1; letter-spacing: -.025em; }
.home-manifesto > span { display: block; white-space: nowrap; }
html[lang="en"] .home-manifesto { font-size: clamp(1.75rem, 9vw, 9rem); }
.home-feature-copy h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.home-feature-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.home-feature-copy { grid-row: 1; grid-column: 1; min-width: 0; }
.home-feature-media { grid-row: 2; grid-column: 1; min-width: 0; }
.home-feature-mark { position: relative; grid-row: 2; grid-column: 1; align-self: start; height: 0; z-index: 30; pointer-events: none; }
.home-feature-mark .section-medallion { position: absolute; top: 0; left: 50%; width: 88px; height: auto; transform: translate(-50%, -50%); filter: none; }
@media (min-width: 1024px) {
 .home-manifesto { font-size: clamp(2rem, 9.5vw, 11rem); }
 .home-feature-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .home-feature-copy { width: auto; grid-row: 1; grid-column: 1; padding-inline: 5vw; }
 .home-feature-media { width: auto; grid-row: 1; grid-column: 2; }
 .home-feature-layout--museum .home-feature-copy { grid-column: 2; }
 .home-feature-layout--museum .home-feature-media { grid-column: 1; }
 .home-feature-mark { position: absolute; grid-area: auto; inset: 50% auto auto 0; width: 100%; }
 .home-feature-mark .section-medallion { width: clamp(104px, 8.5vw, 128px); }
}
.site-footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 1.5rem; font-size: .9rem; }
.site-footer-meta button { min-height: 44px; }
@media (max-width: 900px) { .site-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .site-footer-legal { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } .site-footer-contact, .site-footer-legal { grid-column: auto; } .site-footer-bottom { flex-direction: column; align-items: flex-start; } .site-footer-meta { justify-content: flex-start; } .footer-brand img { height: 3rem; } }

/* Editorial details on the interior pages. */
.editorial-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.editorial-split--reverse > :first-child { order: 2; }
.editorial-split--reverse > :last-child { order: 1; }
.editorial-image { margin: 0; min-height: 24rem; height: 100%; overflow: hidden; }
.editorial-image img { width: 100%; height: 100%; min-height: 24rem; object-fit: cover; }
.editorial-quote { max-width: 27ch; margin: 1.5rem 0; color: var(--vf-brand-coral); font: 400 clamp(2rem, 4vw, 4.5rem)/1.12 "new-atlas", Georgia, serif; }
.editorial-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.editorial-points li { padding-top: 1rem; border-top: 2px solid currentColor; font-size: 1.05rem; line-height: 1.6; }
.editorial-points strong { display: block; margin-bottom: .5rem; color: var(--vf-brand-coral); font: 400 clamp(1.5rem,2.5vw,2.5rem)/1.1 "new-atlas", Georgia, serif; }
@media (max-width: 767px) { .editorial-split { grid-template-columns: 1fr; } .editorial-split--reverse > :first-child, .editorial-split--reverse > :last-child { order: initial; } .editorial-points { grid-template-columns: 1fr; } }

/* The three home panels open on hover, tap or keyboard. */
#villa-accordion .accordion-content { transition: max-height .7s cubic-bezier(.22,1,.36,1), opacity .45s ease; overflow: hidden; }
#villa-accordion .accordion-bg-image { scale: 1.08; transition: scale 1.2s cubic-bezier(.22,1,.36,1); }
#villa-accordion .active .accordion-bg-image { scale: 1; }
#villa-accordion .accordion-header { transition: background-color .5s ease; }
#villa-accordion .active .accordion-header { background-color: transparent; }
#villa-accordion .active .accordion-header span, #villa-accordion .active .accordion-header svg { color: var(--vf-text-light); }
#villa-accordion .accordion-content > div { translate: 0 20px; transition: translate .65s cubic-bezier(.22,1,.36,1); }
#villa-accordion .active .accordion-content > div { translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
 #villa-accordion .accordion-content, #villa-accordion .accordion-bg-image, #villa-accordion .accordion-content > div { transition: none; scale: 1; translate: 0 0; }
}
@media (max-width: 767px) {
 #villa-accordion .accordion-header { align-items: flex-start; gap: .8rem; }
 #villa-accordion .accordion-header > span:last-child { max-width: 42%; }
}

/* Shared navigation and client contact details. */
.site-footer-contact a[href^="mailto:"], .ed-contact-list a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-credit { margin: 2rem auto 0; padding: 1.25rem 1.5rem 0; border-top: 1px solid rgb(255 252 235 / 20%); text-align: center; font: 400 .875rem/1.5 "Open Sans", sans-serif; }
.site-credit a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .25em; }
.site-credit a:hover { text-decoration: underline; }
#villa-accordion .accordion-header { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
#villa-accordion .accordion-header > span { min-width: 0; }
#villa-accordion .accordion-header > span:last-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: none; }
#villa-accordion .accordion-header > span:last-child svg { flex-shrink: 0; }
#villa-accordion .accordion-header--visits { background-color: #EFE19D; }
#villa-accordion .accordion-header--visits span, #villa-accordion .accordion-header--visits svg { color: var(--vf-text-dark); }
#villa-accordion .active .accordion-header--visits { background-color: transparent; }
#villa-accordion .active .accordion-header--visits span, #villa-accordion .active .accordion-header--visits svg { color: var(--vf-text-light); }
@media (max-width: 1023px) {
 html { scroll-padding-top: 80px; }
 .mobile-navbar { position: relative; min-height: 48px; }
 .mobile-navbar > a, .mobile-navbar > img { position: absolute; left: 50%; transform: translateX(-50%); }
 .mobile-navbar > button { margin-left: auto; }
 .language-switch { top: .8rem; left: 1rem; right: auto; box-shadow: none; }
 #villa-accordion .accordion-header > span:first-child > span { font-size: clamp(.9rem,4.4vw,1.25rem); letter-spacing: .035em; }
 #villa-accordion .accordion-header > span:last-child > span { font-size: clamp(.75rem,3vw,.95rem); letter-spacing: .035em; }
}

/* Desktop navbar: logo on its own row, five links spread across one narrower row below. */
.nav-brand { display: flex; justify-content: center; padding-block: .75rem .25rem; }
.nav-menu { display: flex; width: 100%; max-width: 1300px; align-items: center; justify-content: space-between; padding: 0 clamp(1.5rem, 4vw, 4rem) .75rem; }
#navbar .nav-link:hover, #navbar .nav-link:focus-visible { color: var(--vf-accent); }
@media (min-width: 1024px) {
  #navbar { padding-block: 0; }
  html { scroll-padding-top: 9rem; }
  .language-switch { top: 9rem; }
}

/* Legal pages */
.reading-copy ul { padding-left: 1.25em; list-style: disc; }
.reading-copy li + li { margin-top: .6em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.legal-table th, .legal-table td { padding: .75rem .9rem .75rem 0; border-bottom: 1px solid rgb(56 0 0 / 18%); text-align: left; vertical-align: top; }
.legal-table th { font-family: "new-atlas", Georgia, serif; font-weight: 400; }
.legal-table code { font-size: .9em; white-space: nowrap; }
@media (max-width: 640px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: .75rem 0; border-bottom: 1px solid rgb(56 0 0 / 18%); }
  .legal-table td { display: block; padding: .15rem 0; border: 0; }
}
.legal-button, .cookie-notice-ok { padding: .7rem 1.5rem; border: 1px solid currentColor; border-radius: 999px; color: inherit; background: transparent; font: 400 1rem/1 "new-atlas", Georgia, serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.legal-button:hover, .legal-button:focus-visible { color: var(--vf-text-light); background: var(--vf-surface-dark); }

/* Footer button styled like the neighbouring legal links */
.site-footer-button { padding: 0; border: 0; color: inherit; background: none; font: inherit; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.site-footer-button:hover { color: var(--vf-brand-coral); }

/* Cookie notice (src/consent.js). Sits below the mobile menu (z-100). */
.cookie-notice { position: fixed; z-index: 90; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 1.25rem; max-width: min(36rem, calc(100vw - 2rem)); padding: 1.1rem 1.25rem; border: 1px solid rgb(255 252 235 / 22%); color: var(--vf-text-light); background: var(--vf-surface-dark); box-shadow: 0 18px 40px -12px rgb(0 0 0 / 45%); font: 400 .92rem/1.55 "Open Sans", sans-serif; }
.cookie-notice[hidden] { display: none; }
.cookie-notice a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.cookie-notice-ok { flex: none; }
.cookie-notice-ok:hover, .cookie-notice-ok:focus-visible { color: var(--vf-surface-dark); background: var(--vf-text-light); }
@media (max-width: 640px) {
  .cookie-notice { right: 1rem; flex-direction: column; align-items: flex-start; gap: .9rem; }
}

/* Legal pages (only they use .inner-page): long reading, so smaller headings and tighter sections. */
.inner-page .content-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.inner-page .section-heading { max-width: none; font-size: clamp(1.7rem, 3vw, 2.6rem); }
