/* ============================================================
   Visit Vicenza — shared stylesheet (modern refresh)
   Type: Space Grotesk (display) + Inter (text)
   Palette: deep navy ink, Mediterranean blue, warm amber
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg:        #f6f7f9;
  --surface:   #ffffff;
  --ink:       #0f172a;
  --ink-soft:  #55637a;
  --line:      #e5e9f0;
  --primary:   #155eef;   /* Mediterranean blue */
  --primary-dark: #0f46b8;
  --primary-soft: #e8effd;
  --navy:      #0b1a33;
  --amber:     #f59e0b;
  --amber-soft:#fdf3e0;
  --green:     #12805c;
  --green-soft:#e6f4ee;
  --radius:    16px;
  --shadow:    0 1px 2px rgba(15,23,42,.06), 0 10px 30px -12px rgba(15,23,42,.15);
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header & nav ---------- */
.site-header {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: var(--primary); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.site-nav a.active { background: var(--primary); color: #fff; }

/* ---------- Hero (photo banner) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  padding: 90px 0 56px;
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(11,26,51,.30) 0%, rgba(11,26,51,.38) 45%, rgba(11,26,51,.78) 100%),
    var(--hero-img, linear-gradient(160deg, #12233f, #1d3a66));
  background-position: center, var(--hero-pos, center);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}
.hero.compact { min-height: 340px; padding: 60px 0 40px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-shadow: 0 2px 22px rgba(0,0,0,.35);
}
.hero p {
  font-size: 18px;
  max-width: 64ch;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.hero-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10.5px;
  color: rgba(255,255,255,.55);
  background: rgba(11,26,51,.35);
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 2;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -8px rgba(21,94,239,.7); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Main content ---------- */
main { padding: 52px 0 64px; }

section + section { margin-top: 56px; }

h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 16px;
}
h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  margin-top: 10px;
  border-radius: 4px;
}
h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}
h4 { font-size: 16px; margin: 18px 0 6px; }

p + p { margin-top: 12px; }

a { color: var(--primary-dark); }
a:hover { color: var(--primary); }

ul, ol { margin: 10px 0 10px 24px; }
li + li { margin-top: 7px; }

strong { color: var(--ink); }

.lede { font-size: 18px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 18px 40px -14px rgba(15,23,42,.22); }
.card h3 { margin-top: 0; font-size: 18px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }
.card .card-link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
  align-self: flex-start;
}

/* ---------- Photo gallery strip ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.gallery a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery a:hover img { transform: scale(1.05); }
.gallery .g-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(11,26,51,.85));
}

/* ---------- Callout boxes ---------- */
.note, .tip, .warn {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  border: 1px solid;
}
.note { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.tip  { background: var(--green-soft); border-color: #c4e3d5; }
.tip::before  { content: "Tip — "; font-weight: 700; color: var(--green); }
.warn { background: var(--amber-soft); border-color: #f0dcb4; }
.warn::before { content: "Good to know — "; font-weight: 700; color: #b06e05; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface);
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--navy);
  color: #dbe4f3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fafbfc; }

/* ---------- Fact tiles ---------- */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.fact .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
}
.fact .value { font-family: var(--display); font-size: 18px; font-weight: 600; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #9fb0c9;
  padding: 44px 0 30px;
  font-size: 14px;
  margin-top: 40px;
}
.site-footer a { color: #d4deef; }
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.site-footer h4 { color: #fff; font-family: var(--display); margin: 0 0 10px; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-top: 5px; }
.site-footer .fine {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #24344f;
  font-size: 12px;
  color: #7488a5;
}

/* ---------- Misc ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
  .hero.compact { min-height: 280px; }
}

.phrase-table td:first-child { font-style: italic; white-space: nowrap; }

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.anchor-list li { margin: 0; }
.anchor-list a {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, color .15s;
}
.anchor-list a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Content figures ---------- */
figure.photo { margin: 26px 0; }
figure.photo img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
figure.photo.crop img { aspect-ratio: 16 / 9; object-fit: cover; }
figure.photo figcaption {
  margin-top: 9px;
  font-size: 13px;
  color: var(--ink-soft);
}
figure.photo .cred { color: #9aa7ba; font-size: 11.5px; white-space: nowrap; }
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0;
}
.photo-row figure.photo { margin: 0; }
@media (max-width: 720px) { .photo-row { grid-template-columns: 1fr; } }
.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  display: block;
}

/* Anchored headings land below the sticky header */
h2[id], h3[id], section[id] { scroll-margin-top: 84px; }

/* ---------- Logo lockup ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px -4px rgba(21,94,239,.45);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--primary);
}
.brand-city {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Footer strong text must stay light on the dark background */
.site-footer strong { color: #ffd66b; }
