@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url("/fonts/marcellus-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/lora-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/fonts/lora-latin-wght-italic.woff2") format("woff2"); }

/* Layout: light only. White walls like the restored rooms, a pale sea-grey for alternate sections, dark blue-grey ink
   and the Capaci sea blue as the accent. Photos are framed in arches, after the vaults and the lunette window. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F3F6F8;        /* pale sea-grey */
  --ink: #1D2733;         /* dark blue-grey */
  --ink-soft: #586575;
  --rule: #DFE4E9;
  --brick: #24639F;       /* accent for kickers, bullets and score rings */
  --sea: #24639F;         /* Capaci sea */
  --on-sea: #FFFFFF;
  --link: #24639F;
  --bar: #2F72B8;
  --display: "Marcellus", "Trajan Pro", "Optima", Georgia, serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --gl: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px));
  --gr: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.4rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--serif); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.4rem; border: 1.5px solid var(--sea); border-radius: 999px; background: var(--sea); color: var(--on-sea); font: 600 1rem/1.2 var(--serif); text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header: sticky; on phones the sections open from a menu button */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule); }
.top { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding-block: .75rem; }
.wordmark { font-family: var(--display); font-size: 1.2rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: .4rem 1.3rem; }
.links { display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.links a { text-decoration: none; display: inline-block; padding-block: .35rem; color: var(--ink-soft); }
.links a:hover { color: var(--ink); }
.nav-lang { display: none; }
.lang { text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .65rem; font-size: .9rem; font-weight: 600; }
.top .btn { min-height: 40px; padding: .4rem 1.1rem; }
.menu-btn { display: none; width: 44px; height: 40px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.site-head.open .menu-btn span { background: transparent; }
.site-head.open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.site-head.open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) { .menu-btn span::before, .menu-btn span::after { transition: transform .2s, top .2s; } }
@media (max-width: 860px) {
  .wordmark { font-size: .95rem; letter-spacing: .1em; white-space: normal; max-width: 12rem; }
  .top-right { gap: .5rem; }
  .top-right > .lang { display: none; }
  .nav-lang { display: list-item; }
  html:not(.js) .top { flex-wrap: wrap; }
  html:not(.js) .nav-lang { display: none; }
  html:not(.js) .top-right { flex-wrap: wrap; justify-content: flex-end; }
  html:not(.js) .top-right > .lang { display: inline-block; }
  .js .menu-btn { display: inline-flex; }
  .js .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: 0 14px 24px -16px rgba(29, 39, 51, .25); padding: .25rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .js .site-head.open .top nav { display: block; }
  .js .links { flex-direction: column; gap: 0; }
  .js .links li + li { border-top: 1px solid var(--rule); }
  .js .links a { display: block; padding-block: .85rem; font-size: 1.15rem; color: var(--ink); }
}

/* Arches: the signature frame, after the vaults and the lunette window */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 2.5rem 4rem; align-items: center; padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5.5rem); }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.kicker { color: var(--brick); font-style: italic; font-size: 1.1rem; }
.hero h1 { margin-top: .6rem; font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.04; }
.hero .lede { margin-top: 1.25rem; max-width: 46ch; color: var(--ink-soft); font-size: clamp(1.05rem, 1.8vw, 1.18rem); text-wrap: pretty; }
.score { display: flex; align-items: center; gap: .85rem; margin-top: 1.6rem; }
.score b { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 1.5px solid var(--brick); color: var(--ink); font: 400 1.25rem/1 var(--display); }
.score span { line-height: 1.35; }
.score strong { display: block; font-weight: 600; }
.score em { font-style: normal; color: var(--ink-soft); font-size: .95rem; }
.hero .actions { margin-top: 1.75rem; }
.hero-arches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); align-items: end; min-width: 0; }
.hero-arches .arch { aspect-ratio: 9 / 16; }
.hero-arches .arch:nth-child(2) { aspect-ratio: 9 / 18; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section.alt { background: var(--bg-2); }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; max-width: 22ch; }
.intro { margin-top: 1rem; max-width: 62ch; color: var(--ink-soft); font-size: 1.12rem; }

