/*
Theme Name: MyBellaNapoli
Theme URI: https://mybellanapoli.it/
Author: MyBellaNapoli
Description: Portale turistico e directory delle attività della Campania.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: mybellanapoli
*/

:root {
  --mbn-ink: #13251f;
  --mbn-muted: #63706b;
  --mbn-cream: #f7f2e8;
  --mbn-paper: #fffdf8;
  --mbn-red: #d6472e;
  --mbn-red-dark: #aa321f;
  --mbn-green: #1f6b52;
  --mbn-gold: #e6ad3c;
  --mbn-line: #e4ddd0;
  --mbn-radius: 24px;
  --mbn-shadow: 0 18px 50px rgba(19, 37, 31, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mbn-ink);
  background: var(--mbn-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.mbn-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.mbn-section { padding: 84px 0; }
.mbn-section--cream { background: var(--mbn-cream); }
.mbn-kicker {
  margin: 0 0 10px;
  color: var(--mbn-red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mbn-title {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.mbn-lead { max-width: 680px; color: var(--mbn-muted); font-size: 1.1rem; }

.mbn-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(228, 221, 208, .8);
  backdrop-filter: blur(16px);
}
.mbn-nav { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.mbn-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; }
.mbn-brand__mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: white; background: var(--mbn-red); border-radius: 50% 50% 50% 12px;
  font-family: Georgia, serif; font-size: 1.45rem;
}
.mbn-brand__name { font-family: Georgia, serif; font-size: 1.24rem; }
.mbn-brand--logo .custom-logo-link { display: block; line-height: 0; }
.mbn-brand--logo .custom-logo { width: auto; max-width: 190px; max-height: 64px; object-fit: contain; }
.mbn-menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.mbn-menu a { font-size: .94rem; font-weight: 700; }
.mbn-menu a:hover { color: var(--mbn-red); }
.mbn-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  color: #fff; background: var(--mbn-red); border: 0; border-radius: 999px;
  box-shadow: 0 9px 24px rgba(214, 71, 46, .2);
  cursor: pointer; font: inherit; font-weight: 800;
}
.mbn-button:hover { color: #fff; background: var(--mbn-red-dark); transform: translateY(-1px); }
.mbn-button--ghost { color: var(--mbn-ink); background: #fff; box-shadow: none; border: 1px solid var(--mbn-line); }
.mbn-button--ghost:hover { color: var(--mbn-red); background: #fff; }
.mbn-menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; font-size: 1.5rem; }

.mbn-hero {
  position: relative; overflow: hidden; padding: 108px 0 92px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(15, 41, 32, .94) 15%, rgba(15, 41, 32, .65) 62%, rgba(15, 41, 32, .35)),
    url("https://mybellanapoli.it/wp-content/uploads/2026/11/castel-dell-ovo-napoli-1.jpg") center/cover;
}
.mbn-hero::after {
  content: ""; position: absolute; right: -100px; bottom: -170px;
  width: 430px; height: 430px; border: 70px solid rgba(230, 173, 60, .25); border-radius: 50%;
}
.mbn-hero__content { position: relative; z-index: 1; max-width: 800px; }
.mbn-hero .mbn-kicker { color: #ffd984; }
.mbn-hero h1 {
  margin: 8px 0 24px; font-family: Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 7rem); line-height: .92; letter-spacing: -.055em;
}
.mbn-hero p { max-width: 660px; margin: 0 0 32px; color: rgba(255,255,255,.84); font-size: 1.18rem; }
.mbn-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mbn-searchbar {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 10px; margin-top: 48px; padding: 12px; color: var(--mbn-ink); background: #fff;
  border-radius: 18px; box-shadow: var(--mbn-shadow);
}
.mbn-searchbar input, .mbn-searchbar select, .mbn-field input, .mbn-field select, .mbn-field textarea {
  width: 100%; min-height: 52px; padding: 0 15px; color: var(--mbn-ink);
  background: #fff; border: 1px solid var(--mbn-line); border-radius: 12px; font: inherit;
}
.mbn-field textarea { min-height: 140px; padding-top: 13px; resize: vertical; }

.mbn-stats { position: relative; z-index: 3; margin-top: -34px; }
.mbn-stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  background: #fff; border: 1px solid var(--mbn-line); border-radius: 22px; box-shadow: var(--mbn-shadow);
}
.mbn-stat { padding: 26px; text-align: center; border-right: 1px solid var(--mbn-line); }
.mbn-stat:last-child { border: 0; }
.mbn-stat strong { display: block; font-family: Georgia, serif; font-size: 2rem; }
.mbn-stat span { color: var(--mbn-muted); font-size: .88rem; }

.mbn-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.mbn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mbn-card {
  overflow: hidden; background: #fff; border: 1px solid var(--mbn-line);
  border-radius: var(--mbn-radius); box-shadow: 0 8px 28px rgba(19, 37, 31, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mbn-card:hover { transform: translateY(-5px); box-shadow: var(--mbn-shadow); }
.mbn-card__media { position: relative; height: 220px; background: linear-gradient(135deg, #d9e8df, #f0cc7d); }
.mbn-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mbn-card__badge {
  position: absolute; left: 16px; top: 16px; padding: 7px 11px;
  color: #fff; background: rgba(19,37,31,.85); border-radius: 999px;
  font-size: .72rem; font-weight: 800; backdrop-filter: blur(8px);
}
.mbn-card__body { padding: 22px; }
.mbn-card__body h3 { margin: 5px 0 8px; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.15; }
.mbn-card__meta { margin: 0; color: var(--mbn-muted); font-size: .9rem; }
.mbn-card__link { display: inline-block; margin-top: 16px; color: var(--mbn-red); font-weight: 800; }
.mbn-empty { grid-column: 1 / -1; padding: 40px; background: #fff; border: 1px dashed var(--mbn-line); border-radius: 18px; text-align: center; }

.mbn-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mbn-category {
  min-height: 155px; padding: 22px; display: flex; flex-direction: column; justify-content: end;
  color: #fff; background: var(--mbn-green); border-radius: 20px;
}
.mbn-category:nth-child(2n) { background: var(--mbn-red); }
.mbn-category:nth-child(3n) { background: #b77a18; }
.mbn-category strong { font-family: Georgia, serif; font-size: 1.35rem; }
.mbn-category span { opacity: .78; font-size: .86rem; }

.mbn-provinces { display: flex; flex-wrap: wrap; gap: 12px; }
.mbn-chip { padding: 11px 17px; background: #fff; border: 1px solid var(--mbn-line); border-radius: 999px; font-weight: 750; }
.mbn-chip:hover { color: #fff; background: var(--mbn-green); border-color: var(--mbn-green); }

.mbn-cta {
  display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 36px;
  padding: 52px; color: #fff; background: var(--mbn-ink); border-radius: 30px;
}
.mbn-cta h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.mbn-cta p { margin: 0; color: rgba(255,255,255,.72); }
.mbn-cta__actions { display: flex; flex-direction: column; gap: 12px; }

.mbn-content { padding: 70px 0; }
.mbn-article { max-width: 820px; margin: 0 auto; }
.mbn-article h1 { font-family: Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1; }
.mbn-featured { overflow: hidden; margin: 28px 0; border-radius: var(--mbn-radius); }
.mbn-featured img { width: 100%; max-height: 540px; object-fit: cover; }
.mbn-listing-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
.mbn-detail { padding: 18px; background: var(--mbn-cream); border-radius: 14px; }
.mbn-detail strong { display: block; margin-bottom: 3px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.mbn-detail a { color: var(--mbn-red); }

.mbn-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mbn-field--wide { grid-column: 1 / -1; }
.mbn-field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 800; }
.mbn-notice { margin-bottom: 22px; padding: 16px 18px; border-radius: 12px; background: #e5f5ee; border: 1px solid #bce3d2; }
.mbn-notice--error { background: #fff0ed; border-color: #f1c1b9; }
.mbn-pagination { margin-top: 34px; display: flex; gap: 8px; }
.mbn-pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--mbn-line); border-radius: 8px; }
.mbn-pagination .current { color: #fff; background: var(--mbn-red); border-color: var(--mbn-red); }

.mbn-ad { margin: 36px auto 0; text-align: center; }
.mbn-grid > .mbn-ad { grid-column: 1 / -1; margin: 0; }
.mbn-ad__label { display: block; margin-bottom: 6px; color: var(--mbn-muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.mbn-ad:has(ins[data-ad-status="unfilled"]) { display: none; }

.mbn-footer { padding: 64px 0 28px; color: #fff; background: #0d1d18; }
.mbn-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.mbn-footer h3 { margin-top: 0; font-family: Georgia, serif; }
.mbn-footer p, .mbn-footer a { color: rgba(255,255,255,.68); }
.mbn-footer a:hover { color: #fff; }
.mbn-footer__links { display: grid; gap: 9px; }
.mbn-footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .85rem; }

@media (max-width: 900px) {
  .mbn-menu-toggle { display: block; }
  .mbn-menu {
    position: absolute; left: 20px; right: 20px; top: 70px; display: none;
    padding: 20px; align-items: stretch; flex-direction: column; background: #fff;
    border: 1px solid var(--mbn-line); border-radius: 16px; box-shadow: var(--mbn-shadow);
  }
  .mbn-menu.is-open { display: flex; }
  .mbn-searchbar { grid-template-columns: 1fr; }
  .mbn-stats__grid, .mbn-categories { grid-template-columns: repeat(2, 1fr); }
  .mbn-grid { grid-template-columns: repeat(2, 1fr); }
  .mbn-cta, .mbn-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .mbn-wrap { width: min(100% - 28px, 1180px); }
  .mbn-brand--logo .custom-logo { max-width: 140px; max-height: 50px; }
  .mbn-section { padding: 60px 0; }
  .mbn-hero { padding: 78px 0 70px; }
  .mbn-stats__grid, .mbn-grid, .mbn-categories, .mbn-form, .mbn-listing-details { grid-template-columns: 1fr; }
  .mbn-stat { border-right: 0; border-bottom: 1px solid var(--mbn-line); }
  .mbn-heading-row { align-items: start; flex-direction: column; }
  .mbn-cta { padding: 34px 26px; }
}
