/* Villa Maddalena — CSS consolidato V1.9.18. Baseline V1.9.16, cascata preservata. */
:root {
  --gold: #c7a386;
  --gold-deep: #aa8060;
  --ink: #334151;
  --muted: #6e6c69;
  --cream: #faf8f5;
  --line: #e9e2dc;
  --white: #fff;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Open Sans",Arial,Helvetica,sans-serif;
  font-weight: 300;
  line-height: 1.82;
  letter-spacing: .035em;
}
h1,h2,h3,.brand span {
  font-family: "Playfair Display",Georgia,serif;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
}
a {
  color: inherit;
}
.wrap {
  width: min(calc(100% - 40px),var(--max));
  margin: auto;
}
.wrap-narrow {
  max-width: 760px;
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 10px;
  z-index: 99;
}
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}
.header-lockup {
  display: flex;
  justify-content: center;
  padding: 30px 0 24px;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand span {
  font-size: clamp(2rem,3.7vw,3.15rem);
  color: var(--ink);
  font-weight: 400;
}
.brand-divider {
  display: block;
  width: 1px;
  height: 31px;
  background: var(--gold);
  opacity: .72;
  margin: 14px auto 13px;
}
.brand small {
  font-family: "Open Sans",Arial,sans-serif;
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .30em;
  color: var(--gold);
  text-transform: none;
}
.header-nav-wrap {
  border-top: 1px solid var(--line);
}
.header-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px,3vw,48px);
}
.nav a {
  text-decoration: none;
  font-family: "Roboto",Arial,sans-serif;
  font-size: .79rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .18em;
  transition: color .2s ease;
}
.nav a.active {
  color: var(--gold-deep);
}
.nav .book {
  border: 1px solid var(--gold);
  padding: .60rem .86rem;
  color: var(--gold-deep);
}
.langs {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 8px;
  font-family: "Roboto",Arial,sans-serif;
  font-size: .68rem;
  letter-spacing: .12em;
}
.langs a {
  text-decoration: none;
  padding: 4px;
}
.langs a.active {
  font-weight: 500;
  color: var(--gold-deep);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-family: "Roboto",Arial,sans-serif;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero {
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(29,33,38,.56),rgba(29,33,38,.08) 70%);
}
.hero-copy {
  position: relative;
  padding: clamp(70px,10vw,130px) 0 72px;
  max-width: 760px;
  margin-left: max(20px,calc((100vw - var(--max))/2));
  margin-right: 20px;
}
.eyebrow,.kicker {
  font-family: "Open Sans",Arial,sans-serif;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .72rem;
  font-weight: 300;
  color: var(--gold);
}
.hero h1 {
  font-size: clamp(3rem,7vw,6.2rem);
  font-weight: 400;
  margin: .25rem 0 1rem;
  letter-spacing: -.01em;
}
.hero-lead {
  font-size: clamp(1rem,1.8vw,1.35rem);
  max-width: 700px;
  font-weight: 300;
  letter-spacing: .055em;
}
.actions,.route-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  padding: .78rem 1.12rem;
  font-family: "Roboto",Arial,sans-serif;
  font-size: .78rem;
  font-weight: 300;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
}
.primary {
  background: var(--gold-deep);
  color: #fff;
}
.secondary {
  background: var(--ink);
  color: #fff;
}
.ghost {
  border-color: rgba(255,255,255,.8);
  color: #fff;
  background: transparent;
}
.ghost.dark {
  border-color: var(--gold);
  color: var(--gold-deep);
}
.section {
  padding: clamp(70px,8vw,118px) 0;
}
.soft {
  background: var(--cream);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(42px,8vw,100px);
  align-items: center;
}
.intro-grid.reverse {
  grid-template-columns: .9fr 1.1fr;
}
.section h2 {
  font-size: clamp(2rem,4vw,3.45rem);
  font-weight: 400;
  margin: .35rem 0 1.25rem;
}
.section p:not(.kicker),.page-lead,.contact-card p {
  letter-spacing: .055em;
}
.big {
  font-family: "Playfair Display",Georgia,serif;
  font-size: clamp(1.18rem,2vw,1.48rem);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: .005em !important;
  color: var(--ink);
}
.feature-img {
  width: 100%;
  min-height: 380px;
  max-height: 580px;
  object-fit: cover;
}
.feature-img.tall {
  min-height: 520px;
}
.text-link {
  font-family: "Roboto",Arial,sans-serif;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold-deep);
}
.page-hero {
  background: var(--cream);
  padding: 76px 0 62px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.8rem,6vw,5rem);
  font-weight: 400;
  margin: .3rem 0;
}
.page-lead {
  font-size: 1.12rem;
  max-width: 700px;
  font-weight: 300;
}
.services ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 13px 36px;
  padding-left: 20px;
}
.gallery {
  columns: 3 280px;
  column-gap: 18px;
}
.gallery figure {
  margin: 0 0 18px;
  break-inside: avoid;
  background: var(--cream);
}
.gallery img {
  width: 100%;
  display: block;
  min-height: 220px;
  object-fit: cover;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
}
.contact-card {
  border-left: 1px solid var(--gold);
  padding: 12px 0 12px 22px;
  margin: 30px 0;
}
.map-shell {
  background: var(--cream);
  border: 1px solid var(--line);
  min-height: 260px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
}
.map-shell iframe {
  width: 100%;
  height: 350px;
  border: 0;
}
.contact-form {
  display: grid;
  gap: 17px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 300;
  letter-spacing: .05em;
}
.contact-form input,.contact-form textarea {
  width: 100%;
  border: 1px solid #d3cbc4;
  padding: .78rem;
  font: 300 1rem/1.6 "Open Sans",Arial,sans-serif;
  letter-spacing: .035em;
  color: var(--ink);
}
.check {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 300 !important;
}
.check input {
  width: auto !important;
  margin-top: .4rem;
}
.hp {
  position: absolute;
  left: -9999px;
}
.notice {
  padding: 14px 16px;
  margin: 0 0 18px;
  border-left: 1px solid #777;
  background: #f5f5f5;
}
.notice.sent {
  border-color: #3a7f52;
}
.notice.error {
  border-color: #a52a2a;
}
.notice.warn {
  border-color: #b87816;
  background: #fff7e8;
}
.footer {
  background: #f7f4f0;
  color: var(--ink);
  padding: 62px 0 34px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer .brand {
  margin: 0 auto 22px;
}
.footer .brand span {
  color: var(--ink);
  font-size: clamp(1.75rem,3vw,2.45rem);
  font-weight: 400;
}
.footer .brand-divider {
  height: 24px;
  margin: 11px auto 10px;
}
.footer .brand small {
  color: var(--gold);
  font-size: .64rem;
}
.footer-contact {
  color: var(--muted);
  margin: .1rem 0 20px;
  font-size: .82rem;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: .08em;
}
.footer-contact a {
  text-decoration: none;
}
.inline-divider {
  display: inline-block;
  width: 1px;
  height: .85em;
  background: var(--gold);
  margin: 0 .75rem;
  vertical-align: -.05em;
}
.footer-links {
  display: flex;
  gap: 26px;
  justify-content: center;
  font-family: "Roboto",Arial,sans-serif;
  font-size: .68rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.footer-links a {
  text-decoration: none;
}
.legal-line {
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
  font-size: .72rem;
  letter-spacing: .08em;
}
.footer a:hover,.nav a:hover {
  color: var(--gold-deep);
}
@media (max-width:880px) {
  .header-lockup {
    padding: 22px 0 18px;
  }
  .brand-divider {
    height: 22px;
    margin: 10px auto;
  }
  .brand small {
    font-size: .62rem;
    letter-spacing: .22em;
  }
  .header-row {
    min-height: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    gap: 4px;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 9px 0;
  }
  .langs {
    margin-left: auto;
  }
  .hero {
    min-height: 64vh;
  }
  .intro-grid,.intro-grid.reverse,.contact-grid {
    grid-template-columns: 1fr;
  }
  .intro-grid.reverse img {
    order: 2;
  }
  .feature-img,.feature-img.tall {
    min-height: 320px;
  }
  .services ul {
    grid-template-columns: 1fr;
  }
  .gallery {
    columns: 2 220px;
  }
}
@media (max-width:520px) {
  .wrap {
    width: min(calc(100% - 28px),var(--max));
  }
  .brand span {
    font-size: 1.65rem;
  }
  .brand small {
    font-size: .56rem;
    letter-spacing: .18em;
  }
  .hero h1 {
    font-size: 2.7rem;
  }
  .gallery {
    columns: 1;
  }
  .page-hero {
    padding: 52px 0 42px;
  }
  .route-actions .btn {
    width: 100%;
  }
  .footer .brand span {
    font-size: 1.7rem;
  }
}
/* V1.4 refinements */
.brand small {
  margin-top: 9px;
}
.brand-divider {
  display: none !important;
}
.nav .book,.mobile-book {
  background: var(--gold-deep);
  color: #fff !important;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: .68rem 1.18rem;
  box-shadow: none;
}
.nav .book:hover,.mobile-book:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff !important;
}
.mobile-actions {
  display: none;
}
.nav-toggle {
  width: 42px;
  height: 38px;
  padding: 8px 9px;
  border: 0;
  background: transparent;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 23px;
  height: 1px;
  background: var(--ink);
  transition: transform .2s ease,opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-book {
  display: none;
  text-decoration: none;
  font-family: "Roboto",Arial,sans-serif;
  font-size: .67rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.footer .brand {
  margin-bottom: 18px;
}
.footer .brand span {
  font-size: clamp(1.25rem,2vw,1.7rem);
}
.footer .brand small {
  font-size: .58rem;
  letter-spacing: .24em;
  margin-top: 7px;
}
.contact-separator {
  color: var(--gold);
  padding: 0 .5rem;
}
.services {
  margin-top: 82px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 36px;
}
.service-item {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 26px 18px;
  font-family: "Roboto",Arial,sans-serif;
  font-size: .75rem;
  font-weight: 300;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.service-item:nth-child(4n) {
  border-right: 0;
}
.service-item:nth-child(n/**/+5) {
  border-top: 1px solid var(--line);
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--gold-deep);
  display: grid;
  place-items: center;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width:880px) {
  .header-lockup {
    padding: 18px 0 12px;
  }
  .brand small {
    margin-top: 6px;
  }
  .header-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 6px 0;
  }
  .mobile-actions {
    display: flex;
    grid-column: 1 / 3;
    align-items: center;
    gap: 10px;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-book {
    display: inline-flex;
  }
  .desktop-book {
    display: none !important;
  }
  .langs {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }
  .nav {
    grid-column: 1 / -1;
    order: initial;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 14px;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 11px 4px;
    border-bottom: 1px solid rgba(233,226,220,.65);
  }
  .service-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .service-item:nth-child(4n) {
    border-right: 1px solid var(--line);
  }
  .service-item:nth-child(2n) {
    border-right: 0;
  }
  .service-item:nth-child(n/**/+3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width:520px) {
  .brand span {
    font-size: 1.55rem;
  }
  .brand small {
    font-size: .52rem;
    letter-spacing: .16em;
  }
  .mobile-book {
    font-size: .61rem;
    padding: .55rem .82rem;
  }
  .service-item {
    min-height: 145px;
    padding: 22px 10px;
    font-size: .65rem;
    letter-spacing: .1em;
  }
  .service-icon {
    width: 40px;
    height: 40px;
  }
  .footer .brand span {
    font-size: 1.28rem;
  }
  .footer .brand small {
    font-size: .5rem;
  }
}
/* V1.5 — sticky compact header, refined services and lightbox */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .25s ease,background .25s ease;
}
.compact-brand {
  display: none;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(43,50,58,.08);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
}
.site-header.scrolled .header-lockup {
  display: none;
}
.site-header.scrolled .header-nav-wrap {
  border-top: 0;
}
.site-header.scrolled .header-row {
  grid-template-columns: minmax(250px,1fr) auto auto;
  gap: 24px;
  min-height: 72px;
}
.site-header.scrolled .compact-brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: flex-start;
  text-align: left;
}
.site-header.scrolled .compact-brand span {
  font-size: 1.42rem;
}
.site-header.scrolled .compact-brand small {
  font-size: .52rem;
  letter-spacing: .20em;
  margin-top: 3px;
}
.site-header.scrolled .nav {
  grid-column: 2;
  gap: clamp(18px,2vw,34px);
}
.site-header.scrolled .langs {
  grid-column: 3;
}
.site-header.scrolled .nav .book {
  padding: .55rem .95rem;
}
.services {
  margin-top: 78px;
}
.services h2 {
  text-align: center;
}
.service-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(28px,5vw,72px);
  border: 0;
  margin-top: 34px;
}
.service-item {
  min-height: 0;
  flex: 0 1 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 11px;
  padding: 0;
  border: 0 !important;
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.service-icon {
  width: 38px;
  height: 38px;
  color: var(--gold-deep);
  opacity: .88;
}
.service-icon svg {
  stroke-width: 1.15;
}
.image-button,.gallery-thumb {
  border: 0;
  padding: 0;
  background: none;
  display: block;
  width: 100%;
  cursor: zoom-in;
}
.image-button img,.gallery-thumb img {
  display: block;
  width: 100%;
}
.inline-gallery-link {
  border: 0;
  background: none;
  padding: 0;
  margin-left: .35em;
  color: var(--gold-deep);
  font: 300 .76rem/1.5 "Roboto",Arial,sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.gallery-heading {
  text-align: center;
  margin-bottom: 34px;
}
.gallery-heading h2 {
  margin: .25rem 0 0;
}
.gallery-section+.gallery-section {
  padding-top: 90px;
}
.hidden-gallery-data {
  display: none;
}
.lightbox[hidden] {
  display: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(14px,3vw,36px);
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,22,28,.93);
  backdrop-filter: blur(9px);
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(96vw,1500px);
  height: min(92vh,980px);
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) 56px;
  grid-template-rows: minmax(0,1fr) auto;
  align-items: center;
}
.lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  min-height: 0;
}
.lightbox-image {
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 132px);
  object-fit: contain;
  opacity: 1;
  transition: opacity .18s ease;
}
.lightbox-image.is-loading {
  opacity: .35;
}
.lightbox-stage figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #eee;
  padding: 14px 4px 8px;
  font-size: .76rem;
  letter-spacing: .07em;
}
.lightbox-counter {
  color: var(--gold);
}
.lightbox-close,.lightbox-nav {
  border: 0;
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font: 300 2rem/1 Arial,sans-serif;
}
.lightbox-nav {
  width: 46px;
  height: 72px;
  border-radius: 999px;
  font: 300 2.3rem/1 Georgia,serif;
}
.lightbox-prev {
  grid-column: 1;
  grid-row: 1;
}
.lightbox-next {
  grid-column: 3;
  grid-row: 1;
}
.lightbox-thumbs {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  justify-content: flex-start;
  padding: 7px 0 0;
  scrollbar-width: thin;
}
.lightbox-thumbs button {
  flex: 0 0 72px;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  opacity: .48;
  cursor: pointer;
}
.lightbox-thumbs button.active {
  opacity: 1;
  border-color: var(--gold);
}
.lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-open {
  overflow: hidden;
}
@media (max-width:880px) {
  .site-header.scrolled .header-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 8px;
    min-height: 58px;
    padding: 6px 0;
  }
  .site-header.scrolled .compact-brand {
    grid-column: 1;
    min-width: 0;
  }
  .site-header.scrolled .compact-brand span {
    font-size: 1.03rem;
    white-space: nowrap;
  }
  .site-header.scrolled .compact-brand small {
    font-size: .43rem;
    letter-spacing: .12em;
    white-space: nowrap;
  }
  .site-header.scrolled .mobile-actions {
    grid-column: 2;
    display: flex;
  }
  .site-header.scrolled .langs {
    grid-column: 3;
  }
  .site-header.scrolled .nav {
    grid-column: 1/-1;
  }
  .service-grid {
    grid-template-columns: none;
    display: flex;
    gap: 28px 34px;
  }
  .service-item {
    flex-basis: 105px;
  }
  .lightbox {
    padding: 10px;
  }
  .lightbox-panel {
    width: 100%;
    height: 96vh;
    grid-template-columns: 40px minmax(0,1fr) 40px;
  }
  .lightbox-nav {
    width: 36px;
    height: 58px;
  }
  .lightbox-close {
    right: 2px;
    top: 2px;
    background: rgba(20,20,20,.45);
  }
  .lightbox-stage figcaption {
    font-size: .68rem;
  }
  .lightbox-thumbs button {
    flex-basis: 58px;
    width: 58px;
    height: 44px;
  }
}
@media (max-width:520px) {
  .site-header.scrolled .compact-brand small {
    display: none;
  }
  .site-header.scrolled .compact-brand span {
    font-size: .95rem;
  }
  .site-header.scrolled .mobile-book {
    display: none;
  }
  .service-grid {
    gap: 26px 18px;
  }
  .service-item {
    flex-basis: 92px;
    font-size: .6rem;
  }
  .service-icon {
    width: 34px;
    height: 34px;
  }
  .lightbox-panel {
    grid-template-columns: 34px minmax(0,1fr) 34px;
  }
  .lightbox-stage figcaption {
    padding-inline: 0;
    gap: 8px;
  }
  .lightbox-caption {
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lightbox-thumbs {
    grid-column: 1/-1;
  }
  .lightbox-prev {
    justify-self: start;
  }
  .lightbox-next {
    justify-self: end;
  }
}
/* V1.6 — negative compact sticky header */
.site-header.scrolled {
  background: rgba(51,65,81,.97);
  border-bottom-color: rgba(255,255,255,.10);
  box-shadow: 0 10px 34px rgba(20,27,34,.20);
  backdrop-filter: blur(12px);
}
.site-header.scrolled .header-nav-wrap {
  border-top-color: transparent;
}
.site-header.scrolled .compact-brand span {
  color: #fff;
}
.site-header.scrolled .compact-brand small {
  color: var(--gold);
}
.site-header.scrolled .nav a {
  color: rgba(255,255,255,.91);
}
.site-header.scrolled .nav a:hover,
.site-header.scrolled .nav a.active {
  color: var(--gold);
}
.site-header.scrolled .nav .book {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.site-header.scrolled .nav .book:hover {
  background: #d4b59d;
  border-color: #d4b59d;
  color: var(--ink);
}
.site-header.scrolled .langs a {
  color: rgba(255,255,255,.78);
}
.site-header.scrolled .langs a:hover,
.site-header.scrolled .langs a.active {
  color: var(--gold);
}
.site-header.scrolled .nav-toggle {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: transparent;
}
.site-header.scrolled .nav-toggle .bar,
.site-header.scrolled .nav-toggle span {
  background: #fff;
}
.site-header.scrolled .mobile-book {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
@media (max-width:880px) {
  .site-header.scrolled .nav {
    background: rgba(51,65,81,.99);
    border-top: 1px solid rgba(255,255,255,.10);
  }
}
/* V1.8 — taller compact header and larger brand; footer unchanged */
.site-header .header-lockup {
  display: none;
}
.site-header .header-nav-wrap {
  border-top: 0;
}
.site-header .header-row {
  grid-template-columns: minmax(280px,1fr) auto auto;
  gap: 26px;
  min-height: 94px;
}
.site-header .compact-brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: flex-start;
  text-align: left;
}
.site-header .compact-brand span {
  font-size: 1.84rem;
  line-height: 1.05;
  color: var(--ink);
}
.site-header .compact-brand small {
  margin-top: 6px;
  font-size: .64rem;
  line-height: 1.25;
  letter-spacing: .19em;
  color: var(--gold-deep);
  white-space: nowrap;
}
.site-header .nav {
  grid-column: 2;
  gap: clamp(18px,2vw,34px);
}
.site-header .langs {
  grid-column: 3;
}
.site-header .nav a {
  font-size: .71rem;
}
.site-header .nav .book {
  padding: .58rem 1rem;
}
.site-header.scrolled .header-row {
  min-height: 82px;
}
.site-header.scrolled .compact-brand span {
  font-size: 1.72rem;
}
.site-header.scrolled .compact-brand small {
  font-size: .60rem;
  letter-spacing: .18em;
  margin-top: 5px;
}
.footer {
  background: var(--ink);
  color: #fff;
  border-top: 0;
}
.footer .brand span {
  color: #fff;
}
.footer .brand small {
  color: var(--gold);
}
.footer .footer-contact {
  color: rgba(255,255,255,.76);
}
.footer .footer-contact a {
  color: rgba(255,255,255,.9);
}
.footer .footer-links a {
  color: rgba(255,255,255,.78);
}
.footer .footer-links a:hover {
  color: var(--gold);
}
.footer .legal-line {
  color: rgba(255,255,255,.62);
}
.footer .contact-separator {
  color: var(--gold);
}
@media (max-width:880px) {
  .site-header .header-row,
  .site-header.scrolled .header-row {
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 8px;
    min-height: 70px;
    padding: 9px 0;
  }
  .site-header .compact-brand {
    grid-column: 1;
    min-width: 0;
  }
  .site-header .compact-brand span,
  .site-header.scrolled .compact-brand span {
    font-size: 1.28rem;
    white-space: nowrap;
  }
  .site-header .compact-brand small,
  .site-header.scrolled .compact-brand small {
    font-size: .50rem;
    letter-spacing: .11em;
    white-space: nowrap;
    margin-top: 4px;
  }
  .site-header .mobile-actions,
  .site-header.scrolled .mobile-actions {
    grid-column: 2;
    display: flex;
  }
  .site-header .langs,
  .site-header.scrolled .langs {
    grid-column: 3;
  }
  .site-header .nav,
  .site-header.scrolled .nav {
    grid-column: 1/-1;
  }
}
@media (max-width:520px) {
  .site-header .compact-brand span,
  .site-header.scrolled .compact-brand span {
    font-size: 1.12rem;
  }
  .site-header .compact-brand small,
  .site-header.scrolled .compact-brand small {
    display: block;
    font-size: .45rem;
    letter-spacing: .08em;
  }
}
/* V1.9 — sticky header identical in geometry; only colors change */
.site-header.scrolled .header-row {
  grid-template-columns: minmax(280px,1fr) auto auto;
  gap: 26px;
  min-height: 94px;
}
.site-header.scrolled .compact-brand span {
  font-size: 1.84rem;
  line-height: 1.05;
}
.site-header.scrolled .compact-brand small {
  margin-top: 6px;
  font-size: .64rem;
  line-height: 1.25;
  letter-spacing: .19em;
}
.site-header.scrolled .nav {
  gap: clamp(18px,2vw,34px);
}
.site-header.scrolled .nav a {
  font-size: .71rem;
}
.site-header.scrolled .nav .book {
  padding: .58rem 1rem;
}
@media (max-width:880px) {
  .site-header.scrolled .header-row {
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 8px;
    min-height: 70px;
    padding: 9px 0;
  }
  .site-header.scrolled .compact-brand span {
    font-size: 1.28rem;
    line-height: 1.05;
  }
  .site-header.scrolled .compact-brand small {
    font-size: .50rem;
    letter-spacing: .11em;
    margin-top: 4px;
    line-height: 1.25;
  }
}
@media (max-width:520px) {
  .site-header.scrolled .compact-brand span {
    font-size: 1.12rem;
  }
  .site-header.scrolled .compact-brand small {
    display: block;
    font-size: .45rem;
    letter-spacing: .08em;
    margin-top: 4px;
  }
}
/* V1.9.2 - Mobile navigation: language switcher stays inside expandable menu */
.mobile-language-panel {
  display: none;
}
@media (max-width:880px) {
  .site-header .header-row,.site-header.scrolled .header-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    min-width: 0;
  }
  .site-header .compact-brand,.site-header.scrolled .compact-brand {
    grid-column: 1;
    min-width: 0;
    max-width: 100%;
  }
  .site-header .compact-brand span,.site-header.scrolled .compact-brand span {
    white-space: normal;
    overflow-wrap: break-word;
    font-size: clamp(.93rem,3.3vw,1.28rem);
  }
  .site-header .compact-brand small,.site-header.scrolled .compact-brand small {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(.39rem,1.5vw,.50rem);
  }
  .site-header .mobile-actions,.site-header.scrolled .mobile-actions {
    grid-column: 2;
    gap: 8px;
    min-width: 0;
  }
  .site-header .desktop-langs,.site-header.scrolled .desktop-langs {
    display: none;
  }
  .site-header .nav,.site-header.scrolled .nav {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .mobile-language-panel {
    display: block;
    width: 100%;
    padding: 14px 0 5px;
    border-top: 1px solid var(--line);
  }
  .mobile-language-label {
    display: block;
    font-size: .69rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 6px;
  }
  .mobile-language-links {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .mobile-language-links a {
    padding: 8px 0;
    font-size: .85rem;
  }
  .site-header.scrolled .mobile-language-panel {
    border-top-color: rgba(255,255,255,.22);
  }
  .site-header.scrolled .mobile-language-label {
    color: rgba(255,255,255,.75);
  }
}
@media (max-width:390px) {
  .site-header .header-row,.site-header.scrolled .header-row {
    gap: 5px;
  }
  .site-header .mobile-book,.site-header.scrolled .mobile-book {
    font-size: .57rem;
    padding: .50rem .60rem;
    letter-spacing: .04em;
  }
  .site-header .nav-toggle,.site-header.scrolled .nav-toggle {
    width: 38px;
    flex: 0 0 38px;
  }
}
.language-settings {
  border: 1px solid var(--line);
  padding: 15px;
  margin: 20px 0;
}
/* Shared Villa Maddalena identity and contact dates */
.brand.compact-brand,.footer .brand.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 60px;
  height: 50px;
  flex: none;
  object-fit: contain;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}
.brand-wordmark strong {
  font-family: "Playfair Display",Georgia,serif;
  font-weight: 500 !important;
  color: var(--ink);
  font-size: clamp(1.12rem,2vw,1.6rem);
  white-space: nowrap;
  line-height: 1.12;
}
.brand-wordmark small,.site-header.scrolled .brand-wordmark small {
  display: block !important;
  font-size: .59rem !important;
  letter-spacing: .26em !important;
  text-transform: uppercase;
  margin-top: 5px !important;
  color: var(--gold-deep);
}
.site-header.scrolled .brand-wordmark strong {
  color: #fff;
}
.site-header.scrolled .brand-mark {
  filter: brightness(0) invert(1);
}
.footer .brand-wordmark strong {
  color: #fff;
  font-size: 1.52rem;
}
.footer .brand-wordmark small {
  color: var(--gold);
}
.footer .brand-mark {
  filter: brightness(0) invert(1);
  width: 72px;
  height: 60px;
}
.hero {
  position: relative;
  overflow: hidden;
}
.hero-photos {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photos .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.hero .hero-shade,.hero .hero-copy {
  position: relative;
  z-index: 1;
}
.hero .hero-shade {
  position: absolute;
  inset: 0;
}
.stay-dates {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
@media (max-width:880px) {
  .site-header .brand-mark {
    width: 47px;
    height: 42px;
  }
  .site-header .brand-wordmark strong {
    font-size: 1.05rem !important;
  }
  .site-header .brand-wordmark small {
    font-size: .47rem !important;
    letter-spacing: .12em !important;
  }
  .site-header .header-row,.site-header.scrolled .header-row {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
  }
}
@media (max-width:440px) {
  .site-header .brand-mark {
    width: 39px;
    height: 36px;
  }
  .site-header .brand-wordmark strong {
    font-size: .9rem !important;
  }
  .site-header .brand-wordmark small {
    font-size: .42rem !important;
  }
  .stay-dates {
    grid-template-columns: 1fr;
  }
}
/* Hero selection: only backend-enabled photos may rotate */
.hero-photos .hero-photo,.hero-photos .hero-photo:nth-child(n) {
  animation: none !important;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-photos .hero-photo:first-child,.hero-photos .hero-photo.hero-current {
  opacity: 1;
}
/* Inner pages have photo headers, without touching the separate privacy work */
.page-hero-image {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #30343b;
  padding-top: 95px;
  padding-bottom: 80px;
}
.page-hero-image:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg,rgba(17,27,32,.68),rgba(17,27,32,.26)),var(--page-hero);
  background-position: center;
  background-size: cover;
  z-index: -1;
}
.page-hero-image .kicker,.page-hero-image h1,.page-hero-image .page-lead {
  color: #fff;
}
.brand-wordmark strong {
  font-family: "Playfair Display",Georgia,serif !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.12rem,2vw,1.6rem) !important;
}
@media (max-width:520px) {
  .brand-wordmark strong {
    font-size: 1.05rem !important;
    letter-spacing: 0 !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  .hero-photos.is-rotating .hero-photo {
    transition: none;
  }
}
/* V1.9.10 Unified hero: consistent non-photographic fallback (page-specific image optional). */
.vm-unified-hero.vm-hero-text {
  background: #f1eae0;
  color: #3f413c;
  background-image: none;
  min-height: 0;
}
.vm-unified-hero.vm-hero-text::before,.vm-unified-hero.vm-hero-text::after {
  display: none;
}
.vm-unified-hero.vm-hero-text .kicker {
  color: #a64a3c;
}
.vm-unified-hero.vm-hero-text h1,.vm-unified-hero.vm-hero-text .page-lead {
  color: #3f413c;
  text-shadow: none;
}
.vm-unified-hero.vm-hero-text .wrap {
  position: relative;
  z-index: 1;
}
/* V1.9.11 — Credits dialog, aligned with public footer */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.footer-links .credits-trigger {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.78);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-links .credits-trigger:hover,.footer-links .credits-trigger:focus-visible {
  color: var(--gold,#e2bb80);
}
.vm-credits-dialog {
  width: min(92vw,590px);
  max-height: min(85vh,780px);
  border: 1px solid #e2d5c8;
  background: #faf7f2;
  color: #383b35;
  padding: 0;
  box-shadow: 0 18px 65px #0005;
}
.vm-credits-dialog::backdrop {
  background: rgba(18,27,33,.68);
}
.vm-credits-content {
  padding: clamp(20px,4vw,34px);
}
.vm-credits-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.vm-credits-top h2 {
  margin: 0;
  font-family: "Playfair Display",Georgia,serif;
  font-weight: 400;
  font-size: 2rem;
}
.vm-credits-close {
  font: 2rem/1 Arial,sans-serif;
  background: transparent;
  color: #43403d;
  border: 0;
  cursor: pointer;
  padding: .2rem .5rem;
}
.vm-credits-subtitle {
  color: #a64a3c;
  margin: .35rem 0 1.5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .82rem;
}
.vm-credits-dialog dl {
  display: grid;
  gap: .5rem;
  margin: 0;
}
.vm-credits-dialog dt {
  font-weight: 700;
  margin-top: .7rem;
}
.vm-credits-dialog dd {
  margin: 0;
  line-height: 1.6;
}
.vm-credits-dialog a {
  color: #285d82;
  text-underline-offset: 3px;
}
.vm-credits-dialog small {
  display: block;
  color: #6a6c66;
}
.vm-credits-case {
  margin-top: 1.6rem;
}
.vm-credits-note {
  font-size: .76rem;
  color: #74726d;
  margin: 1.5rem 0 0;
}
/* V1.9.13 — compact footer, clear CIN/CITR, uniform links */
.footer .vm-legal-ids {
  margin: .35rem 0 .25rem;
  line-height: 1.45;
  text-align: center;
  font-size: .93rem;
  letter-spacing: .012em;
}
.footer .vm-legal-ids strong {
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
}
.footer .footer-links {
  margin-top: .35rem;
  padding-top: 0;
  border: 0;
}
.footer .footer-links .credits-trigger {
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.footer .footer-links .credits-trigger:hover,.footer .footer-links .credits-trigger:focus-visible {
  color: var(--sand,#e8cfb0);
}
@media (max-width:460px) {
  .footer .vm-legal-ids strong {
    white-space: normal;
  }
  .footer .vm-legal-ids {
    font-size: .86rem;
  }
}
/* VM 1.9.14: compact footer, exact parity for Credits link */
.footer .footer-inner,.footer .footer-links,.footer .vm-legal-ids {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.footer .vm-legal-ids {
  padding-top: 0 !important;
}
.footer .footer-inner::before,.footer .footer-inner::after,.footer .footer-links::before {
  display: none !important;
}
.footer .footer-links .credits-trigger {
  appearance: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: rgba(255,255,255,.78) !important;
  text-transform: uppercase !important;
  letter-spacing: inherit !important;
  font: inherit !important;
  cursor: pointer;
  padding: 0 !important;
  line-height: inherit !important;
}
.footer .footer-links .credits-trigger:hover,.footer .footer-links .credits-trigger:focus-visible {
  color: var(--gold,#e2bb80) !important;
  text-decoration: none !important;
}
.footer .vm-legal-ids {
  color: #f6f3ee !important;
  font-weight: 700 !important;
  margin: .35rem auto .2rem;
}
/* Versioned legal documents: navigation at the side on desktop */
.vm-legal-layout {
  display: grid;
  grid-template-columns: minmax(180px,230px) minmax(0,1fr);
  align-items: start;
  gap: clamp(22px,4vw,58px);
  max-width: 1120px;
  margin: auto;
}
.vm-legal-toc {
  position: sticky;
  top: 112px;
  border-left: 3px solid #ad7663;
  background: #f7f2ed;
  padding: 18px 18px 18px 20px;
}
.vm-legal-toc strong {
  display: block;
  color: #334151;
  font-weight: 700;
  margin-bottom: 12px;
}
.vm-legal-toc a {
  display: block;
  padding: 6px 0;
  color: #334151;
  text-decoration: none;
  font-size: .87rem;
  line-height: 1.35;
}
.vm-legal-toc a:hover,.vm-legal-toc a:focus-visible {
  text-decoration: underline;
}
.vm-legal-text {
  min-width: 0;
  line-height: 1.75;
  color: #334151;
}
.vm-legal-text h2 {
  font-size: clamp(1.16rem,2.1vw,1.55rem);
  margin: 1.85rem 0 .6rem;
  color: #334151;
}
.vm-legal-text h2:first-child {
  margin-top: 0;
}
.vm-legal-text p {
  margin: 0 0 1.15rem;
}
.vm-legal-text strong {
  font-weight: 700;
  color: #334151;
}
.vm-legal-version {
  font-size: .83rem;
  color: #746d65;
  margin-top: 2rem;
}
@media (max-width:760px) {
  .vm-legal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .vm-legal-toc {
    position: static;
  }
  .vm-legal-toc .vm-legal-toc-links {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(145px,1fr));
    gap: 0 12px;
  }
}
/* V1.9.16 — accessible archive for published legal notices */
.vm-legal-history {
  border-top: 1px solid #ded7d0;
  padding-top: 1rem;
  margin-top: 1.5rem;
}
.vm-legal-history>strong {
  color: #334151;
  font-weight: 700;
}
.vm-legal-history ul {
  margin: .75rem 0;
  padding-left: 1.4rem;
}
.vm-legal-history li {
  padding: .25rem 0;
}
.vm-legal-history a {
  color: #285d82;
  text-underline-offset: .18em;
}
.vm-legal-history small {
  font-size: .8em;
  color: #746d65;
}


/* Contact: compact transport directions (VM media migration 2026-10). */
.vm-arrival-guide{display:grid;gap:1rem;margin:1.25rem 0 1.5rem}
.vm-arrival-guide>div{border-left:3px solid #b27b60;padding:.15rem 0 .15rem 1rem}
.vm-arrival-guide h3{margin:0 0 .35rem;font-family:'Playfair Display',Georgia,serif;font-size:1.16rem;font-weight:600}
.vm-arrival-guide p{margin:.2rem 0 0;line-height:1.65}

/* V1.9.19 — Home without a hero photo: deliberate text-only fallback.
   Image selection is exclusively controlled by gallery.json hero_home. */
.hero.hero-text-only {
  min-height: clamp(340px, 48vh, 540px);
  background: #f1eae0;
  color: #3f413c;
}
.hero.hero-text-only .hero-copy {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(58px, 8vw, 105px);
}
.hero.hero-text-only .eyebrow { color: #a64a3c; }
.hero.hero-text-only .ghost {
  color: #3f413c;
  border-color: #aa8060;
}

/* V1.9.21 — Rotazione per tutte le hero; nessun fallback fotografico. */
.page-hero-slideshow { position:relative; isolation:isolate; overflow:hidden; }
.page-hero-slideshow .hero-photos { position:absolute; inset:0; z-index:0; }
.page-hero-slideshow .hero-photos .hero-photo { object-fit:cover; }
.page-hero-slideshow::before {
  z-index:1;
  background-image:linear-gradient(90deg,rgba(17,27,32,.68),rgba(17,27,32,.26));
}
.page-hero-slideshow > .wrap { position:relative; z-index:2; }
.vm-arrival-guide strong,.contact-grid .vm-contact-route strong {
  font-weight:700;
  color:#7e4031;
}
@media (prefers-reduced-motion:reduce) {
  .hero-photos.is-rotating .hero-photo { transition:none; }
}


/* V1.9.22 — Coherent editorial links across the public site.
   Action links echo the Home's "Guarda la terrazza →" presentation.
   Telephone, email, privacy and legal references retain normal text case
   and a subtle visible underline for recognition/accessibility.
   Navigation and button links retain their own semantics and styles. */
:root {
  --vm-editorial-link: #9e4e38;
  --vm-editorial-link-hover: #713725;
}

/* Inline, functional and document links: no browser purple/blue visited state. */
.section p a:not(.btn):not(.text-link),
.contact-card a,
.contact-form .check a,
.vm-legal-text a,
.vm-legal-history a,
.vm-credits-dialog a:not(.brand) {
  color: var(--vm-editorial-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(158,78,56,.46);
  text-underline-offset: .2em;
  text-transform: none;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.section p a:not(.btn):not(.text-link):visited,
.contact-card a:visited,
.contact-form .check a:visited,
.vm-legal-text a:visited,
.vm-legal-history a:visited,
.vm-credits-dialog a:not(.brand):visited { color: var(--vm-editorial-link); }
.section p a:not(.btn):not(.text-link):hover,
.contact-card a:hover,
.contact-form .check a:hover,
.vm-legal-text a:hover,
.vm-legal-history a:hover,
.vm-credits-dialog a:not(.brand):hover {
  color: var(--vm-editorial-link-hover);
  text-decoration-color: currentColor;
}

/* Editorial calls to action use the same lightweight identity as the Home. */
.text-link,
.inline-gallery-link,
.vm-review-links a.text-link {
  font-family: 'Roboto',Arial,sans-serif;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--vm-editorial-link);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: color .15s ease;
}
.inline-gallery-link { margin-left: .35em; cursor: pointer; }
.text-link:visited,
.vm-review-links a.text-link:visited { color: var(--vm-editorial-link); }
.text-link:hover,.inline-gallery-link:hover,.vm-review-links a.text-link:hover {
  color: var(--vm-editorial-link-hover);
  text-decoration: none;
}

/* Sidebar and archive are navigational aids: preserved typography/layout. */
.vm-legal-toc a:hover,.vm-legal-toc a:focus-visible { color: var(--vm-editorial-link-hover); }

/* Dark footer links are deliberately light; unlike content links, no underline. */
.footer .footer-contact a,
.footer .footer-contact a:visited { color: rgba(255,255,255,.92); text-decoration: none; }
.footer .footer-contact a:hover,
.footer .footer-contact a:focus-visible { color: #e7cbb4; text-decoration: underline; text-underline-offset: .2em; }
.footer .footer-links a:visited { color: rgba(255,255,255,.78); }
.footer .footer-links a:hover,.footer .footer-links a:focus-visible { color: #e7cbb4; }

/* Keyboard access: visible and consistent on inline links and actions. */
.section a:focus-visible,
.section button.inline-gallery-link:focus-visible,
.vm-legal-text a:focus-visible,
.vm-legal-toc a:focus-visible,
.vm-legal-history a:focus-visible,
.vm-credits-dialog a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .text-link,.inline-gallery-link,.vm-review-links a.text-link,
  .contact-card a,.contact-form .check a,.vm-legal-text a,.vm-legal-history a {
    transition: none;
  }
}

/* V1.9.23 — Conclusione Chi siamo: citazione firmata, leggera e responsive. */
.vm-about-quote-wrap {
  padding-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(.25rem, 2vw, 1rem);
}
.vm-about-quote {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.5rem) clamp(1.4rem, 4vw, 3rem);
  border-left: 3px solid var(--gold-deep);
  background: var(--cream);
  color: var(--ink);
}
.vm-about-quote p {
  font-family: "Playfair Display",Georgia,serif;
  font-size: clamp(1.05rem, 1.9vw, 1.30rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  margin: 0 0 .75rem;
}
.vm-about-quote footer { text-align: right; font-size: .98rem; }
.vm-about-quote cite { font-style: italic; font-weight: 400; }

/* Credits V01: identita Villa Maddalena, struttura informativa in stile schede. */
.vm-credits-dialog { width:min(780px,calc(100vw - 28px)); max-width:780px; max-height:min(88vh,850px); overflow-y:auto; }
.vm-credits-refined { padding:clamp(20px,3.8vw,34px); }
.vm-credits-refined .vm-credits-top { display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px; }
.vm-credits-refined .vm-credits-top h2,
.vm-credits-refined .vm-credits-panel h3 { font-family:'Playfair Display',Georgia,serif; }
.vm-credits-refined .vm-credits-subtitle { margin:.4rem 0 0; }
.vm-credits-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 26px; }
.vm-credits-refined .vm-credits-panel { min-width:0;padding:0 0 14px;border-bottom:1px solid rgba(152,106,80,.25); }
.vm-credits-refined .vm-credits-panel h3 { font-size:1.25rem;font-weight:500;line-height:1.25;margin:0 0 12px; }
.vm-credits-refined .vm-credits-facts { margin:0;display:grid;gap:5px; }
.vm-credits-refined .vm-credits-facts dt { font-size:.78rem;line-height:1.35;letter-spacing:.035em;font-weight:700;margin:4px 0 0; }
.vm-credits-refined .vm-credits-facts dd { font-size:.94rem;line-height:1.55;margin:0 0 6px;overflow-wrap:anywhere; }
.vm-credits-badges { display:flex;flex-wrap:wrap;gap:8px; }
.vm-credits-badges span { display:inline-flex;align-items:center;border:1px solid rgba(114,76,55,.18);background:#f3e7d9;color:#644a3e;padding:5px 10px;border-radius:4px;font-size:.78rem;line-height:1.4;font-weight:700;letter-spacing:.025em; }
.vm-credits-badges span:nth-child(2n) { background:#e0ece9;color:#2e5554;border-color:#bed4cf; }
.vm-credits-refined .vm-credits-case { margin:15px 0 0; }
@media(max-width:610px) { .vm-credits-grid { grid-template-columns:1fr;gap:14px; } .vm-credits-refined .vm-credits-panel h3 { font-size:1.17rem; } }

/* Media Loghi V01.3: versione chiara separata, senza invertire lo sfondo */
.brand-mark--dark{display:none!important;filter:none!important}
.site-header.scrolled .brand-mark--light{display:none!important}
.site-header.scrolled .brand-mark--dark{display:block!important;filter:brightness(0) invert(1)!important}
.footer .brand-mark--light{display:none!important}
.footer .brand-mark--dark{display:block!important;filter:brightness(0) invert(1)!important}

/* VM Media Loghi V04.5.3 — dimensione del simbolo in header e footer */
/* Desktop: normale e negativo condividono lo stesso box, senza cambiare il testo. */
.site-header .brand-mark,
.site-header.scrolled .brand-mark { width: 84px; height: 68px; flex: 0 0 84px; object-fit: contain; }
.footer .brand-mark { width: 80px; height: 65px; flex: 0 0 80px; object-fit: contain; }
/* Adattamento progressivo: priorita' alla leggibilita' del menu. */
@media(max-width:880px) {
 .site-header .brand-mark,.site-header.scrolled .brand-mark { width: 55px; height: 46px; flex-basis: 55px; }
 .footer .brand-mark { width: 70px; height: 57px; flex-basis: 70px; }
}
@media(max-width:440px) {
 .site-header .brand-mark,.site-header.scrolled .brand-mark { width: 42px; height: 38px; flex-basis: 42px; }
 .footer .brand-mark { width: 60px; height: 50px; flex-basis: 60px; }
}

/* VM Frontend Brand Fix V01: identical wordmark placement in light and sticky states.
   Keep image geometry and logo asset selection unchanged. */
.site-header .brand.compact-brand,
.site-header.scrolled .brand.compact-brand { align-items: center; }
.site-header .brand.compact-brand .brand-wordmark,
.site-header.scrolled .brand.compact-brand .brand-wordmark {
  align-self: center; margin: 0; padding: 0; transform: none;
}

/* VM-SERVIZI-TEXT-V05-3: separate service title and description */
.service-item .vm-service-description {
  display: block;
  margin-top: .55rem;
  font-size: .92em;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .045em;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* VM-SERVIZI-LAYOUT-V05-6 | Griglia servizi: quattro, due o una colonna. */
/* Modifica circoscritta alla sezione Servizi di Chi siamo. */
.services .service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  max-width: 1120px;
  margin: 34px auto 0;
  gap: 32px 24px;
  border: 0;
}
.services .service-grid > .service-item {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
  min-height: 0;
  padding: 12px 14px 16px;
  border: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
  font-size: .84rem;
  line-height: 1.55;
  letter-spacing: .055em;
  overflow-wrap: anywhere;
}
.services .service-grid > .service-item > span:not(.service-icon) {
  display: block;
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
}
.services .service-grid .vm-service-description {
  display: block;
  margin-top: .55rem;
  font-size: .9em;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .025em;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .services .service-grid {
    max-width: 640px;
    gap: 24px 18px;
  }
  .services .service-grid > .service-item {
    flex-basis: calc((100% - 18px) / 2);
    padding: 12px 14px;
  }
}
@media (max-width: 520px) {
  .services .service-grid {
    max-width: 350px;
    gap: 24px;
  }
  .services .service-grid > .service-item {
    flex-basis: 100%;
    font-size: .9rem;
    padding: 10px 18px;
  }
}

/* VM-ServicesCompact V01.3 | Ripristino composizione originale a icona sopra il titolo.
   I dettagli restano chiusi nativamente finche' l'utente non attiva summary. */
.services .service-grid.vm-services-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  align-items: start;
  gap: 16px 24px;
  max-width: 1120px;
  margin: 34px auto 0;
}
.services .service-grid.vm-services-compact > .vm-service-card {
  display: block;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 14px 8px;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .055em;
  text-align: center;
  overflow-wrap: anywhere;
}
.services .vm-service-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  gap: 12px;
  padding: 0;
  margin: 0;
  min-height: 0;
  list-style: none;
  text-align: center;
}
.services summary.vm-service-summary { cursor: pointer; }
.services summary.vm-service-summary::-webkit-details-marker { display: none; }
.services summary.vm-service-summary::marker { content: ''; }
.services summary.vm-service-summary:focus-visible { outline: 2px solid var(--gold-deep,#927a43); outline-offset: 4px; }
.services .vm-service-summary .service-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  color: var(--gold-deep);
  opacity: .88;
}
.services .vm-service-summary .service-icon svg { width: 100%; height: 100%; stroke-width: 1.15; }
.services .vm-service-name {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 0 6px;
  font-weight: 300;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}
/* Icona discreta: indica espansione senza modificare spazio tra icona e titolo. */
.services .vm-service-chevron {
  position: absolute;
  right: -5px;
  bottom: .3em;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .65;
  transition: transform .18s ease;
}
.services details[open] > .vm-service-summary .vm-service-chevron { transform: rotate(225deg); }
.services .vm-service-card > .vm-service-detail.vm-service-description {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: .55rem auto 0;
  padding: 0;
  font-size: .96em;
  font-weight: 400;
  opacity: .84;
  line-height: 1.5;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .services .service-grid.vm-services-compact { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 640px; gap: 16px 18px; }
  .services .service-grid.vm-services-compact > .vm-service-card { padding: 8px 14px; }
}
@media (max-width: 520px) {
  .services .service-grid.vm-services-compact { grid-template-columns: minmax(0,1fr); max-width: 350px; gap: 14px; }
  .services .service-grid.vm-services-compact > .vm-service-card { padding: 8px 18px; font-size: .9rem; }
  .services .vm-service-summary .service-icon { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .services .vm-service-chevron { transition: none; } }

/* VM-ServicesCategories V01 - gruppo sobrio, stessa grafica delle schede. */
.services .vm-service-category { margin: 0; padding: 0; }
.services .vm-service-category + .vm-service-category { margin-top: 26px; }
.services .vm-service-category-title {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  margin: 26px 0 0;
  text-align: center;
  font-size: clamp(.98rem,1.6vw,1.12rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.services .vm-service-category .service-grid.vm-services-compact { margin-top: 16px; }
@media (max-width: 520px) {
  .services .vm-service-category + .vm-service-category { margin-top: 20px; }
  .services .vm-service-category-title { margin-top: 20px; }
}