/* Materials */
.mats { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (min-width: 860px) { .mats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mats li { min-width: 0; }
.mats .arch { aspect-ratio: 3 / 4; }
.mats h3 { margin-top: 1rem; font-size: 1.5rem; }
.mats p { margin-top: .25rem; color: var(--ink-soft); font-size: .98rem; }

/* Apartments */
.apt { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; gap: 2rem 4rem; scroll-margin-top: 4.4rem; }
@media (min-width: 960px) { .apt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .apt:nth-of-type(even) .apt-text { order: 2; } }
.apt-text { min-width: 0; }
@media (min-width: 960px) { .apt-text { position: sticky; top: 5.5rem; align-self: start; } }
.apt .sub { color: var(--brick); font-style: italic; font-size: 1.1rem; }
.apt h3 { margin-top: .3rem; font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.08; }
.specs { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; margin: 1.4rem 0 0; }
.specs dt { font-size: .85rem; color: var(--ink-soft); }
.specs dd { margin: .1rem 0 0; font: 400 1.25rem/1.25 var(--display); }
.feats { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.feats li { padding-left: 1.4rem; position: relative; }
.feats li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .7rem; border: 1.5px solid var(--brick); border-bottom: 0; border-radius: 999px 999px 0 0; }
.apt-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; }
@media (min-width: 600px) { .apt-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.apt-photos .lead { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (min-width: 600px) { .apt-photos .lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.apt-photos img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.apt-photos .lead img { aspect-ratio: auto; }
@media (min-width: 600px) { .apt-photos.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .apt-photos.two .lead { grid-column: span 1; } }
.both { margin-top: clamp(2.5rem, 5vw, 3.5rem); color: var(--ink-soft); font-style: italic; }

/* Terrace */
.terr { display: grid; grid-template-columns: 1fr; gap: 2rem 4rem; align-items: center; }
@media (min-width: 960px) { .terr { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.terr-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vw, 16px); align-items: end; }
.terr-photos .arch:first-child { aspect-ratio: 9 / 16; }
.terr-photos .arch:last-child { aspect-ratio: 3 / 4; }
.terr p.intro { margin-top: 1rem; }
.terr blockquote { margin: 2rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--brick); }
.terr blockquote p { font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.45; }
.terr blockquote footer { margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; }

/* Nearby */
.near { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 960px) { .near { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.dist { display: grid; grid-template-columns: 1fr; gap: 0 3rem; }
@media (min-width: 640px) { .dist { grid-template-columns: 1fr 1fr; } }
.dist section { min-width: 0; margin-bottom: 1.5rem; }
.dist h3 { font-size: 1.3rem; }
.dist dl { margin: .5rem 0 0; }
.dist dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; border-bottom: 1px solid var(--rule); }
.dist dd { margin: 0; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.near-note { color: var(--ink-soft); font-size: .9rem; }
.near .arch { aspect-ratio: 3 / 4; max-width: 420px; }

/* Reviews */
.reviews { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr; gap: 2.5rem 4rem; }
@media (min-width: 960px) { .reviews { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.big-score { display: flex; align-items: center; gap: 1rem; }
.big-score b { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%; border: 2px solid var(--brick); font: 400 1.9rem/1 var(--display); }
.big-score strong { display: block; font: 400 1.5rem/1.1 var(--display); }
.big-score span { color: var(--ink-soft); }
.bars { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .8rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; }
.bars .val { font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.bars .track { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.bars .fill { display: block; height: 100%; border-radius: 3px; background: var(--bar); }
.host { margin-top: 1.5rem; color: var(--ink-soft); }
.quotes { display: grid; gap: 1.5rem; }
.quotes blockquote { margin: 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.quotes blockquote:last-child { border-bottom: 0; }
.quotes p { font: 400 clamp(1.3rem, 2.5vw, 1.6rem)/1.35 var(--display); }
.quotes footer { margin-top: .5rem; color: var(--ink-soft); font-size: .95rem; }
.rev-note { margin-top: 1.75rem; color: var(--ink-soft); font-size: .9rem; }

/* Info */
.info { margin: clamp(2rem, 4vw, 3rem) 0 0; display: grid; grid-template-columns: 1fr; gap: 0 3rem; }
@media (min-width: 760px) { .info { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .info { grid-template-columns: repeat(3, 1fr); } }
.info div { padding-block: 1rem; border-top: 1px solid var(--rule); min-width: 0; }
.info dt { font: 400 1.2rem/1.2 var(--display); }
.info dd { margin: .25rem 0 0; color: var(--ink-soft); }

/* Booking */
.cta-row { display: grid; grid-template-columns: 1fr; gap: 2rem 4rem; align-items: center; }
@media (min-width: 900px) { .cta-row { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-row > div > p { margin-top: .75rem; color: var(--ink-soft); font-size: 1.12rem; }
.addr { margin: 1.5rem 0 0; }
.addr dt { color: var(--ink-soft); font-size: .9rem; }
.addr dd { margin: .15rem 0 0; font-size: 1.1rem; }
.addr a { color: var(--link); text-underline-offset: 4px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2rem 2.5rem; color: var(--ink-soft); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem; }
.site-foot .wordmark { color: var(--ink); font-size: 1rem; white-space: normal; }
.site-foot a { color: var(--ink); }
.site-foot dl { margin: 0; display: grid; gap: .15rem; }
.site-foot dt { color: var(--ink); }
.site-foot dd { margin: 0; font-variant-numeric: lining-nums; }

/* 404 */
.nf { padding-block: clamp(4rem, 12vw, 8rem); }
.nf h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; }
.nf p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.12rem; }
.nf .actions { margin-top: 1.75rem; }
