:root {
  --cream: #f7f0e1;
  --cream-soft: #fbf6ea;
  --ink: #1f1a14;
  --ink-soft: #4a3f30;
  --terracotta: #c2532a;
  --terracotta-deep: #973d1d;
  --olive: #5c6b3a;
  --lemon: #e8b73a;
  --line: #d9c9a3;
  --shadow: 0 1px 3px rgba(31, 26, 20, 0.08), 0 8px 24px rgba(31, 26, 20, 0.06);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--terracotta-deep); }
a:hover { color: var(--terracotta); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.wrap--narrow { max-width: 680px; }

.section {
  padding: 4.5rem 0;
  position: relative;
}
.section + .section {
  border-top: 1px dashed var(--line);
}
.section--soft { background: var(--cream-soft); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: 1rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.4rem 4rem;
  color: #fdf6e6;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(20,12,5,0.30) 0%, rgba(20,12,5,0.15) 42%, rgba(20,12,5,0.62) 100%),
    url("photos/hero.jpg"),
    linear-gradient(180deg, #2a1b0f 0%, #7a3a1e 55%, #c2532a 100%);
  background-size: cover, cover, cover;
  background-position: center 35%, center 35%, center;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(20,12,5,0.42) 100%);
}
.hero__credit {
  position: absolute;
  right: 0.9rem; bottom: 0.7rem;
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.55; color: #fdf6e6;
}
.hero__content { max-width: 760px; }
.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
  opacity: 0.9;
}
.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 7rem);
  line-height: 0.95;
  margin: 0 0 0.25em;
  letter-spacing: -0.02em;
  color: #fdf6e6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.4);
}
.hero__title .amp { color: var(--lemon); font-style: normal; }
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-style: italic;
  margin: 0 0 2rem;
  opacity: 0.95;
}
.hero__facts {
  display: grid;
  gap: 0.5rem;
  margin: 0 auto 2.2rem;
  max-width: 460px;
}
.hero__facts > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: baseline;
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(253, 246, 230, 0.18);
}
.hero__facts dt {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  opacity: 0.7;
}
.hero__facts dd {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}
.hero__note {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
  text-transform: uppercase;
}

/* ===== BIG IDEA ===== */
.idea {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto 2rem;
  text-align: center;
}
.idea strong { color: var(--terracotta-deep); font-weight: 600; font-style: normal; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 1rem;
  margin-top: 2.5rem;
  text-align: center;
}
.stat__n {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: var(--terracotta);
  line-height: 1;
}
.stat__l {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--olive);
  margin-top: 0.4rem;
}

