*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#06184c;background:#fff}
body[dir="rtl"]{direction:rtl}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%}

.topbar{
  min-height:94px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px clamp(20px,5vw,68px);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  position:sticky;
  top:0;
  z-index:30;
  border-bottom:1px solid rgba(11,94,215,.10);
}
.brand{
  display:inline-flex;
  align-items:flex-start;
  gap:0;
  font-family:Georgia,serif;
  font-size:43px;
  font-weight:800;
  letter-spacing:-2px;
  color:#071b55;
  white-space:nowrap;
}
.brand b{color:#0b5ed7}
.brand i{
  width:18px;
  height:18px;
  background:#e30613;
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  margin:6px 0 0 4px;
  position:relative;
  flex:0 0 auto;
}
.brand i:after{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#fff;
  position:absolute;
  top:5px;
  left:5px;
}
.brand.light{font-size:34px;color:#fff}
.brand.light b{color:#fff}

.nav{
  display:flex;
  align-items:center;
  gap:26px;
  font-weight:800;
  font-size:15px;
  color:#06184c;
}
.nav a{white-space:nowrap}
.nav-cta{
  background:#0b5ed7;
  color:#fff;
  padding:16px 22px;
  border-radius:12px;
  box-shadow:0 12px 25px rgba(11,94,215,.22);
}

.lang-switch{position:relative}
.lang-btn{
  border:1px solid #d9e5fb;
  background:#fff;
  color:#06184c;
  border-radius:999px;
  min-height:44px;
  padding:0 13px;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:950;
  box-shadow:0 8px 20px rgba(16,24,40,.06);
}
.lang-flag{font-size:20px}
.lang-menu{
  position:absolute;
  top:52px;
  right:0;
  width:220px;
  background:#fff;
  border:1px solid #d9e5fb;
  border-radius:16px;
  box-shadow:0 24px 60px rgba(6,24,76,.16);
  padding:8px;
  display:none;
  z-index:50;
}
.lang-menu.open{display:block}
.lang-option{
  width:100%;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:12px;
  font-weight:800;
  color:#06184c;
}
.lang-option:hover,.lang-option.active{background:#eef5ff;color:#0b5ed7}

.hero{
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:54px;
  align-items:center;
  min-height:690px;
  padding:34px clamp(22px,5vw,68px) 38px;
  background:
    radial-gradient(circle at 0% 75%,rgba(11,94,215,.14),transparent 26%),
    radial-gradient(circle at 100% 45%,rgba(11,94,215,.18),transparent 22%),
    linear-gradient(180deg,#fff,#f8fbff);
}
.pill{
  text-transform:uppercase;
  background:#0b5ed7;
  color:#fff;
  display:inline-flex;
  border-radius:999px;
  padding:9px 17px;
  font-weight:950;
  font-size:13px;
  letter-spacing:.35px;
  margin-bottom:22px;
}
.hero h1{
  font-size:clamp(46px,6.2vw,84px);
  line-height:.96;
  letter-spacing:-4px;
  margin:0 0 22px;
  color:#06184c;
}
.hero h1 strong{display:block;color:#0b5ed7}
.hero p{
  font-size:20px;
  line-height:1.55;
  color:#4f5e7b;
  margin:0 0 28px;
  max-width:640px;
}
.searchbox{
  height:68px;
  max-width:520px;
  background:#fff;
  border:1px solid #d9e5fb;
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 18px;
  box-shadow:0 8px 20px rgba(16,24,40,.04);
}
.searchbox span{font-size:28px;color:#667085}
.searchbox input{border:0;outline:0;width:100%;font-size:17px;color:#06184c}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:22px}
.btn{
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 22px;
  border-radius:12px;
  font-weight:950;
  transition:.18s ease;
}
.btn:hover{transform:translateY(-1px)}
.primary{background:#0b5ed7;color:#fff;box-shadow:0 12px 24px rgba(11,94,215,.22)}
.secondary,.outline{background:#fff;color:#0b5ed7;border:2px solid #0b5ed7}
.small{min-height:38px;padding:0 18px;border-radius:9px;font-size:14px}
.hero-visual img{width:100%;display:block;filter:drop-shadow(0 24px 45px rgba(6,24,76,.13))}

.section{padding:30px clamp(22px,5vw,68px)}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px}
.section-head.centered{justify-content:center;text-align:center}
.section h2,.section-head h2,.ai-box h2,.business-box h2,.affiliate-box h2{
  font-size:34px;
  line-height:1.05;
  margin:0;
  color:#06184c;
  letter-spacing:-1.5px;
}
.section-head a{color:#0b5ed7;font-weight:900}

.zone-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:22px}
.zone-card{
  background:#fff;
  border:1px solid #d9e5fb;
  border-radius:18px;
  padding:14px;
  box-shadow:0 12px 25px rgba(16,24,40,.06);
}
.zone-card img{width:100%;height:135px;object-fit:cover;border-radius:13px}
.zone-card h3{font-size:18px;margin:12px 0 6px}
.status{display:inline-flex;padding:6px 10px;border-radius:999px;font-weight:950;font-size:12px;margin-bottom:12px}
.green{background:#dff8e7;color:#0b7a34}
.orange{background:#fff0d9;color:#c66a00}
.gray{background:#eef2f7;color:#667085}
.zone-card .btn{width:100%}

.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:24px}
.category{
  height:138px;
  border:1px solid #d9e5fb;
  border-radius:18px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#06184c;
  box-shadow:0 10px 22px rgba(16,24,40,.04);
  cursor:pointer;
}
.category span{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#edf5ff;font-size:34px}
.category b{font-size:17px}

.event-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.event-card{
  background:#fff;
  border:1px solid #d9e5fb;
  border-radius:17px;
  overflow:hidden;
  box-shadow:0 12px 26px rgba(16,24,40,.07);
}
.event-card img{width:100%;height:180px;object-fit:cover;display:block}
.event-card div{padding:16px}
.event-card h3{margin:0 0 7px;font-size:19px}
.event-card p{margin:6px 0;color:#4f5e7b;font-size:14px}
.event-card .btn{float:right;margin-top:-32px}

.ai-box,.business-box,.affiliate-box{
  margin:28px clamp(22px,5vw,68px);
  border:1px solid #c9ddff;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f6faff);
  box-shadow:0 12px 28px rgba(16,24,40,.05);
}
.ai-box{
  display:grid;
  grid-template-columns:130px 1fr 1.6fr auto;
  gap:24px;
  align-items:center;
  padding:22px;
}
.ai-box img{width:112px}
.ai-box p,.business-box p,.affiliate-box p{color:#4f5e7b;line-height:1.5}
.quick-questions{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.quick-questions button{
  border:1px solid #d9e5fb;
  background:#fff;
  color:#4f5e7b;
  border-radius:10px;
  padding:12px 16px;
  text-align:left;
  cursor:pointer;
  font-weight:800;
}
.business-box{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:24px;
  align-items:center;
  padding:28px 34px;
}
.business-box h2 strong,.affiliate-box h2 strong{color:#0b5ed7}
.listing-preview{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:18px;
  background:#fff;
  border:1px solid #d9e5fb;
  border-radius:18px;
  padding:14px;
  box-shadow:0 16px 34px rgba(16,24,40,.08);
}
.listing-preview img{width:100%;height:190px;object-fit:cover;border-radius:14px}
.listing-preview h3{margin:0 0 4px}
.stars{color:#f59e0b!important;font-weight:950}
.stars span{color:#667085;font-weight:800}
.mini-actions{display:flex;gap:15px;flex-wrap:wrap;color:#0b5ed7;font-weight:800;font-size:13px}

.affiliate-box{
  display:grid;
  grid-template-columns:290px 1fr auto;
  gap:26px;
  align-items:center;
  padding:24px 34px;
}
.affiliate-box img{width:100%;border-radius:16px}
.features{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px}
.features span{background:#fff;border:1px solid #d9e5fb;border-radius:12px;padding:12px 14px;font-weight:900;font-size:13px}

.footer{
  margin-top:36px;
  background:linear-gradient(135deg,#06184c,#064cb7);
  color:#fff;
  padding:34px clamp(22px,5vw,68px);
  display:grid;
  grid-template-columns:1.6fr repeat(4,1fr);
  gap:30px;
}
.footer p{color:#d4e3ff}
.footer h4{margin:0 0 12px}
.footer a{display:block;color:#d4e3ff;margin:7px 0;font-size:14px}

.toast{
  position:fixed;
  right:22px;
  bottom:22px;
  background:#06184c;
  color:#fff;
  padding:14px 18px;
  border-radius:12px;
  box-shadow:0 18px 40px rgba(0,0,0,.25);
  opacity:0;
  pointer-events:none;
  transform:translateY(12px);
  transition:.2s;
  z-index:100;
}
.toast.show{opacity:1;transform:translateY(0)}

@media(max-width:1100px){
  .hero{grid-template-columns:1fr}
  .zone-grid{grid-template-columns:repeat(2,1fr)}
  .category-grid{grid-template-columns:repeat(3,1fr)}
  .event-grid{grid-template-columns:1fr}
  .ai-box,.business-box,.affiliate-box{grid-template-columns:1fr}
  .footer{grid-template-columns:1fr 1fr}
  .nav{gap:14px}
  .nav a:not(.nav-cta),.nav .lang-switch{display:none}
}
@media(max-width:680px){
  .topbar{min-height:76px}
  .brand{font-size:32px}
  .hero{padding-top:28px;min-height:auto}
  .hero h1{font-size:48px;letter-spacing:-2px}
  .hero p{font-size:18px}
  .zone-grid,.category-grid{grid-template-columns:1fr}
  .listing-preview{grid-template-columns:1fr}
  .footer{grid-template-columns:1fr}
  .ai-box,.business-box,.affiliate-box{margin-left:18px;margin-right:18px}
  .quick-questions{grid-template-columns:1fr}
}

/* =========================================================
   ScanMAP bozza - topbar stile landing map2.salerno.it
   ========================================================= */

:root {
  --scanmap-top-h: 76px;
}

body.scanmap-bozza-body {
  padding-top: var(--scanmap-top-h);
}

.scanmap-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--scanmap-top-h);
  z-index: 250001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #071b31 0%, #061527 100%);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 34px rgba(0,0,0,.30);
  color: #fff;
}

.scanmap-topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
}

.scanmap-brand-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.scanmap-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.25), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  overflow: hidden;
  flex: 0 0 auto;
}

.scanmap-logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.scanmap-brand-shell {
  min-width: 0;
  display: grid;
  line-height: 1.05;
}

.scanmap-brand-shell strong {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.scanmap-brand-shell span {
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scanmap-topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  overflow: visible;
}

.top-btn {
  min-width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.20);
  font-size: 20px;
  cursor: pointer;
}

.top-btn.open-visitare {
  width: auto;
  padding: 0 15px;
  gap: 8px;
  display: flex;
  font-size: 14px;
  font-weight: 950;
  background: linear-gradient(135deg, #ff665b, #ff8274);
  border: 0;
  box-shadow: 0 14px 32px rgba(255,102,91,.28);
}

.lang-wrap,
.account-wrap {
  position: relative;
  z-index: 260000;
}

.current-flag {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}

#langBtn {
  width: auto;
  min-width: 86px;
  height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#langBtn .home-lang-code {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

#langBtn .home-lang-caret {
  display: inline-block;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}

.lang-dropdown,
.account-dropdown {
  position: absolute;
  top: 56px;
  right: 0;
  width: 230px;
  max-width: calc(100vw - 20px);
  display: none;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 12px;
  border-radius: 20px;
  background: rgba(5,20,42,.97);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 64px rgba(0,0,0,.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 900002;
}

.lang-dropdown.is-open,
.account-dropdown.is-open {
  display: grid;
}

.home-lang-row,
.account-row {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 10px;
  margin: 0;
  display: grid;
  grid-template-columns: 34px 42px 1fr;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.account-row {
  grid-template-columns: 34px 1fr;
}

.home-lang-row:hover,
.home-lang-row.is-active,
.account-row:hover {
  background: rgba(255,255,255,.11);
}

.home-lang-row img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.home-lang-row strong,
.account-row strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.home-lang-row span,
.account-row span {
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-row .account-icon {
  font-size: 21px;
}

@media(max-width: 760px) {
  body.scanmap-bozza-body {
    padding-top: 72px;
  }

  .scanmap-topbar {
    height: 72px;
    padding: 7px 8px;
    gap: 6px;
  }

  .scanmap-logo {
    width: 44px;
    height: 44px;
  }

  .scanmap-logo img {
    width: 40px;
    height: 40px;
  }

  .scanmap-brand-shell {
    max-width: calc(100vw - 252px);
  }

  .scanmap-brand-shell strong {
    font-size: 15px;
    letter-spacing: -.03em;
  }

  .scanmap-brand-shell span {
    display: none;
  }

  .scanmap-topbar-right {
    gap: 6px;
  }

  .top-btn {
    min-width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .top-btn.open-visitare {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .top-btn.open-visitare .open-map-label {
    display: none;
  }

  #shellListBtn {
    display: none;
  }

  #langBtn {
    min-width: 72px;
    height: 42px;
    padding: 0 9px;
    gap: 6px;
  }

  #langBtn img,
  #currentFlag {
    width: 24px;
    height: 24px;
  }

  #langDropdown,
  #accountDropdown {
    top: 50px;
    width: 214px;
  }
}

@media(max-width: 420px) {
  .scanmap-brand-shell strong {
    font-size: 14px;
  }

  .scanmap-brand-shell {
    max-width: calc(100vw - 222px);
  }

  #langBtn {
    min-width: 64px;
  }

  #langBtn .home-lang-caret {
    display: none;
  }
}
