/* incanto: site styles. Wordmark and Inter from the brand guide (plan/BRAND_GUIDE.md);
   the blue palette is the original site's, by the client's choice. */

/* Variable Inter with an optical-size axis: the browser picks the text cut for small type and the display cut for large type. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-italic.woff2") format("woff2"); }

:root {
  --ink: #2f384b;
  --ink-soft: #565f70;
  --bg: #f4f5ff;
  --paper: #ffffff;
  --panel: #acc8fe;
  --soft: #dfe8ff;
  --sky: #87cefa;
  --taken: #e3e4ec;
  --tint: rgba(47, 56, 75, 0.12);
  --error: #b3261e;
  --ok: #1e6b3a;
  --draft: #9a5b00;
  --radius: 4px;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  /* Type scale: major third (1.25) from a 16px base. Use these sizes only. */
  --step--2: 0.8125rem;                                   /* 13px: small capital labels, calendar weekdays */
  --step--1: 0.875rem;                                    /* 14px: captions, navigation, secondary notes */
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);     /* 16-17px: body text */
  --step-1: 1.25rem;                                      /* 20px: introduction, sub-headings */
  --step-2: 1.5625rem;                                    /* 25px: the blocks under What's provided */
  --step-3: clamp(1.5625rem, 1.4rem + 0.75vw, 2rem);      /* 25-32px: section titles */
  --step-display: clamp(3rem, 2.3rem + 3.2vw, 4.5rem);    /* 48-72px: the wordmark on the home page */
  --measure: 36rem;                                       /* width of the centred text column */
  --gutter: 16px;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
html.viewer-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.6 var(--sans); font-optical-sizing: auto; }
button, input, textarea, select { font-family: inherit; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: 0.15em; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; text-wrap: balance; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }

.title { font-size: var(--step-3); letter-spacing: -0.015em; margin-bottom: 0.6em; overflow-wrap: break-word; }

