/* Lista Roma — folded map / split-flap terminal */
:root {
  --paper: #F7F3EA;
  --crease: #E8E0D0;
  --ink: #1A1A1A;
  --map: #2B4C7E;
  --tram: #E3B23C;
  --asphalt: #2A2A2A;
  --mute: #5C574C;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0 49.6%, var(--crease) 49.6% 50.4%, transparent 50.4%),
    var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--map); text-underline-offset: 0.15em; }
a:hover { color: #1a3358; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--tram);
  outline-offset: 2px;
}

.lr-skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--asphalt);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 10;
}
.lr-skip:focus { top: 0.4rem; }

.lr-flap {
  background: var(--asphalt);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
}

.lr-codes {
  display: flex;
  gap: 0.4rem;
  font-family: Chivo, "Arial Narrow", sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: 0.08em;
}

.lr-codes b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.1rem;
  background: #111;
  border: 1px solid #444;
  border-radius: 2px;
  font-size: 1.15rem;
  color: var(--tram);
}

.lr-flap a.lr-name {
  color: #fff;
  text-decoration: none;
  font-family: Chivo, "Arial Narrow", sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(1rem, 3vw, 1.4rem);
}

.lr-flap span.lr-tag {
  font-size: 0.78rem;
  color: #cfc8b8;
  max-width: 16rem;
  text-align: right;
}

.lr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.7rem 1.2rem;
  background: #efe8d8;
  border-bottom: 1px solid var(--crease);
  font-size: 0.82rem;
}

.lr-legend a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lr-legend a[aria-current="page"] { font-weight: 500; }

.lr-swatch {
  width: 0.7rem;
  height: 0.7rem;
  display: inline-block;
  background: var(--map);
}
.lr-swatch--tram { background: var(--tram); }
.lr-swatch--ink { background: var(--ink); }
.lr-swatch--ash { background: #8a8374; }

.lr-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.4rem 1.2rem 4rem;
}

.lr-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(8.5rem, auto));
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.lr-tile {
  background: #fff;
  border: 1px solid #d9d0be;
  padding: 0.55rem 0.65rem 0.7rem;
  text-decoration: none;
  color: inherit;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lr-tile--here {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.lr-tile--here img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 17.5rem;
}

.lr-tile--here span {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  background: var(--tram);
  color: var(--ink);
  font-family: Chivo, sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0.2rem 0.4rem;
}

.lr-tile strong {
  font-family: Chivo, sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.lr-tile small { color: var(--mute); font-size: 0.78rem; }

.lr-h1 {
  font-family: Chivo, sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 0.95;
  margin: 0 0 0.7rem;
}

.lr-time {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.6rem;
  background: #fff;
}

.lr-time th,
.lr-time td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--crease);
  vertical-align: top;
}

.lr-time th {
  font-family: Chivo, sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  width: 28%;
  color: var(--map);
  background: #efe8d8;
}

.lr-fig { margin: 1rem 0; }
.lr-fig img { width: 100%; }
.lr-fig figcaption {
  font-size: 0.8rem;
  color: var(--mute);
  margin-top: 0.35rem;
}

.lr-ticket {
  position: relative;
  background: #fff;
  border: 2px dashed var(--asphalt);
  padding: 1.1rem 1.3rem 1.2rem;
  margin: 1.6rem 0;
}

.lr-ticket::before,
.lr-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--paper);
  border: 2px dashed var(--asphalt);
  border-radius: 50%;
  transform: translateY(-50%);
}
.lr-ticket::before { left: -0.65rem; }
.lr-ticket::after { right: -0.65rem; }

.lr-ticket h2 {
  font-family: Chivo, sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
}

.lr-ticket ul { margin: 0.4rem 0 0.8rem; padding-left: 1.1rem; }

.lr-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.82rem;
  border-top: 1px solid var(--crease);
  padding-top: 1rem;
  margin-top: 2rem;
}

.lr-ok {
  background: #efe8d8;
  border-top: 1px solid var(--crease);
  padding: 0.8rem 1.2rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  align-items: center;
  font-size: 0.88rem;
}

.lr-ok[hidden] { display: none; }

.lr-ok label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.lr-ok button {
  font-family: Chivo, sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--map);
  color: #fff;
  border: 0;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.lr-mail {
  display: grid;
  gap: 0.5rem;
  max-width: 26rem;
  margin: 1rem 0;
}
.lr-mail input,
.lr-mail textarea {
  width: 100%;
  border: 1px solid var(--asphalt);
  padding: 0.4rem 0.5rem;
  font: inherit;
  background: #fff;
}
.lr-mail button {
  font-family: Chivo, sans-serif;
  font-weight: 700;
  background: var(--tram);
  border: 0;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 800px) {
  body { background: var(--paper); }
  .lr-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .lr-tile--here { grid-column: 1 / -1; grid-row: auto; }
  .lr-tile--here img { min-height: 12rem; height: 12rem; }
  .lr-flap { flex-wrap: wrap; }
  .lr-flap span.lr-tag { text-align: left; max-width: none; }
}

@media (max-width: 520px) {
  .lr-tiles { grid-template-columns: 1fr; }
  .lr-time th { width: 36%; }
}