/* ===== TIMELINE ===== */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; }
.tl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.6rem;
  padding: 1.6rem 0;
  border-bottom: 1px dotted var(--line);
  align-items: start;
}
.tl:last-child { border-bottom: none; }
.tl__when {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta-deep);
  line-height: 1.2;
}
.tl__when b {
  display: block;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--olive);
  margin-bottom: 0.25rem;
}
.tl__when .time { font-size: 1.5rem; }
.tl__what h3 { margin: 0 0 0.25rem; }
.tl__what p { margin: 0; color: var(--ink-soft); }
.tl__tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--olive);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-top: 0.6rem;
}
.tl__tag--away { color: var(--terracotta-deep); border-color: var(--terracotta); }
@media (max-width: 560px) {
  .tl { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ===== CARDS (flights) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.card {
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: var(--shadow);
}
.card__route {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.card__route .to { color: var(--terracotta); font-style: normal; padding: 0 0.15em; }
.card__from { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--olive);
  border-top: 1px dotted var(--line);
  padding-top: 0.7rem;
}
.card__meta b { color: var(--ink); font-weight: 600; }
.card a { text-decoration: none; }

/* ===== INFO PANEL ===== */
.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}
@media (min-width: 820px) {
  .panel { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .panel--rev .panel__map { order: 2; }
}
.panel__map {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
}
.legend { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.legend li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.98rem; }
.dot {
  flex: none;
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  margin-top: 0.35rem;
}
.dot--star { background: var(--terracotta); }
.dot--duomo { background: var(--lemon); }
.dot--piazza { background: var(--olive); }
.dot--bnb { background: #b98a5e; }
.legend b { color: var(--ink); }

.facts-inline {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: 0.1rem;
}
.facts-inline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--line);
  align-items: baseline;
}
.facts-inline .k {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.7rem; font-weight: 500; color: var(--olive);
}
.facts-inline .v { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
@media (max-width: 520px) {
  .facts-inline li { grid-template-columns: 1fr; gap: 0.1rem; }
}

.callout {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--terracotta-deep);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.1rem;
  margin: 2rem 0 0;
}

/* ===== HQ ===== */
.hq {
  margin-top: 2rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .hq { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .hq { grid-template-columns: repeat(4, 1fr); } }
.hq__item {
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.hq__icon { font-size: 2rem; }
.hq__item h3 { margin: 0.4rem 0 0.3rem; }
.hq__item p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  background: var(--terracotta);
  color: #fdf6e6;
  transition: all 0.2s ease;
}
.btn:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fdf6e6; }
.btn--ghost { background: transparent; color: var(--terracotta-deep); }
.btn--ghost:hover { background: var(--terracotta); color: #fdf6e6; }

.center { text-align: center; }
.mt { margin-top: 2rem; }

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 0;
  text-align: center;
  background: var(--cream);
  border-top: 1px dashed var(--line);
}
.footer p { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-soft); margin: 0 0 0.3rem; }
.footer em { font-size: 1.6rem; color: var(--terracotta-deep); }
.footer small { display:block; margin-top: 1.5rem; color: var(--ink-soft); font-size: 0.82rem; letter-spacing: 0.04em; }
.foot-nav { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.foot-nav .btn { font-size: 0.82rem; }

/* ===== LANGUAGE BAR ===== */
.langbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex; justify-content: center;
  padding: 0.7rem;
  pointer-events: none;
}
.langbar__inner {
  pointer-events: auto;
  display: inline-flex;
  gap: 0.1rem;
  background: rgba(31, 26, 20, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 246, 230, 0.28);
  border-radius: 999px;
  padding: 0.22rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.langbar button {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: #fdf6e6;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.langbar button:hover:not(.is-active) { background: rgba(253, 246, 230, 0.16); }
.langbar button.is-active { background: var(--terracotta); color: #fff; }

/* ===== GALLERY ===== */
.feature {
  margin: 2rem 0 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.feature img { width: 100%; display: block; }
.feature figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.3rem 0.9rem;
  color: #fdf6e6;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  background: linear-gradient(180deg, transparent, rgba(20,12,5,0.7));
}
.pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
@media (min-width: 620px) { .pair { grid-template-columns: 1fr 1fr; gap: 0.9rem; } }
.pair figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-soft);
}
.pair img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.pair figure:hover img { transform: scale(1.04); }

.gallery {
  column-count: 2;
  column-gap: 0.7rem;
  margin-top: 0.7rem;
}
.gallery figure {
  margin: 0 0 0.7rem;
  break-inside: avoid;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-soft);
}
.gallery img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
@media (min-width: 720px) {
  .gallery { column-count: 3; column-gap: 0.9rem; }
  .gallery figure { margin-bottom: 0.9rem; }
}

/* ===== VILLA (photo + history) ===== */
.villa__photo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.villa__photo img { width: 100%; display: block; }
.placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 2rem;
  background:
    repeating-linear-gradient(45deg, #f2e7cd, #f2e7cd 14px, #efe1c2 14px, #efe1c2 28px);
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
}
.placeholder .ph__icon { font-size: 2.2rem; }
.placeholder .ph__t { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.placeholder .ph__s { font-size: 0.8rem; letter-spacing: 0.04em; max-width: 30ch; }

.history {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.1rem;
}
.history li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--line);
  align-items: baseline;
}
.history .h-k {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta-deep);
  font-size: 1.1rem;
}
.history .h-v { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 520px) { .history li { grid-template-columns: 1fr; gap: 0.1rem; } }

.credit-line {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.8;
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}

/* ===== ITALIAN SUBTITLE ===== */
.it {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.7;
  margin-top: 0.2em;
}
h2 .it { font-size: 0.5em; margin-top: 0.35em; color: var(--olive); opacity: 0.85; }
h3 .it { font-size: 0.8em; color: var(--ink-soft); }
.lede .it { font-size: 0.82em; opacity: 0.68; }
.hero .it { opacity: 0.72; }

::selection { background: var(--lemon); color: var(--ink); }
