:root {
  --bg: #040d10;
  --surface: rgba(10, 25, 29, 0.88);
  --surface-solid: #0a1e23;
  --text: #d9f3ee;
  --muted: #8ab5ad;
  --accent: #2fc7a5;
  --accent-2: #4ea8de;
  --ring: rgba(47, 199, 165, 0.35);
  --radius: 20px;
  --shadow: 0 18px 42px rgba(1, 10, 12, 0.45);
  --home-bg-image: url("https://storage.googleapis.com/kallefinnila/galleries/italia-2018/images/P1160255_1.jpg");
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -20%, #0f2a2e 0%, transparent 48%), radial-gradient(circle at 90% 0%, #0c2440 0%, transparent 44%), var(--bg);
  min-height: 100vh;
}
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(35, 179, 157, 0.1), transparent 42%),
    radial-gradient(circle at 85% 0%, rgba(43, 127, 207, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(4, 10, 12, 0.4), rgba(4, 10, 12, 0.68));
}
body.home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(35, 179, 157, 0.12), transparent 38%),
    radial-gradient(circle at 85% 0%, rgba(43, 127, 207, 0.15), transparent 42%),
    rgba(3, 10, 12, 0.62);
  pointer-events: none;
}
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.bg-orb-a { width: 420px; height: 420px; background: #23b39d; top: -140px; left: -120px; }
.bg-orb-b { width: 360px; height: 360px; background: #2b7fcf; right: -100px; bottom: -120px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 52px);
  backdrop-filter: blur(12px);
  background: rgba(5, 16, 19, 0.82);
  border-bottom: 1px solid rgba(143, 225, 211, 0.2);
}
.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.brand-logo {
  display: block;
  width: clamp(150px, 22vw, 250px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.34));
}
.site-header nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-header nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-header nav a:hover { background: rgba(78, 168, 222, 0.18); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(143, 225, 211, 0.38);
  background: rgba(8, 28, 33, 0.9);
  color: var(--text);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
main { max-width: 1200px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 52px) 70px; }
.hero {
  background: var(--surface);
  border: 1px solid rgba(143, 225, 211, 0.22);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
  margin-bottom: 26px;
}
body.home .hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 62vh, 700px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image:
    linear-gradient(180deg, rgba(3, 10, 12, 0.1) 0%, rgba(3, 10, 12, 0.64) 58%, rgba(3, 10, 12, 0.88) 100%),
    var(--home-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: 1px solid rgba(143, 225, 211, 0.28);
  box-shadow: 0 32px 70px rgba(1, 10, 12, 0.6);
}
body.home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 8, 10, 0.22) 0%, rgba(2, 8, 10, 0.34) 100%);
}
body.home .hero > * {
  position: relative;
  z-index: 1;
}
body.home .hero h1 {
  max-width: 12ch;
}
body.home .hero p {
  color: #c8ebe5;
  max-width: 54ch;
}
.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-btn-ghost {
  background: rgba(6, 22, 26, 0.5);
}
.hero h1 {
  margin: 0 0 14px;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
}
.hero p { margin: 0; color: var(--muted); max-width: 60ch; }
.teaser-split {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 8px;
}
.suggestions {
  margin-top: 8px;
}
.home-guide {
  margin-top: 18px;
  margin-bottom: 8px;
}
.home-guide-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.home-jump-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 140px;
  text-decoration: none;
  color: #ecfffb;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  padding: 16px 18px;
  box-shadow: 0 20px 44px rgba(1, 10, 12, 0.58);
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.home-jump-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(1, 10, 12, 0.66);
}
.home-jump-articles {
  background: linear-gradient(135deg, #1a3147 0%, #234966 52%, #2f6388 100%);
  border-color: rgba(140, 188, 220, 0.44);
}
.home-jump-galleries {
  background: linear-gradient(135deg, #123d39 0%, #1a5d53 52%, #287d6f 100%);
  border-color: rgba(136, 219, 194, 0.44);
}
.home-jump-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
  font-weight: 700;
}
.home-jump-title {
  margin-top: 6px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.explore {
  margin-top: 18px;
  margin-bottom: 8px;
}
body.home .explore {
  margin-top: 22px;
  margin-bottom: 14px;
  padding: 18px clamp(14px, 2.4vw, 24px);
  background:
    linear-gradient(160deg, rgba(23, 69, 78, 0.28), rgba(25, 54, 84, 0.24)),
    rgba(8, 25, 31, 0.9);
  border: 1px solid rgba(122, 210, 218, 0.34);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(1, 10, 12, 0.5);
}
body.home .explore .section-title {
  margin-top: 2px;
}
.listing-page .explore > h1,
.listing-page .explore > h2,
.listing-page .explore > h3 {
  display: none;
}
.explore-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}
.explore-controls input,
.explore-controls select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(143, 225, 211, 0.28);
  background: rgba(7, 26, 30, 0.88);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.explore-controls input::placeholder {
  color: #8bb6ae;
}
.explore-controls input:focus,
.explore-controls select:focus {
  outline: none;
  border-color: rgba(47, 199, 165, 0.6);
  box-shadow: 0 0 0 3px var(--ring);
}
.explore-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.explore-empty {
  grid-column: 1 / -1;
}
.random-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.spotlight {
  background: var(--surface);
  border: 1px solid rgba(143, 225, 211, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spotlight-media {
  display: block;
}
.spotlight-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.spotlight-body {
  padding: 16px 18px 20px;
}
.spotlight h2 {
  margin: 8px 0 10px;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}
.spotlight p {
  margin: 0 0 16px;
  color: var(--muted);
}
.pill-btn {
  display: inline-block;
  text-decoration: none;
  color: #dffdf7;
  background: linear-gradient(135deg, rgba(47, 199, 165, 0.28), rgba(78, 168, 222, 0.26));
  border: 1px solid rgba(143, 225, 211, 0.4);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pill-btn:hover {
  border-color: rgba(47, 199, 165, 0.65);
  background: linear-gradient(135deg, rgba(47, 199, 165, 0.35), rgba(78, 168, 222, 0.34));
}
.section-title { font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 20px 0 14px; }
.listing-intro {
  margin: 4px 0 14px;
}
.listing-intro .section-title {
  margin: 0 0 4px;
}
.listing-intro p {
  margin: 0;
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(143, 225, 211, 0.18);
  box-shadow: var(--shadow);
  background: var(--surface-solid);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(1, 10, 12, 0.58);
  border-color: rgba(47, 199, 165, 0.45);
}
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card .card-body { padding: 14px 14px 16px; }
.kicker { color: var(--accent-2); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.country-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  margin-bottom: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(143, 225, 211, 0.42);
  background: rgba(10, 35, 40, 0.7);
  color: #cdebe5;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.card h3 { margin: 6px 0 8px; font-family: 'Fraunces', serif; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-article {
  border-color: rgba(96, 170, 236, 0.34);
  background:
    linear-gradient(180deg, rgba(52, 112, 170, 0.13), rgba(10, 30, 42, 0.08)),
    var(--surface-solid);
}
.card-gallery {
  border-color: rgba(66, 204, 170, 0.34);
  background:
    linear-gradient(180deg, rgba(33, 134, 111, 0.14), rgba(8, 34, 30, 0.08)),
    var(--surface-solid);
}
.card-article .kicker { color: #80bceb; }
.card-gallery .kicker { color: #71dfc0; }
.article {
  background: var(--surface);
  border: 1px solid rgba(143, 225, 211, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 44px);
}
.article .meta { color: var(--muted); margin-bottom: 12px; }
.article .meta .country-inline { color: #c3e6df; font-weight: 700; }
.article h1 { margin: 0 0 14px; font-family: 'Fraunces', serif; font-size: clamp(1.7rem, 4vw, 3rem); }
.article .hero-image { width: 100%; border-radius: 14px; margin: 12px 0 24px; }
.article .content { font-size: 1.04rem; line-height: 1.72; }
.article .content img { max-width: 100%; height: auto; border-radius: 10px; }
.article .hero-image,
.article .content img {
  cursor: zoom-in;
}
.article .content figure.wp-caption { margin: 0.9rem 0 1.1rem; }
.article .content figure.wp-caption figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; line-height: 1.45; }
.article .content figure.alignleft { float: left; max-width: min(46%, 430px); margin: 0.25rem 1rem 0.9rem 0; }
.article .content figure.alignright { float: right; max-width: min(46%, 430px); margin: 0.25rem 0 0.9rem 1rem; }
.article .content figure.aligncenter { margin-left: auto; margin-right: auto; }
.article .content::after { content: ""; display: block; clear: both; }
.next-suggestions {
  margin-top: 22px;
}
.next-suggestions-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.gallery-grid {
  columns: 1;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 14px;
}
.gallery-grid img {
  width: 100%;
  margin: 0 0 6px;
  border-radius: 12px;
  display: block;
  cursor: zoom-in;
  border: 1px solid rgba(143, 225, 211, 0.28);
}
.gallery-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 0 2px;
}
@media (min-width: 760px) { .gallery-grid { columns: 2; } }
@media (min-width: 1080px) { .gallery-grid { columns: 3; } }
@media (min-width: 980px) {
  .teaser-split {
    grid-template-columns: 1.3fr 1fr;
  }
  .home-guide-grid {
    grid-template-columns: 1fr 1fr;
  }
  .next-suggestions-grid {
    grid-template-columns: 1fr 1fr;
  }
  .explore-controls {
    grid-template-columns: 2fr 1fr;
  }
  .random-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-header.menu-ready .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .site-header.menu-ready nav {
    display: none;
    width: 100%;
    padding-top: 4px;
    flex-direction: column;
    gap: 8px;
  }
  .site-header.menu-ready.is-menu-open nav {
    display: flex;
  }
  .site-header.menu-ready nav a {
    display: block;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(7, 26, 30, 0.75);
  }
  .site-header.menu-ready.is-menu-open .menu-toggle span {
    transform: none;
    opacity: 1;
  }
  .hero-actions .pill-btn {
    width: 100%;
    text-align: center;
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  border: 1px solid rgba(143, 225, 211, 0.26);
}
.lb-caption {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(6, 25, 30, 0.82);
  color: #d9f3ee;
  border: 1px solid rgba(143, 225, 211, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  max-width: min(92vw, 920px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-btn {
  position: absolute;
  background: rgba(10, 34, 40, 0.78);
  color: #e0fffa;
  border: 1px solid rgba(143, 225, 211, 0.45);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  cursor: pointer;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-btn:hover { background: rgba(47, 199, 165, 0.2); }
footer { text-align: center; color: var(--muted); padding: 10px 20px 34px; }
