/* Saint George and the Dragon Studio Apartment — stile del sito
   Ispirazione: hotel boutique (bianco, nero, accento prugna, titoli maiuscoli spaziati). */
:root {
  --bg: #ffffff;
  --soft: #f6f3f1;
  --ink: #1c1c1c;
  --muted: #5f5a57;
  --plum: #5b2b3c;          /* accento */
  --plum-dark: #43202c;
  --line: #e4dfdb;
  --radius: 12px;
  --wrap: 1120px;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Avenir Next", Avenir, "Century Gothic", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-family: var(--sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-dark); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }

h1, h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin: .8em 0 .4em; }
h2 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); margin: 2em 0 .7em; }
h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--plum); margin-top: .55em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.small { font-size: .85rem; color: var(--muted); }

/* Accessibilità */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Avviso lingua */
.lang-banner { background: var(--plum); color: #fff; padding: 10px 16px; text-align: center; font-size: .92rem; }
.lang-banner a { color: #fff; font-weight: 600; }
.lang-banner button { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; margin-left: 8px; }

/* Barra superiore e testata */
.topbar { background: var(--ink); color: #d9d4d0; font-size: .82rem; letter-spacing: .04em; }
.topbar-in { display: flex; gap: 18px; justify-content: flex-end; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar-in span { margin-right: auto; text-transform: uppercase; letter-spacing: .14em; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; margin-right: auto; display: flex; flex-direction: column; line-height: 1.1; }
.brand-main { font-family: var(--serif); font-size: 1.7rem; color: var(--plum); font-weight: 600; }
.brand-sub { font-family: var(--display); font-size: .66rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-top: 4px; }
.menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.menu a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--plum); color: var(--ink); }

/* Bottoni */
.btn { display: inline-block; background: var(--plum); color: #fff; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-weight: 500; letter-spacing: .04em; margin: 4px 8px 4px 0; border: 2px solid var(--plum); }
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; }
.btn-sm { padding: 9px 20px; margin: 0; font-size: .9rem; }

/* Home */
.hero { margin: 0 -16px 8px; }
.hero img { width: 100%; aspect-ratio: 800 / 392; object-fit: cover; }
.hero-txt { text-align: center; padding: 28px 16px 8px; }
.hero-txt h1 { margin-top: 0; }
.hero-txt .lead { margin: 0 auto 16px; }
.facts ul { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.facts li { background: #fff; border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; color: var(--muted); box-shadow: 0 2px 14px rgba(28, 28, 28, .08); }
.facts strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.35rem; color: var(--plum); letter-spacing: .04em; }
.ticks { padding-left: 1.2em; }
.ticks li::marker { content: "✓  "; color: var(--plum); }

/* Immagini */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ph { margin: 0; }
.ph img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.gallery .ph:has(img[src*="panoramica"]) { grid-column: 1 / -1; }
.gallery .ph img[src*="panoramica"] { aspect-ratio: 800 / 392; }
.ph figcaption { font-size: .78rem; color: var(--muted); padding: 6px 2px; text-transform: uppercase; letter-spacing: .1em; }

/* Liste e tabelle */
.cols { columns: 2 260px; column-gap: 32px; }
.cols li { break-inside: avoid; }
table { width: 100%; border-collapse: collapse; background: #fff; margin: 14px 0; font-size: .95rem; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
thead th { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); border-bottom: 2px solid var(--ink); }
.book { background: var(--soft); border-radius: var(--radius); padding: 4px 24px 20px; margin: 28px 0; }
.contact { list-style: none; padding: 0; }
.contact li { margin: 6px 0; }
.crumb { font-size: .78rem; color: var(--muted); margin-top: 20px; text-transform: uppercase; letter-spacing: .1em; }
.crumb a { color: var(--muted); }

/* FAQ */
.faq { background: #fff; border-bottom: 1px solid var(--line); margin: 0; padding: 0 4px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { font-size: 1rem; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 600; margin: 0; display: inline; }
.faq summary h2::after { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.4rem; line-height: 1.2; color: var(--plum); }
.faq[open] summary::after { content: "–"; }
.faq > div { padding-bottom: 8px; color: var(--muted); }

/* Piè di pagina */
.foot { background: var(--ink); color: #d9d4d0; margin-top: 64px; padding: 40px 0 28px; font-size: .92rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; }
.foot-name { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 4px 0; }
.foot .small { color: #a9a29d; margin-top: 28px; }
.cin { font-weight: 600; color: #fff; letter-spacing: .04em; }

.notfound { padding: 64px 16px; }

@media (max-width: 760px) {
  .top { position: static; }
  .menu { order: 3; width: 100%; gap: 4px 16px; }
  .topbar-in span { display: none; }
  .gallery .ph img, .grid2 .ph img { aspect-ratio: auto; }
  .brand-main { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Modulo di prenotazione */
.booking { background: #fff; border-radius: var(--radius); box-shadow: 0 6px 28px rgba(28, 28, 28, .14); padding: 20px 22px 14px; margin: 0 auto 8px; max-width: 980px; position: relative; z-index: 2; }
.hero + .booking { margin-top: -56px; }
.booking-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px auto; gap: 12px; align-items: end; }
.booking label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.booking input, .booking select { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; height: 48px; width: 100%; min-width: 0; }
.booking input:focus, .booking select:focus { border-color: var(--plum); outline: 2px solid var(--plum); outline-offset: 0; }
.booking .btn { margin: 0; min-height: 48px; white-space: nowrap; }
.booking-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.booking-out:empty { display: none; }
.booking-out { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 6px; }
.booking-total strong { font-family: var(--display); font-size: 1.6rem; font-weight: 500; color: var(--plum); }
.booking-err { color: #a3241b; font-weight: 600; }
@media (max-width: 760px) {
  .booking-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .booking .btn { grid-column: 1 / -1; }
  .hero + .booking { margin-top: -24px; }
}