/* The wordmark: lowercase incanto, with a much smaller LUCCA beneath it. */
.wordmark { display: inline-block; text-indent: -0.047em; font-size: 1.5rem; font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
/* The indents cancel each letter's built-in side space, so the i and the L sit on exactly the same left edge. */
.wordmark__place { display: block; text-indent: -0.083em; margin-top: 0.35em; font-size: 0.5em; letter-spacing: 0.22em; text-transform: uppercase; }
.wordmark--large { font-size: var(--step-display); letter-spacing: 0; } /* the display cut is already tightly spaced */
.wordmark--large .wordmark__place { font-size: 0.25em; letter-spacing: 0.26em; margin-top: 0.55em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 30; }
.skip:focus { left: var(--gutter); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---- buttons ---- */
.btn { display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius); padding: 0.7rem 1.75rem; font: 500 var(--step-0) var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #1f2635; }
.btn--small { padding: 0.45rem 1rem; font-size: var(--step--1); white-space: nowrap; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--soft); }
.btn--quiet { background: var(--sky); border-color: var(--sky); color: var(--ink); font-weight: 400; min-width: 10rem; }
.btn--quiet:hover { background: #6cbcef; border-color: #6cbcef; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn__short { display: none; }
@media (max-width: 30rem) { .btn__long { display: none; } .btn__short { display: inline; } }

/* ---- header ---- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(244, 245, 255, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--soft); }
.topbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; position: relative; }
.brand { display: inline-block; text-decoration: none; }
.topbar__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.lang { font-size: var(--step--1); font-weight: 500; text-decoration: none; padding: 0.5rem; border-radius: 6px; }
.lang:hover { background: var(--soft); }
.menu-toggle { width: 2.75rem; height: 2.75rem; background: transparent; border: 0; border-radius: 6px; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.menu-toggle:hover { background: var(--soft); }

.topnav { display: none; }
.topnav.is-open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--soft); box-shadow: 0 8px 16px rgba(47, 56, 75, 0.12); padding: 0.25rem 0; }
.topnav a { text-decoration: none; padding: 0.75rem var(--gutter); }
.topnav a:hover { background: var(--soft); }

@media (min-width: 60rem) {
  .topnav, .topnav.is-open { display: flex; position: static; gap: 0.25rem; margin-left: auto; background: none; border: 0; box-shadow: none; padding: 0; }
  .topnav a { color: var(--ink-soft); font-size: var(--step--1); padding: 0.5rem 0.6rem; border-radius: 6px; }
  .topnav a:hover { color: var(--ink); }
  .topnav + .topbar__actions { margin-left: 0.75rem; }
  .menu-toggle { display: none; }
}

@media (max-width: 22rem) {
  .brand .wordmark { font-size: 1.25rem; }
  .topbar__inner { gap: 0.5rem; }
  .topbar__actions { gap: 0.1rem; }
  .lang { padding: 0.5rem 0.3rem; }
}

/* ---- opening: wordmark and one sentence, then slideshow beside the stone panel ---- */
.opening { padding: 4.5rem 0 1.5rem; }
.opening__titles { display: flex; flex-direction: column; align-items: center; margin-bottom: 3.5rem; }
.opening h1 { margin: 0; }
.opening__intro { max-width: 30rem; margin: 1.75rem 0 0; text-align: center; font-size: var(--step-1); line-height: 1.45; letter-spacing: -0.01em; text-wrap: balance; }
.opening__split { display: grid; background: var(--panel); }
.opening__panel { display: grid; grid-template-columns: minmax(0, 28rem); justify-content: center; align-content: center; justify-items: start; padding: 2.5rem 1.5rem; }
@media (min-width: 48rem) { .opening__panel { padding: 3rem; } }
.opening__panel .prose { max-width: 28rem; margin-bottom: 1.25rem; }
.opening__panel .prose p:last-child { margin-bottom: 0; }
.opening.is-draft .opening__panel em { color: var(--ink); }
@media (min-width: 48rem) {
  .opening__split { grid-template-columns: 1fr 1fr; }
  .slides--opening { height: 34rem; }
}

@media (min-width: 48rem) { .opening__intro { text-align: left; } }

/* ---- sections ---- */
.section { padding: 5rem 0; }
/* Text blocks sit in one centred column per section; the lines inside stay flush left. */
.prose { max-width: var(--measure); }
.section > .wrap > .title, .section > .wrap > .prose { max-width: var(--measure); margin-inline: auto; }
.section > .wrap > .draft-flag { display: block; width: fit-content; margin-left: max(0px, calc((100% - var(--measure)) / 2)); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose h3 { margin-top: 1.6rem; font-size: var(--step-1); }
.section--information .prose h3 { font-weight: 500; font-size: var(--step-0); letter-spacing: 0; margin-bottom: 0.3rem; }
.page h1 { font-size: var(--step-3); letter-spacing: -0.015em; }
.reg { color: var(--ink); }
.nowrap { white-space: nowrap; }
.booking .reg { margin: 1rem 0 0; }

/* Markers that disappear once the content is final. */
.draft-flag, .confirm-flag { display: inline-block; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--draft); border: 1px dashed var(--draft); border-radius: 4px; padding: 0.3rem 0.5rem; background: rgba(255, 255, 255, 0.85); }
.draft-flag { margin-bottom: 1rem; }
.confirm-flag { margin-bottom: 0.6rem; }
.is-draft em { color: var(--ink-soft); }
.standin { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; font: 500 0.7rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.05em; background: rgba(154, 91, 0, 0.92); color: #fff; padding: 0.3rem 0.45rem; border-radius: 4px; pointer-events: none; }

/* ---- slideshows ---- */
.slides { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
@media (min-width: 48rem) { .slides--opening { aspect-ratio: auto; } }
.slides--small { aspect-ratio: 8 / 5; border-radius: var(--radius); }
.slides__track { cursor: pointer; position: relative; display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides__track::-webkit-scrollbar { display: none; }
.slides__track:focus-visible { outline-offset: -3px; }
.slides__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.slides__slide picture { height: 100%; }
.slides__slide img { width: 100%; height: 100%; object-fit: cover; }
.slides__caption { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; max-width: calc(100% - 1.2rem); background: rgba(47, 56, 75, 0.66); color: #fff; font-size: var(--step--1); line-height: 1.3; padding: 0.25rem 0.5rem; border-radius: var(--radius); }
.slides__bar { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 0.15rem; background: rgba(47, 56, 75, 0.62); border-radius: 999px; padding: 0 0.3rem; }
.slides__dots { display: flex; }
.slides__dots button { width: 1.5rem; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slides__dots button::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.slides__dots button[aria-current]::before { background: #fff; }
.split { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) {
  .split { grid-template-columns: minmax(0, 28rem) minmax(0, 28rem); justify-content: center; gap: 3rem; }
  .split > .slides { grid-column: 1; grid-row: 1; }
  .split__text { grid-column: 2; grid-row: 1; }
}

/* ---- "Inside": photo cards ---- */
.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.card__media span[data-viewer-item], .card__media picture { display: block; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__hover { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.card__media.is-swapped .card__hover { opacity: 1; }
@media (hover: hover) {
  .card__media:hover .card__hover, .card__media:focus-visible .card__hover { opacity: 1; transition-duration: 0.3s; }
}
.card__caption { font-size: var(--step--1); padding: 0.4rem 0.25rem 0; margin: 0; }
.btn.cards__pause { min-width: 3rem; padding-inline: 1rem; }
.cards__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

/* ---- "What's provided": big headings, then the facts ---- */
.highlights { list-style: none; padding: 0; max-width: var(--measure); margin: 2rem auto 0; display: grid; gap: 2.5rem 2rem; }
.highlight__title { font-size: var(--step-2); margin-bottom: 0.4em; overflow-wrap: break-word; }
.highlight__tagline { margin-bottom: 0.3em; }
.highlight__text { color: var(--ink-soft); margin: 0; }
@media (min-width: 40rem) {
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* As on the original site: the title on the left, the blocks shifted right, each left-aligned. */
@media (min-width: 64rem) {
  .section--provided > .wrap > .title, .section--provided > .wrap > .prose { margin-inline: 0; }
  .highlights { width: 58%; max-width: none; margin-left: auto; margin-right: 0; }
}

/* ---- Lucca mosaic ---- */
.mosaic { list-style: none; padding: 0; margin: 1.5rem auto 0; max-width: 52rem; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
.mosaic__item { position: relative; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--soft); }
.mosaic__item.is-tall { aspect-ratio: 9 / 16; }
.mosaic__photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mosaic__photo span, .mosaic__photo picture { display: block; height: 100%; }
.mosaic__item img, .mosaic__video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease; }
.mosaic__toggle { position: absolute; right: 0.5rem; bottom: 0.5rem; z-index: 2; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: rgba(47, 56, 75, 0.68); color: #fff; font-size: 0.8rem; cursor: pointer; }
/* As on the original site: the tile under the mouse comes forward at 1.5x, over its neighbours. */
@media (hover: hover) and (min-width: 40rem) {
  .mosaic__item:hover { z-index: 5; }
  .mosaic__item:hover img, .mosaic__item:hover .mosaic__video { transform: scale(1.5); opacity: 0.97; box-shadow: 0 14px 36px rgba(47, 56, 75, 0.38); }
  .mosaic__item--1 img, .mosaic__item--4 .mosaic__video { transform-origin: left center; }
  .mosaic__item--3 img, .mosaic__item--6 .mosaic__video, .mosaic__item--8 img { transform-origin: right center; }
}
@media (min-width: 40rem) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(8rem, 18vw, 11rem); }
  .mosaic__item, .mosaic__item.is-tall { aspect-ratio: auto; }
  .mosaic__item.is-tall { grid-row: span 2; }
  .mosaic__item--9 { grid-column: 2; }
}

/* ---- full-screen viewer ---- */
.viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 22, 31, 0.96); color: #fff; touch-action: pinch-zoom; }
.viewer::backdrop { background: rgba(18, 22, 31, 0.96); }
.viewer__stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3.5rem 0.5rem; }
.viewer__stage picture { display: contents; }
.viewer__stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer__count { position: absolute; top: 1rem; left: 1rem; margin: 0; font-size: var(--step--1); }
.viewer__btn, .viewer__close { position: absolute; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.viewer__btn:hover, .viewer__close:hover { background: rgba(255, 255, 255, 0.28); }
.viewer :focus-visible { outline-color: #fff; }
.viewer__btn { top: 50%; transform: translateY(-50%); }
.viewer__btn--prev { left: 0.5rem; }
.viewer__btn--next { right: 0.5rem; }
.viewer__close { top: 0.5rem; right: 0.5rem; }

/* ---- booking ---- */
.booking { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 64rem) { .booking { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.cal { background: var(--paper); border: 1px solid var(--soft); border-radius: var(--radius); padding: 1rem; position: relative; }
.cal__head { position: absolute; top: 0.7rem; left: 0.7rem; right: 0.7rem; display: flex; justify-content: space-between; pointer-events: none; }
.cal__nav { pointer-events: auto; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--ink-soft); background: var(--paper); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__months { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cal__month h4 { text-align: center; font-size: var(--step-0); font-weight: 500; letter-spacing: 0; margin: 0.65rem 0 1rem; text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal__wd { text-align: center; font-size: var(--step--2); color: var(--ink-soft); padding-bottom: 0.3rem; text-transform: capitalize; }
.cal__day { aspect-ratio: 1; min-height: 2.5rem; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: var(--step-0) var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.cal__day:not(.is-end):not(:disabled):hover { background: var(--tint); }
.cal__day.is-taken { color: var(--ink-soft); text-decoration: line-through; background: var(--taken); }
.cal__day:disabled { cursor: default; }
.cal__day.is-departable { box-shadow: inset 0 0 0 1px var(--ink-soft); }
.cal__day.is-range { background: var(--tint); text-decoration: none; color: var(--ink); }
.cal__day.is-end { background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; }
.cal__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0; margin: 1rem 0 0.5rem; font-size: var(--step--1); color: var(--ink-soft); }
.cal__legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.sw { width: 1rem; height: 1rem; border-radius: 3px; display: inline-block; border: 1px solid var(--ink-soft); }
.sw--free { background: var(--paper); }
.sw--taken { background: var(--taken); border-color: var(--taken); }
.sw--chosen { background: var(--ink); border-color: var(--ink); }
.cal__status { font-weight: 500; margin: 0.5rem 0; min-height: 1.6em; }
.rules { max-width: 36rem; margin: 1.5rem 0 0; }

.request { background: var(--paper); border: 1px solid var(--soft); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.9rem; }
.request h3 { margin: 0; }
.request__intro { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.request label { display: grid; gap: 0.3rem; font-weight: 500; font-size: var(--step--1); }
.request input, .request textarea { font: 1rem var(--sans); color: var(--ink); padding: 0.6rem 0.7rem; border: 1px solid var(--ink-soft); border-radius: var(--radius); background: var(--bg); width: 100%; }
.request input:focus, .request textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink-soft); }
.request .check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.request .check input { width: auto; margin-top: 0.3rem; }
.request__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; align-items: end; }
.request__dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; background: var(--soft); border-radius: 6px; padding: 0.7rem; }
.request__dates .label { display: block; font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }
.request__dates output { font-weight: 500; }
.request__tax { margin: 0; font-size: var(--step--1); color: var(--ink-soft); min-height: 1.2em; }
.request__msg { margin: 0; font-weight: 500; min-height: 1.2em; }
.request__msg.is-error { color: var(--error); }
.request__msg.is-ok { color: var(--ok); }
.request__msg.is-info { color: var(--draft); }
.hp { position: absolute; left: -9999px; }

/* ---- reviews ---- */
.reviews { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.review { background: var(--paper); border: 1px solid var(--soft); border-radius: var(--radius); padding: 1.25rem; }
.review blockquote { margin: 0 0 0.75rem; }
.review__who { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--soft); padding: 2.5rem 0 3.5rem; }
.footer__inner { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .footer__inner { grid-template-columns: 1fr auto; } .footer__legal { text-align: right; } }
.footer p { margin: 0 0 0.35rem; }
.footer__name { margin-bottom: 0.9rem !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mosaic__item img, .mosaic__video, .card__hover { transition: none !important; }
  .mosaic__item:hover img, .mosaic__item:hover .mosaic__video { transform: none !important; }
}
