:root {
  --bg: #f8f7f4;
  --text: #1e1e1e;
  --muted: #666;
  --card: #fff;
  --accent: #0f766e;
  --line: #e8e6df;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, white 84%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  gap: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #111;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  font-size: .92rem;
}
.brand-icon img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.site-search {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
}
.site-search input {
  width: min(320px, 100%);
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
}
.brand-text {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}
.home-logo {
  display: block;
  width: min(460px, 92vw);
  height: auto;
  margin: 4px 0 8px;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
.mobile-nav-open {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  border-radius: 8px;
  width: 32px;
  height: 30px;
  line-height: 1;
  font-size: 18px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 80;
  pointer-events: auto;
}
.mobile-nav {
  display: none;
}
.mobile-menu-fab {
  display: none;
}
.main-nav > a,
.main-nav .menu-link {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
}
.main-nav .continent-menu {
  position: relative;
  display: inline-block;
}
/* Hover bridge so menu doesn't disappear while moving cursor to dropdown */
.main-nav .continent-menu::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 100%;
  width: calc(100% + 12px);
  height: 18px;
}
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  padding: 8px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .18s;
}
.main-nav .dropdown a {
  display: block;
  padding: 7px 10px;
  text-decoration: none;
  color: #222;
  border-radius: 8px;
  font-size: .9rem;
  white-space: nowrap;
}
.main-nav .dropdown a:hover { background: #f4f3ef; }
.main-nav .continent-menu:hover > .dropdown,
.main-nav .continent-menu:focus-within > .dropdown,
.main-nav .continent-menu.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.hero {
  padding: 70px 0 30px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
}
h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.18;
  margin: .3rem 0 .9rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead { font-size: 1.08rem; color: #333; max-width: 58ch; }
.hero-cover {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.hero-carousel {
  position: relative;
}
.carousel-track {
  position: relative;
  min-height: 280px;
}
.carousel-slide {
  display: none;
  position: relative;
  text-decoration: none;
  color: #fff;
}
.carousel-slide.active {
  display: block;
}
.carousel-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.45);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .9rem;
  backdrop-filter: blur(2px);
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.carousel-nav.prev { left: 8px; }
.carousel-nav.next { right: 8px; }
.section { padding: 28px 0 70px; }
.pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: .95rem;
}
.page-btn {
  text-decoration: none;
  color: #2b2b2b;
  border: 0;
  background: transparent;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.page-btn:hover {
  color: #111;
  border-bottom-color: #bbb;
}
.page-btn.disabled {
  opacity: .35;
  pointer-events: none;
}
.page-current {
  color: #777;
  font-size: .9rem;
  letter-spacing: .01em;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.card a { color: inherit; text-decoration: none; display: block; }
.card img, .placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #ece9df;
}
.card-content { padding: 14px 14px 18px; }
.card-date { color: var(--muted); font-size: .86rem; margin: 0 0 5px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: #444; }
.read-more { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; }
.hero-small { padding: 54px 0 16px; }
.meta { color: var(--muted); margin-top: -8px; }
.article-page .article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 22px;
}
.hero-image {
  width: 100%;
  border-radius: 12px;
  max-height: 560px;
  object-fit: cover;
}
.article-content {
  margin-top: 18px;
  font-size: 1.06rem;
}
.article-content p { margin: 0 0 1.05em; }
.source { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.source a { color: var(--accent); }
.inline-photo {
  margin: 1.1rem 0 1.4rem;
}
.inline-photo img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.lightbox-trigger { display: inline-block; cursor: zoom-in; }
.inline-photo .lightbox-trigger { display: block; width: 100%; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.prose { max-width: 780px; }
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 28px 0;
  color: #666;
  font-size: .9rem;
}
/* Global optimized article layout */
.layout-optimized .article {
  max-width: 1080px;
}
.layout-optimized .article-content {
  max-width: 920px;
  margin: 0 auto;
}
.layout-optimized .article-content p {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.layout-optimized .article-content .inline-photo {
  float: left;
  width: min(46%, 500px);
  margin: 4px 22px 14px 0;
}
.layout-optimized .article-content::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .layout-optimized .article-content,
  .layout-optimized .article {
    max-width: 100%;
  }
  .layout-optimized .article-content .inline-photo {
    float: none;
    width: 100%;
    margin: 10px 0 14px;
  }
}
@media (max-width: 1024px) {
  .site-search {
    display: flex !important;
    flex: 1 1 auto;
    justify-content: center;
  }
  .site-search input {
    height: 30px;
    width: min(300px, 100%);
  }
  .main-nav {
    display: none !important;
  }
  .mobile-nav-open {
    display: none;
  }
  .mobile-menu-fab {
    display: inline-flex;
    position: fixed;
    right: 12px;
    bottom: 14px;
    z-index: 7000;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    padding: 8px 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
  }
  /* keep mobile menu button visible so second tap can close drawer */
  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 6000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .mobile-nav.open,
  .mobile-nav:target {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100%;
    background: #fff;
    padding: 14px 14px 68px;
    overflow: auto;
  }
  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  #mobile-nav-close {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111;
  }
  .mobile-lang {
    display: flex;
    gap: 8px;
    margin: 4px 0 10px;
  }
  .lang-btn-mobile {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    height: 30px;
    padding: 0 10px;
    font-size: .9rem;
    cursor: pointer;
  }
  .mobile-group {
    border-top: 1px solid var(--line);
    padding: 8px 0;
  }
  .mobile-group summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
  }
  .mobile-group-links {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding-left: 8px;
  }
  .mobile-group-links a {
    text-decoration: none;
    color: #333;
    font-size: .93rem;
  }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .nav {
    min-height: 40px;
    padding: 3px 0;
    gap: 6px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }
  .brand-icon {
    order: 1;
    font-size: .88rem;
    gap: 4px;
  }
  .brand-icon img {
    width: 20px;
    height: 20px;
  }
  .site-search {
    display: flex !important;
    flex: 1 1 auto;
    order: 2;
    margin-top: 0;
    min-width: 0;
    padding-right: 10px;
  }
  .site-search input {
    width: 100%;
    height: 28px;
    font-size: .9rem;
    padding: 0 10px;
  }
  .mobile-nav-open {
    order: 3;
    width: 36px;
    height: 32px;
    font-size: 18px;
    flex: 0 0 auto;
    position: relative;
    z-index: 20;
    pointer-events: auto;
  }
  .home-logo {
    width: min(88vw, 420px);
  }
}

/* Desktop-only clean reading layout (pilot on Amalfi article) */
@media (min-width: 901px) {
  .layout-desktop-clean .article {
    max-width: 980px;
    margin: 0 auto;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .layout-desktop-clean .article > .lightbox-trigger {
    display: block;
    width: min(920px, 100%);
    margin: 0 auto 20px;
  }
  .layout-desktop-clean .hero-image {
    display: block;
    width: 100%;
    max-height: 620px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
  }
  .layout-desktop-clean .article-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.78;
  }
  .layout-desktop-clean .article-content p {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 1.15em;
  }
  .layout-desktop-clean .article-content .inline-photo {
    float: none;
    width: 100%;
    margin: 1.1rem auto 1.5rem;
  }
  .layout-desktop-clean .article-content .inline-photo img {
    max-width: 920px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
  }
}

.article-block-title {
  margin: 1.1rem 0 .45rem;
  font-size: clamp(1.05rem, 1.15vw, 1.22rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Mobile readability fix: remove paragraph card boxes */
@media (max-width: 900px) {
  .layout-optimized .article-content p {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 1.05em;
  }
}

.lang-switch { position: relative; }

.main-nav .lang-toggle {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.main-nav .lang-dropdown {
  min-width: 76px;
  left: auto;
  right: 0;
}

.main-nav .lang-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  text-decoration: none;
  color: #222;
  border-radius: 8px;
  font-size: .9rem;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.main-nav .lang-btn:hover { background: #f4f3ef; }

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
.goog-logo-link,
.goog-te-balloon-frame,
#goog-gt-tt {
  display: none !important;
}

body {
  top: 0 !important;
}
