/* RedBay — nuova home (bozza) */
:root {
  --rb-red: #dd3333;
  --rb-red-dark: #b81f24;
  --rb-red-soft: #fdecec;
  --rb-navy: #0a1a4a;
  --rb-navy-2: #08143a;
  --rb-ink: #0f1c3f;
  --rb-text: #5b6478;
  --rb-muted: #8a93a6;
  --rb-line: #e6e9f0;
  --rb-bg-soft: #f5f7fc;
  --rb-blue: #1f5eff;
  --rb-gray: #3e3e3e;
  --rb-radius: 14px;
  --rb-shadow: 0 10px 40px rgba(15, 28, 63, .08);
  --rb-shadow-lg: 0 24px 60px rgba(15, 28, 63, .14);
  --rb-font-head: "Urbanist", system-ui, sans-serif;
  --rb-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--rb-font-body);
  color: var(--rb-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .rb-head { font-family: var(--rb-font-head); color: var(--rb-ink); font-weight: 800; line-height: 1.15; }
a { color: var(--rb-red); text-decoration: none; }
a:hover { color: var(--rb-red-dark); }
img { max-width: 100%; height: auto; }
.text-red { color: var(--rb-red) !important; }
.bg-soft { background: var(--rb-bg-soft); }
section { position: relative; }
html, body { overflow-x: clip; }
@media (max-width: 767px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
.section-pad { padding: 110px 0; }
@media (max-width: 991px) { .section-pad { padding: 80px 0; } }

/* ---------- Buttons ---------- */
.btn-rb {
  --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem;
  background: var(--rb-red); color: #fff; border: 2px solid var(--rb-red);
  font-family: var(--rb-font-head); font-weight: 700; letter-spacing: .02em;
  border-radius: 50px; transition: all .25s ease; box-shadow: 0 8px 24px rgba(221, 51, 51, .25);
}
.btn-rb:hover, .btn-rb:focus { background: var(--rb-red-dark); border-color: var(--rb-red-dark); color: #fff; transform: translateY(-2px); }
.btn-rb-outline {
  --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem;
  background: transparent; color: var(--rb-red); border: 2px solid var(--rb-red);
  font-family: var(--rb-font-head); font-weight: 700; border-radius: 50px; transition: all .25s ease;
}
.btn-rb-outline:hover { background: var(--rb-red); color: #fff; }
.btn-rb-white { background: #fff; color: var(--rb-red); border: 2px solid #fff; border-radius: 50px; font-family: var(--rb-font-head); font-weight: 700; padding: .85rem 1.6rem; }
.btn-rb-white:hover { background: transparent; color: #fff; }
.btn i { transition: transform .25s; }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

.rb-eyebrow {
  display: inline-block; background: var(--rb-red-soft); color: var(--rb-red);
  font-family: var(--rb-font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .4rem 1rem; border-radius: 50px; margin-bottom: 1.1rem;
}
.rb-eyebrow.on-dark { background: rgba(255, 255, 255, .1); color: #fff; }
.section-title { font-size: clamp(2rem, 3.4vw, 2.85rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.07rem; max-width: 640px; }

/* ---------- Topbar ---------- */
.rb-topbar { background: var(--rb-gray); color: #d7d7d7; font-size: .88rem; }
.rb-topbar a { color: #d7d7d7; }
.rb-topbar a:hover { color: #fff; }
.rb-topbar .tb-item { padding: .7rem 0; display: inline-flex; align-items: center; gap: .5rem; }
.rb-topbar .tb-sep { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 1.2rem; margin-left: 1.2rem; }
.rb-topbar .social a { margin-left: .9rem; font-size: .95rem; }
.rb-topbar .tb-cta {
  background: var(--rb-red); color: #fff; font-family: var(--rb-font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .72rem 1.6rem; margin-left: 1.4rem; display: inline-flex; align-items: center; gap: .5rem;
}
.rb-topbar .tb-cta:hover { background: var(--rb-red-dark); color: #fff; }

/* ---------- Navbar ---------- */
.rb-nav { background: #fff; transition: box-shadow .3s, padding .3s; padding: 1.05rem 0; z-index: 1030; }
.rb-nav.is-stuck { box-shadow: 0 6px 30px rgba(15, 28, 63, .08); padding: .6rem 0; }
.rb-nav .navbar-brand img { height: 42px; width: auto; }
.rb-nav .nav-link {
  font-family: var(--rb-font-head); font-weight: 600; color: var(--rb-ink); font-size: 1.05rem;
  padding: .5rem 1rem !important; position: relative;
}
.rb-nav .nav-link:hover, .rb-nav .nav-link.active, .rb-nav .show > .nav-link { color: var(--rb-red); }
.rb-nav .dropdown-menu {
  border: 0; border-radius: 12px; box-shadow: var(--rb-shadow-lg); padding: .7rem; min-width: 250px;
  border-top: 3px solid var(--rb-red); margin-top: .6rem;
}
.rb-nav .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 500; color: var(--rb-ink); font-size: .95rem; display: flex; align-items: center; gap: .6rem; }
.rb-nav .dropdown-item i { color: var(--rb-red); width: 18px; }
.rb-nav .dropdown-item:hover { background: var(--rb-red-soft); color: var(--rb-red); }
.rb-nav .dropdown-header { font-family: var(--rb-font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--rb-muted); }
@media (min-width: 1200px) {
  .rb-nav .dropdown > .dropdown-menu { animation: rbDrop .2s ease; }
}
@keyframes rbDrop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rb-call { display: flex; align-items: center; gap: .8rem; }
.rb-call .ic {
  width: 46px; height: 46px; border-radius: 50%; background: var(--rb-red); color: #fff;
  display: grid; place-items: center; font-size: 1.15rem; box-shadow: 0 6px 18px rgba(221, 51, 51, .35);
}
.rb-call small { display: block; font-size: .78rem; color: var(--rb-muted); line-height: 1.1; }
.rb-call strong { font-family: var(--rb-font-head); color: var(--rb-ink); font-size: 1.1rem; }
@media (max-width: 1199px) {
  .rb-nav .navbar-collapse { max-height: 75vh; overflow-y: auto; padding: 1rem 0; }
  .rb-nav .dropdown-menu { box-shadow: none; border-top: 0; background: var(--rb-bg-soft); }
}

/* ---------- Hero ---------- */
.rb-hero {
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(221, 51, 51, .07), transparent 60%),
    linear-gradient(180deg, #f4f6fc 0%, #f8f9fd 100%);
  padding: 90px 0 170px; overflow: hidden;
}
.rb-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); letter-spacing: -.01em; margin-bottom: 1.4rem; }
.rb-hero h1 .hl { color: var(--rb-red); position: relative; white-space: nowrap; }
.rb-hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .16em; background: rgba(221, 51, 51, .18); border-radius: 4px; z-index: -1;
}
.rb-hero p.lead { font-size: 1.15rem; max-width: 540px; color: var(--rb-text); }
.rb-hero .hero-visual { position: relative; }
.rb-hero .hero-visual .ring {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; right: 2%; top: 4%;
  border: 26px solid rgba(15, 28, 63, .06);
}
.rb-hero .hero-visual .dots {
  position: absolute; left: -10px; bottom: 80px; width: 150px; height: 150px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, rgba(31, 94, 255, .25) 0 2px, transparent 2px 9px);
}
.rb-hero .hero-visual img.main { position: relative; z-index: 2; width: 100%; }
.hero-badge {
  position: absolute; z-index: 3; background: #fff; border-radius: 14px; box-shadow: var(--rb-shadow-lg);
  padding: .9rem 1.1rem; display: flex; align-items: center; gap: .8rem; font-size: .9rem; line-height: 1.3;
}
.hero-badge .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.hero-badge strong { display: block; font-family: var(--rb-font-head); color: var(--rb-ink); font-size: 1.25rem; }
.hero-badge.b1 { left: -4%; top: 58%; animation: floatY 5s ease-in-out infinite; }
.hero-badge.b1 .ic { background: var(--rb-red-soft); color: var(--rb-red); }
.hero-badge.b2 { right: 0; bottom: 18%; animation: floatY 6s ease-in-out infinite reverse; }
.hero-badge.b2 .ic { background: #e8efff; color: var(--rb-blue); }
@keyframes floatY { 50% { transform: translateY(-10px); } }
@media (min-width: 992px) and (max-width: 1199px) { .hero-badge.b2 { bottom: 5%; } }
@media (max-width: 575px) {
  .hero-badge { padding: .5rem .7rem; gap: .55rem; font-size: .76rem; }
  .hero-badge .ic { width: 32px; height: 32px; font-size: 1rem; }
  .hero-badge strong { font-size: .95rem; }
  .hero-badge.b2 { bottom: 2%; }
}
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; font-size: .92rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -12px; }
.hero-trust .avatars img:first-child { margin-left: 0; }
.hero-trust strong { color: var(--rb-ink); }
@media (max-width: 991px) {
  .rb-hero { padding: 60px 0 140px; }
  .hero-badge.b1 { left: 0; }
}

/* ---------- Feature strip ---------- */
.rb-features { margin-top: -110px; z-index: 5; }
.rb-features .box { background: #fff; border-radius: 18px; box-shadow: var(--rb-shadow-lg); padding: 2.6rem 2.4rem; }
.feat { display: flex; gap: 1.2rem; }
.feat .ic {
  width: 74px; height: 74px; border-radius: 16px; background: var(--rb-bg-soft); color: var(--rb-red);
  display: grid; place-items: center; font-size: 2rem; flex-shrink: 0; position: relative; transition: all .3s;
}
.feat .ic::after { content: ""; position: absolute; right: -9px; top: 50%; width: 3px; height: 18px; margin-top: -9px; background: var(--rb-red); border-radius: 2px; }
.feat:hover .ic { background: var(--rb-red); color: #fff; }
.feat h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.feat p { margin: 0; }

/* ---------- About ---------- */
.about-visual { position: relative; padding: 0 60px 60px 0; }
.about-visual .img-1 { border-radius: 16px; width: 82%; object-fit: cover; }
.about-visual .img-2 { position: absolute; right: 0; bottom: 0; width: 52%; border-radius: 16px; border: 8px solid #fff; box-shadow: var(--rb-shadow-lg); }
.about-visual .years {
  position: absolute; left: 10%; bottom: 10px; background: var(--rb-red); color: #fff; border-radius: 14px;
  padding: 1.2rem 1.6rem; text-align: center; box-shadow: 0 16px 40px rgba(221, 51, 51, .35);
}
.about-visual .years strong { display: block; font-family: var(--rb-font-head); font-size: 3.2rem; line-height: 1; font-weight: 800; }
.about-visual .years span { font-family: var(--rb-font-head); font-weight: 600; line-height: 1.2; display: block; }
.about-visual .happy {
  position: absolute; left: -20px; top: 40px; background: #fff; border-radius: 14px; box-shadow: var(--rb-shadow-lg);
  padding: .9rem 1.1rem; font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-ink);
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-ink); font-size: 1.08rem; }
.check-list li i { color: var(--rb-blue); font-size: 1.25rem; }
.check-list li sup { font-size: .6em; }
.stat-pill { display: flex; align-items: center; gap: 1rem; }
.stat-pill .ic { font-size: 2.4rem; color: var(--rb-red); }
.stat-pill strong { font-family: var(--rb-font-head); font-size: 2.6rem; color: var(--rb-ink); line-height: 1; display: block; font-weight: 800; }
.highlight-q { font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-ink); font-size: 1.1rem; }
.highlight-q u { text-decoration-color: var(--rb-red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Marketplaces ---------- */
.rb-brands { border-top: 1px solid var(--rb-line); padding: 34px 0; }
.rb-brands .lbl { font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-ink); font-size: .95rem; }
.rb-brands img { max-height: 58px; width: auto; filter: grayscale(1); opacity: .65; transition: all .3s; mix-blend-mode: multiply; }
.rb-brands a:hover img { filter: none; opacity: 1; }

/* ---------- Services ---------- */
.rb-services { background: var(--rb-bg-soft); }
.svc-card {
  background: #fff; border-radius: 16px; overflow: hidden; height: 100%; display: flex; flex-direction: column;
  box-shadow: 0 4px 20px rgba(15, 28, 63, .05); transition: transform .3s, box-shadow .3s; position: relative; color: inherit;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--rb-shadow-lg); color: inherit; }
.svc-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-card:hover .thumb img { transform: scale(1.06); }
.svc-card .ic {
  width: 64px; height: 64px; border-radius: 14px; background: var(--rb-red); color: #fff; display: grid; place-items: center;
  font-size: 1.7rem; margin: -32px 0 0 28px; position: relative; z-index: 2; box-shadow: 0 10px 24px rgba(221, 51, 51, .35);
}
.svc-card .body { padding: 1.2rem 1.75rem 1.9rem; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.svc-card p { font-size: .96rem; flex: 1; }
.svc-card .more { font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-red); font-size: .95rem; }
.svc-card .wm { position: absolute; right: 18px; bottom: 14px; font-size: 3.4rem; color: rgba(31, 94, 255, .07); }

.svc-mini {
  display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: 14px; padding: 1.4rem; height: 100%;
  border: 1px solid var(--rb-line); transition: all .25s; color: inherit;
}
.svc-mini:hover { border-color: transparent; box-shadow: var(--rb-shadow); transform: translateY(-3px); color: inherit; }
.svc-mini .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--rb-red-soft); color: var(--rb-red); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; transition: all .25s; }
.svc-mini:hover .ic { background: var(--rb-red); color: #fff; }
.svc-mini h4 { font-size: 1.1rem; margin: .1rem 0 .25rem; }
.svc-mini p { font-size: .9rem; margin: 0; line-height: 1.55; }

/* ---------- How it works ---------- */
.step { text-align: center; padding: 0 .8rem; position: relative; }
.step .num {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1.4rem; display: grid; place-items: center; font-size: 2.2rem;
  background: #fff; color: var(--rb-red); box-shadow: var(--rb-shadow); position: relative; z-index: 2; transition: all .3s;
}
.step .num span {
  position: absolute; top: -4px; right: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--rb-navy); color: #fff;
  font-family: var(--rb-font-head); font-weight: 800; font-size: .9rem; display: grid; place-items: center;
}
.step:hover .num { background: var(--rb-red); color: #fff; }
.step h4 { font-size: 1.25rem; }
.step p { font-size: .95rem; }
@media (min-width: 992px) {
  .steps-row .col-lg-3:not(:last-child) .step::after {
    content: ""; position: absolute; top: 48px; left: calc(50% + 60px); width: calc(100% - 120px); border-top: 2px dashed #d6dbe7;
  }
}

/* ---------- Why us (dark) ---------- */
.rb-why { background: var(--rb-navy); color: #c5cbe0; overflow: hidden; padding-bottom: 190px; }
.rb-why h2 { color: #fff; }
.rb-why::before {
  content: ""; position: absolute; left: -120px; bottom: -80px; width: 520px; height: 520px; opacity: .18;
  background-image: radial-gradient(circle, #6f86d6 1.4px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%); mask-image: radial-gradient(circle, #000 40%, transparent 70%);
}
.why-visual { position: relative; }
.why-visual img { position: relative; z-index: 2; }
.why-visual::before {
  content: ""; position: absolute; right: 2%; top: 8%; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--rb-blue), #0b3ad1); z-index: 1;
}
.why-item { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.why-item .ic { width: 50px; height: 50px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #ff6b6b; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.why-item h4 { color: #fff; font-size: 1.15rem; margin-bottom: .2rem; }
.why-item p { margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.rb-cta-wrap { margin-top: -95px; z-index: 5; }
.rb-cta {
  background: linear-gradient(110deg, #1f5eff 0%, #0b45e0 100%); border-radius: 18px; color: #fff; overflow: hidden;
  position: relative; box-shadow: 0 30px 60px rgba(11, 69, 224, .3);
}
.rb-cta .left { background: rgba(255, 255, 255, .08); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); padding: 2.4rem 4rem 2.4rem 2.6rem; height: 100%; display: flex; align-items: center; gap: 1rem; }
.rb-cta .left .ic { width: 66px; height: 66px; border-radius: 50%; background: #fff; color: var(--rb-red); display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.rb-cta .left small { display: block; font-family: var(--rb-font-head); font-weight: 600; font-size: 1rem; opacity: .9; }
.rb-cta .left a { color: #fff; font-family: var(--rb-font-head); font-weight: 800; font-size: 1.55rem; }
.rb-cta h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
@media (max-width: 991px) { .rb-cta .left { clip-path: none; padding: 1.8rem; } .rb-cta .mid { padding: 1.4rem 1.8rem .4rem; } .rb-cta .end { padding: 0 1.8rem 1.8rem; } }

/* ---------- Map ---------- */
.map-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.4rem; }
.map-filters button {
  border: 1px solid var(--rb-line); background: #fff; color: var(--rb-ink); border-radius: 50px; padding: .55rem 1.15rem;
  font-family: var(--rb-font-head); font-weight: 700; font-size: .93rem; display: inline-flex; align-items: center; gap: .45rem; transition: all .2s;
}
.map-filters button:hover { border-color: var(--rb-red); color: var(--rb-red); }
.map-filters button.active { background: var(--rb-red); border-color: var(--rb-red); color: #fff; box-shadow: 0 8px 20px rgba(221, 51, 51, .25); }
.map-shell { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--rb-shadow-lg); border: 6px solid #fff; }
#rbMap { height: 560px; background: #e9eef6; }
@media (max-width: 767px) { #rbMap { height: 440px; } }
.map-search {
  position: absolute; z-index: 500; top: 16px; right: 16px; width: min(320px, calc(100% - 76px)); /* a sinistra restano i pulsanti dello zoom */
}
.map-search .form-control { border-radius: 50px; padding: .8rem 1.2rem .8rem 2.8rem; border: 0; box-shadow: var(--rb-shadow-lg); font-size: .95rem; }
.map-search i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--rb-muted); }
.rb-pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--rb-red); transform: rotate(-45deg);
  border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(221, 51, 51, .22) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: var(--rb-red) !important; color: #fff; font-family: var(--rb-font-head); font-weight: 800;
}
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--rb-font-body); font-size: .88rem; line-height: 1.45; }
.leaflet-popup-content h6 { font-family: var(--rb-font-head); font-weight: 800; font-size: 1rem; margin: 0 0 .25rem; color: var(--rb-ink); }
.leaflet-popup-content .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .5rem; }
.leaflet-popup-content .tags span { background: var(--rb-red-soft); color: var(--rb-red); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; }
.map-stats .num { font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-ink); font-size: 2.6rem; line-height: 1; }
.map-stats .lbl { font-size: .92rem; }

/* ---------- Business / affiliation ---------- */
.biz-card {
  border-radius: 18px; padding: 2.4rem; height: 100%; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--rb-line);
  transition: all .3s;
}
.biz-card:hover { box-shadow: var(--rb-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.biz-card .ic { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.3rem; background: var(--rb-red-soft); color: var(--rb-red); }
.biz-card h3 { font-size: 1.5rem; }
.biz-card.featured { background: linear-gradient(150deg, var(--rb-red) 0%, #b5141b 100%); color: #ffe3e3; border: 0; }
.biz-card.featured h3 { color: #fff; }
.biz-card.featured .ic { background: rgba(255, 255, 255, .16); color: #fff; }
.biz-card.featured .tag { position: absolute; top: 22px; right: 22px; background: #fff; color: var(--rb-red); font-family: var(--rb-font-head); font-weight: 800; font-size: .75rem; padding: .3rem .8rem; border-radius: 50px; letter-spacing: .08em; }
.biz-list { list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.biz-list li { padding: .3rem 0; display: flex; gap: .55rem; align-items: flex-start; font-size: .96rem; }
.biz-list li i { color: var(--rb-red); margin-top: .2rem; }
.biz-card.featured .biz-list li i { color: #fff; }
.biz-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991px) { .biz-perks { grid-template-columns: repeat(2, 1fr); } }
.perk { background: #fff; border-radius: 14px; padding: 1.4rem; text-align: center; box-shadow: 0 4px 20px rgba(15, 28, 63, .05); }
.perk small { display: block; color: var(--rb-muted); }
.perk i { font-size: 1.8rem; color: var(--rb-red); }
.perk strong { display: block; font-family: var(--rb-font-head); color: var(--rb-ink); font-size: 1.05rem; margin-top: .4rem; }

/* ---------- Testimonials ---------- */
.rb-testi { background: var(--rb-bg-soft); }
.testi-card { background: #fff; border-radius: 18px; padding: 2.2rem; height: 100%; box-shadow: 0 4px 20px rgba(15, 28, 63, .05); position: relative; display: flex; flex-direction: column; }
.testi-card .quote { position: absolute; right: 26px; top: 20px; font-size: 3.4rem; color: var(--rb-red-soft); line-height: 1; }
.testi-card .stars { color: #ffb400; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-card p { font-size: 1rem; flex: 1; }
.testi-card .who { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--rb-line); }
.testi-card .who .av { width: 50px; height: 50px; border-radius: 50%; background: var(--rb-red); color: #fff; display: grid; place-items: center; font-family: var(--rb-font-head); font-weight: 800; font-size: 1.2rem; }
.testi-card .who strong { display: block; font-family: var(--rb-font-head); color: var(--rb-ink); font-size: 1.1rem; }
.testi-card .who small { color: var(--rb-muted); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .ph { border-radius: 18px; overflow: hidden; position: relative; margin-bottom: 1.2rem; }
.team-card .ph img { width: 100%; aspect-ratio: 273 / 300; object-fit: cover; transition: transform .6s; }
.team-card:hover .ph img { transform: scale(1.05); }
.team-card .ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--rb-red); transform: scaleX(0); transition: transform .4s; }
.team-card:hover .ph::after { transform: scaleX(1); }
.team-card h4 { font-size: 1.3rem; margin-bottom: .15rem; }
.team-card span { font-size: .93rem; }

/* ---------- Blog ---------- */
.post-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--rb-line); height: 100%; display: flex; flex-direction: column; transition: all .3s; }
.post-card:hover { box-shadow: var(--rb-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--rb-bg-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .82rem; color: var(--rb-muted); display: flex; gap: 1rem; margin-bottom: .6rem; }
.post-card .meta .cat { color: var(--rb-red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.25rem; flex: 1; }
.post-card h3 a { color: var(--rb-ink); }
.post-card h3 a:hover { color: var(--rb-red); }
.post-card .more { font-family: var(--rb-font-head); font-weight: 700; font-size: .93rem; }

/* ---------- Footer ---------- */
.rb-footer { background: var(--rb-navy-2); color: #a9b1cc; font-size: .93rem; line-height: 1.6; padding-top: 56px; border-top: 3px solid var(--rb-red); }
.rb-footer a { color: #c3cae0; transition: color .2s; }
.rb-footer a:hover { color: #fff; }
.rb-footer ul { list-style: none; padding: 0; margin: 0; }

.rb-footer .news { max-width: 700px; margin: 0 auto 44px; padding: 20px 24px; text-align: center; background: linear-gradient(120deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .09); border-radius: 20px; }
.rb-footer .news-title { display: flex; align-items: center; justify-content: center; gap: 12px; }
.rb-footer .news-ic { flex: 0 0 38px; height: 38px; border-radius: 12px; background: var(--rb-red); color: #fff; display: grid; place-items: center; font-size: 1rem; box-shadow: 0 8px 18px rgba(221, 51, 51, .35); }
.rb-footer .news h3 { color: #fff; font-size: 1.25rem; margin: 0; }
.rb-footer .news .news-sub { margin: .4rem 0 .9rem; font-size: .88rem; }
.rb-footer .news .nl-row { display: flex; gap: 6px; background: #fff; border-radius: 50px; padding: 5px; }
.rb-footer .news .nl-row .btn { padding: 9px 22px; font-size: .9rem; line-height: 1.4; }
.rb-footer .news .nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rb-footer .news .nl-consent { display: flex; gap: .6rem; align-items: flex-start; justify-content: center; text-align: left; margin: .7rem .4rem 0; font-size: .76rem; line-height: 1.5; cursor: pointer; }
.rb-footer .news .nl-consent input { flex: 0 0 auto; width: 1rem; height: 1rem; padding: 0; margin-top: .12rem; accent-color: var(--rb-red); }
.rb-footer .news .nl-consent a { color: #fff; text-decoration: underline; }
.rb-footer .news #newsMsg:empty { margin-top: 0 !important; }
.rb-footer .news .nl-ok { color: #8ee0b0; }
.rb-footer .news .nl-ko { color: #ffb4b4; }
.rb-footer .news .nl-row input { border: 0; flex: 1; padding: 0 1.1rem; outline: none; border-radius: 50px; min-width: 0; font-size: .95rem; }

.rb-footer .f-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px 48px; padding-bottom: 48px; }
.rb-footer .f-brand p { margin: 22px 0; max-width: 34ch; line-height: 1.75; }
.rb-footer h5 { color: #fff; font-family: var(--rb-font-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 20px; }
.rb-footer .f-col li + li { margin-top: 12px; }
.rb-footer nav.f-col a { display: inline-block; transition: color .2s, transform .2s; }
.rb-footer nav.f-col a:hover { transform: translateX(4px); }
.rb-footer .social { display: flex; gap: 10px; }
.rb-footer .social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.rb-footer .social a:hover { background: var(--rb-red); color: #fff; transform: translateY(-2px); }

.rb-footer .f-card { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.rb-footer .f-card .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; background: rgba(221, 51, 51, .16); color: #ff6b6b; display: grid; place-items: center; font-size: 1.1rem; }
.rb-footer .f-card small { display: block; font-size: .78rem; color: #8e98bb; line-height: 1.3; margin-bottom: 3px; }
.rb-footer .f-card .num { display: block; color: #fff; font-family: var(--rb-font-head); font-weight: 800; font-size: 1.12rem; line-height: 1.55; white-space: nowrap; }
.rb-footer .f-card .num:hover { color: #ff8585; }
.rb-footer .f-info { margin-top: 18px; padding: 0 4px; }
.rb-footer .f-info li { display: flex; gap: 12px; align-items: baseline; margin-top: 0; }
.rb-footer .f-info li + li { margin-top: 10px; }
.rb-footer .f-info i { color: var(--rb-red); }
.rb-footer .f-info li > * { min-width: 0; overflow-wrap: anywhere; }

.rb-footer .company { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 28px 0 32px; font-size: .8rem; line-height: 1.7; color: #7f88a6; }
.rb-footer .company strong { display: block; color: #c3cae0; font-size: .84rem; margin-bottom: 4px; }
.rb-footer .company > div { text-align: center; }
.rb-footer .company > div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.rb-footer .company small { display: block; color: #ff6b6b; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }

.rb-footer .legal { background: rgba(0, 0, 0, .22); padding: 22px 0; font-size: .82rem; }
.rb-footer .legal .container { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rb-footer .legal ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; }
.rb-footer .legal .f-recesso { display: inline-block; color: #fff; font-weight: 700; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50px; padding: 6px 16px; }
.rb-footer .legal .f-recesso:hover { background: var(--rb-red); border-color: var(--rb-red); }

@media (min-width: 1200px) {
  .rb-footer .f-brand { display: flex; flex-direction: column; align-items: flex-start; }
  .rb-footer .f-brand .social { margin-top: auto; }
}
@media (min-width: 1200px) and (max-width: 1399px) { .rb-footer .f-brand p { margin: 18px 0; line-height: 1.6; } }
@media (max-width: 1199px) {
  .rb-footer .f-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 36px 32px; }
  .rb-footer .f-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .rb-footer .f-brand p { flex: 1; margin: 0; max-width: none; }
}
@media (max-width: 767px) {
  .rb-footer { padding-top: 32px; }
  .rb-footer .news { padding: 18px 16px; margin-bottom: 36px; border-radius: 18px; }
  .rb-footer .news h3 { font-size: 1.12rem; }
  .rb-footer .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-bottom: 36px; }
  .rb-footer .f-brand { display: block; padding-bottom: 0; border-bottom: 0; }
  .rb-footer .f-brand p { margin: 18px 0 20px; }
  .rb-footer .f-contacts { grid-column: 1 / -1; }
  .rb-footer .company { grid-template-columns: 1fr; padding: 24px 0 28px; }
  .rb-footer .company > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; }
  .rb-footer .legal { padding-bottom: 84px; }
}
@media (max-width: 420px) {
  .rb-footer .news .nl-row { flex-direction: column; background: transparent; padding: 0; gap: 10px; }
  .rb-footer .news .nl-row input { flex: 0 0 auto; height: 48px; background: #fff; }
}

/* ---------- Misc ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 12px; background: var(--rb-red); color: #fff;
  display: grid; place-items: center; z-index: 999; opacity: 0; visibility: hidden; transition: all .3s; box-shadow: 0 10px 24px rgba(221, 51, 51, .35); border: 0;
}
.to-top.show { opacity: 1; visibility: visible; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge { animation: none !important; }
  html { scroll-behavior: auto; }
}
.preview-ribbon {
  background: #fff6d6; color: #7a5b00; font-size: .82rem; text-align: center; padding: .35rem 1rem; border-bottom: 1px solid #f0e2a8;
}

/* =========================================================
   Pagine interne
   ========================================================= */
.page-hero {
  position: relative; padding: 110px 0 120px; color: #fff; overflow: hidden;
  background: linear-gradient(100deg, rgba(10, 26, 74, .96) 0%, rgba(10, 26, 74, .86) 45%, rgba(10, 26, 74, .55) 100%), var(--hero-img, none) center / cover no-repeat;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  border: 40px solid rgba(221, 51, 51, .35);
}
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.page-hero p { color: #cfd5ea; font-size: 1.12rem; max-width: 620px; margin: 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); margin-bottom: 1.2rem; font-size: .92rem; font-weight: 600; }
.page-hero .breadcrumb a { color: #fff; }
.page-hero .breadcrumb .active { color: #ff8a8a; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* sotto-menu di sezione */
.sub-nav { position: sticky; top: 76px; z-index: 1020; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rb-line); }
.sub-nav .inner { display: flex; gap: .4rem; overflow-x: auto; padding: .75rem 0; scrollbar-width: none; }
.sub-nav .inner::-webkit-scrollbar { display: none; }
.sub-nav a {
  white-space: nowrap; padding: .45rem 1rem; border-radius: 50px; font-family: var(--rb-font-head); font-weight: 700; font-size: .92rem;
  color: var(--rb-ink); border: 1px solid transparent; transition: all .2s;
}
.sub-nav a:hover { color: var(--rb-red); border-color: var(--rb-line); }
.sub-nav a.active { background: var(--rb-red); color: #fff; }

/* blocchi servizio dettagliati */
.svc-detail { padding: 90px 0; scroll-margin-top: 150px; }
.svc-detail + .svc-detail { border-top: 1px solid var(--rb-line); }
.svc-detail .media { position: relative; }
.svc-detail .media img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--rb-shadow-lg); }
.svc-detail .media .chip {
  position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: 14px; box-shadow: var(--rb-shadow-lg);
  padding: .8rem 1.1rem; display: flex; align-items: center; gap: .7rem; font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-ink);
}
.svc-detail .media .chip i { width: 40px; height: 40px; border-radius: 10px; background: var(--rb-red); color: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.svc-detail.flip .media .chip { left: auto; right: -18px; }
@media (max-width: 991px) { .svc-detail .media .chip { left: 12px !important; right: auto !important; } }
.svc-detail h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.svc-detail .tagline { font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-red); font-size: 1.1rem; margin-bottom: .8rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin: 1.6rem 0; }
@media (max-width: 575px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid .fi { display: flex; gap: .8rem; align-items: flex-start; background: var(--rb-bg-soft); border-radius: 12px; padding: 1rem; }
.feature-grid .fi i { color: var(--rb-red); font-size: 1.35rem; line-height: 1; margin-top: .1rem; }
.feature-grid .fi strong { display: block; font-family: var(--rb-font-head); color: var(--rb-ink); font-size: 1.02rem; }
.feature-grid .fi span { font-size: .9rem; line-height: 1.5; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.pill-list li { background: #fff; border: 1px solid var(--rb-line); border-radius: 50px; padding: .35rem .9rem; font-size: .88rem; font-weight: 600; color: var(--rb-ink); }
.pill-list li i { color: var(--rb-red); margin-right: .3rem; }
.note { font-size: .88rem; color: var(--rb-muted); border-left: 3px solid var(--rb-red); padding-left: .9rem; }

/* intestazione di gruppo */
.group-head { padding: 80px 0 10px; text-align: center; }
.group-head .num { font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-red); letter-spacing: .14em; font-size: .85rem; }

/* servizi digitali (card con requisiti) */
.dig-card { background: #fff; border-radius: 18px; padding: 2.2rem; height: 100%; border: 1px solid var(--rb-line); display: flex; flex-direction: column; scroll-margin-top: 150px; transition: all .3s; }
.dig-card:hover { box-shadow: var(--rb-shadow-lg); border-color: transparent; transform: translateY(-4px); }
.dig-card .ic { width: 62px; height: 62px; border-radius: 16px; background: var(--rb-red); color: #fff; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.2rem; box-shadow: 0 10px 24px rgba(221, 51, 51, .3); }
.dig-card h3 { font-size: 1.5rem; }
.dig-card .req { background: var(--rb-bg-soft); border-radius: 12px; padding: 1rem 1.2rem; margin-top: auto; }
.dig-card .req strong { font-family: var(--rb-font-head); color: var(--rb-ink); font-size: .95rem; }
.dig-card .req ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.dig-card code { color: var(--rb-red); background: var(--rb-red-soft); padding: .1rem .45rem; border-radius: 6px; font-size: .88rem; }

/* timeline come funziona */
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--rb-red), rgba(221, 51, 51, .15)); }
.tl-item { position: relative; padding-left: 92px; margin-bottom: 2.4rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item .dot {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--rb-red);
  color: var(--rb-red); display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 0 0 8px var(--rb-bg-soft);
}
.tl-item .card-body-x { background: #fff; border-radius: 16px; padding: 1.6rem 1.8rem; box-shadow: 0 4px 20px rgba(15, 28, 63, .05); }
.tl-item .step-n { font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-red); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.tl-item h3 { font-size: 1.35rem; margin: .25rem 0 .6rem; }
.tl-item p { margin-bottom: .5rem; }
.tl-item p:last-child { margin-bottom: 0; }
.tl-item .warn { font-size: .9rem; background: #fff8e6; border-radius: 10px; padding: .6rem .9rem; color: #7a5b00; }

/* FAQ */
.rb-faq .accordion-item { border: 1px solid var(--rb-line); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.rb-faq .accordion-button { font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-ink); font-size: 1.08rem; padding: 1.2rem 1.4rem; box-shadow: none !important; }
.rb-faq .accordion-button:not(.collapsed) { background: var(--rb-red-soft); color: var(--rb-red); }
.rb-faq .accordion-body { padding: 1.2rem 1.4rem 1.4rem; }

/* Chi siamo */
.about-collage { position: relative; padding: 0 0 70px 70px; }
.about-collage .a1 { width: 100%; border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--rb-shadow-lg); }
.about-collage .a2 { position: absolute; left: 0; bottom: 0; width: 46%; border-radius: 16px; border: 8px solid #fff; box-shadow: var(--rb-shadow-lg); aspect-ratio: 3 / 4; object-fit: cover; }
.about-collage .exp {
  position: absolute; right: 22px; bottom: 30px; background: var(--rb-red); color: #fff; border-radius: 16px; padding: 1.2rem 1.5rem;
  box-shadow: 0 16px 40px rgba(221, 51, 51, .35); font-family: var(--rb-font-head); font-weight: 600; line-height: 1.2;
}
.about-collage .exp strong { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.counter-band { background: var(--rb-navy); border-radius: 20px; padding: 2.6rem 2rem; color: #c5cbe0; position: relative; overflow: hidden; }
.counter-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(221, 51, 51, .3); }
.counter-band .num { font-family: var(--rb-font-head); font-weight: 800; color: #fff; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.counter-band .num small { color: #ff6b6b; font-size: .6em; }
.counter-band .col + .col { border-left: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 767px) { .counter-band .col + .col { border-left: 0; } }
.value-card { background: #fff; border-radius: 18px; padding: 2.2rem; height: 100%; box-shadow: 0 4px 20px rgba(15, 28, 63, .05); position: relative; overflow: hidden; transition: all .3s; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--rb-shadow-lg); }
.value-card .n { position: absolute; right: 18px; top: 6px; font-family: var(--rb-font-head); font-weight: 800; font-size: 4.5rem; color: var(--rb-bg-soft); line-height: 1; }
.value-card .ic { width: 58px; height: 58px; border-radius: 14px; background: var(--rb-red-soft); color: var(--rb-red); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.1rem; position: relative; }
.value-card h3 { font-size: 1.35rem; position: relative; }
.value-card p { margin: 0; position: relative; }
.ceo-quote { background: #fff; border-radius: 20px; padding: 3rem; box-shadow: var(--rb-shadow-lg); position: relative; }
.ceo-quote .bi-quote { position: absolute; top: 10px; right: 30px; font-size: 6rem; color: var(--rb-red-soft); line-height: 1; }
.ceo-quote blockquote { padding-right: 4.5rem; font-family: var(--rb-font-head); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--rb-ink); line-height: 1.5; position: relative; margin: 0 0 1.6rem; }
.ceo-quote .sig { display: flex; align-items: center; gap: 1rem; }
.ceo-quote .sig .av { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--rb-red), #b5141b); color: #fff; display: grid; place-items: center; font-family: var(--rb-font-head); font-weight: 800; font-size: 1.2rem; }
.ceo-quote .sig strong { display: block; font-family: var(--rb-font-head); color: var(--rb-ink); font-size: 1.15rem; }
.office-card { background: #fff; border-radius: 18px; padding: 2rem; height: 100%; border: 1px solid var(--rb-line); }
.office-card .flag { font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-red); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.office-card h3 { font-size: 1.35rem; margin: .4rem 0 1rem; }
.office-card ul { list-style: none; padding: 0; margin: 0; }
.office-card li { display: flex; gap: .7rem; padding: .35rem 0; font-size: .95rem; }
.office-card li i { color: var(--rb-red); margin-top: .15rem; }
.milestone { display: flex; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px dashed var(--rb-line); }
.milestone:last-child { border-bottom: 0; }
.milestone .y { flex-shrink: 0; width: 86px; font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-red); font-size: 1.1rem; }
.milestone h4 { font-size: 1.12rem; margin-bottom: .2rem; }
.milestone p { margin: 0; font-size: .95rem; }

/* ---------- Contatti ---------- */
.contact-channels { margin-top: -70px; position: relative; z-index: 5; }
.channel {
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 1.7rem; height: 100%;
  box-shadow: var(--rb-shadow-lg); color: var(--rb-text); transition: transform .25s;
}
.channel:hover { transform: translateY(-4px); color: var(--rb-text); }
.channel .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--rb-red); color: #fff; display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 1rem; box-shadow: 0 10px 24px rgba(221, 51, 51, .3); }
.channel small { font-weight: 600; color: var(--rb-muted); }
.channel strong { font-family: var(--rb-font-head); color: var(--rb-ink); font-size: 1.2rem; word-break: break-word; }
.channel .hint { font-size: .85rem; margin-top: .2rem; }
.form-card { background: #fff; border-radius: 20px; padding: 2.6rem; border: 1px solid var(--rb-line); box-shadow: 0 4px 20px rgba(15, 28, 63, .05); }
@media (max-width: 575px) { .form-card { padding: 1.6rem; } }
.rb-form .form-label { font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-ink); font-size: .95rem; }
.rb-form .form-control, .rb-form .form-select { border-radius: 12px; padding: .75rem 1rem; border-color: var(--rb-line); background-color: var(--rb-bg-soft); }
.rb-form .form-control:focus, .rb-form .form-select:focus { border-color: var(--rb-red); box-shadow: 0 0 0 .2rem rgba(221, 51, 51, .12); background-color: #fff; }
.rb-form .form-check-input:checked { background-color: var(--rb-red); border-color: var(--rb-red); }
.rb-form .is-invalid ~ .invalid-feedback, .rb-form .invalid-feedback:not(:empty) { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 2rem 0 1rem; }
.form-success .ic { width: 84px; height: 84px; border-radius: 50%; background: #e7f7ee; color: #1a9b55; display: inline-grid; place-items: center; font-size: 2.6rem; margin-bottom: 1rem; }
.form-success h3 { font-size: 1.7rem; }
.contact-side-cta { background: linear-gradient(150deg, var(--rb-red) 0%, #b5141b 100%); color: #ffe3e3; border-radius: 18px; padding: 2rem; }
.contact-side-cta h4 { color: #fff; font-size: 1.35rem; }

/* ---------- Pagine legali ---------- */
.page-hero-sm { padding: 80px 0 90px; background: linear-gradient(100deg, var(--rb-navy) 0%, #13286b 100%); }
.legal-toc { position: sticky; top: 110px; background: var(--rb-bg-soft); border-radius: 18px; padding: 1.6rem; }
.legal-toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rb-muted); margin-bottom: 1rem; }
.legal-toc nav a { display: flex; gap: .7rem; padding: .5rem .7rem; border-radius: 10px; color: var(--rb-ink); font-weight: 600; font-size: .94rem; line-height: 1.35; }
.legal-toc nav a span { font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-red); font-size: .85rem; min-width: 22px; }
.legal-toc nav a:hover { background: #fff; }
.legal-toc nav a.active { background: #fff; color: var(--rb-red); box-shadow: 0 4px 14px rgba(15, 28, 63, .06); }
.legal-related { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--rb-line); font-family: var(--rb-font-head); font-weight: 700; }
.legal-doc { font-size: 1.02rem; }
.legal-doc .lead-intro { font-size: 1.15rem; color: var(--rb-ink); padding-bottom: 1.6rem; border-bottom: 1px solid var(--rb-line); margin-bottom: 1rem; }
.legal-doc section { padding: 1.6rem 0; border-bottom: 1px dashed var(--rb-line); scroll-margin-top: 110px; }
.legal-doc h2 { font-size: 1.5rem; display: flex; gap: .8rem; align-items: baseline; margin-bottom: .9rem; }
.legal-doc h2 span { font-size: .95rem; color: var(--rb-red); }
.legal-doc h3 { font-size: 1.15rem; margin: 1.3rem 0 .6rem; }
.legal-doc ul { padding-left: 1.2rem; }
.legal-doc li { margin-bottom: .6rem; }
.legal-doc li::marker { color: var(--rb-red); }
.legal-outro { margin-top: 1.8rem; font-weight: 600; color: var(--rb-ink); }
.legal-company { margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-radius: 14px; background: var(--rb-bg-soft); font-size: .86rem; line-height: 1.7; }
#cfCount { white-space: nowrap; padding-left: 1rem; }
.contact-side .office-card { height: auto; }
@media (max-width: 575px) {
  .contact-channels .row { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
  .channel { padding: 1.1rem; }
  .channel .ic { width: 42px; height: 42px; font-size: 1.15rem; margin-bottom: .7rem; border-radius: 12px; }
  .channel strong { font-size: .92rem; }
  .channel .hint { font-size: .78rem; }
}

/* ---------- Blog ---------- */
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.blog-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-cats a { padding: .5rem 1rem; border-radius: 50px; border: 1px solid var(--rb-line); color: var(--rb-ink); font-family: var(--rb-font-head); font-weight: 700; font-size: .92rem; background: #fff; }
.blog-cats a span { color: var(--rb-muted); font-weight: 600; margin-left: .2rem; }
.blog-cats a:hover { border-color: var(--rb-red); color: var(--rb-red); }
.blog-cats a.active { background: var(--rb-red); border-color: var(--rb-red); color: #fff; }
.blog-cats a.active span { color: #ffd0d0; }
.blog-search { position: relative; flex: 0 1 320px; }
.blog-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--rb-muted); }
.blog-search input { width: 100%; border: 1px solid var(--rb-line); border-radius: 50px; padding: .65rem 1rem .65rem 2.6rem; background: var(--rb-bg-soft); outline: none; }
.blog-search input:focus { border-color: var(--rb-red); background: #fff; }
.blog-result { color: var(--rb-muted); margin: -1rem 0 1.6rem; }
.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--rb-shadow-lg); margin-bottom: 2.6rem; }
@media (max-width: 991px) { .post-featured { grid-template-columns: 1fr; } }
.post-featured .thumb { min-height: 320px; overflow: hidden; }
.post-featured .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-featured:hover .thumb img { transform: scale(1.04); }
.post-featured .body { padding: 2.6rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.post-featured .badge-new { background: var(--rb-red-soft); color: var(--rb-red); font-family: var(--rb-font-head); font-weight: 800; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 50px; margin-bottom: 1rem; }
.post-featured .meta { font-size: .85rem; color: var(--rb-muted); display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .7rem; }
.post-featured .meta .cat { color: var(--rb-red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post-featured h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.post-featured h2 a { color: var(--rb-ink); }
.post-featured h2 a:hover { color: var(--rb-red); }
.post-card .excerpt { font-size: .93rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h3 { flex: 0 0 auto; }
.post-card .body .more { margin-top: auto; }
.blog-empty { text-align: center; padding: 3rem 1rem; }
.blog-empty i { font-size: 3rem; color: var(--rb-red); }
.blog-pager { display: flex; justify-content: center; gap: .5rem; margin-top: 2.6rem; }
.blog-pager a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--rb-line); color: var(--rb-ink); font-weight: 700; }
.blog-pager a.active, .blog-pager a:hover { background: var(--rb-red); border-color: var(--rb-red); color: #fff; }

/* Articolo */
.article-hero { background: linear-gradient(100deg, var(--rb-navy) 0%, #13286b 100%); color: #cfd5ea; padding: 80px 0 190px; position: relative; overflow: hidden; }
.article-hero::after { content: ""; position: absolute; right: -90px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 36px solid rgba(221, 51, 51, .3); }
.article-hero .breadcrumb { font-size: .9rem; font-weight: 600; margin-bottom: 1.2rem; }
.article-hero .breadcrumb a { color: #fff; }
.article-hero .breadcrumb .active a { color: #ff8a8a; }
.article-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }
.article-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 900px; margin-bottom: 1.4rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; font-size: .95rem; }
.article-meta i { color: #ff8a8a; margin-right: .3rem; }
.article-meta .author { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 600; }
.article-meta .av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.article-meta .av img { width: 20px; height: 20px; }
.article-cover { margin-top: -140px; position: relative; z-index: 3; margin-bottom: 3.5rem; }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 22px; box-shadow: var(--rb-shadow-lg); background: #fff; }
.prose { font-size: 1.08rem; line-height: 1.85; color: #4a5368; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.75rem; margin: 2.4rem 0 1rem; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 .8rem; scroll-margin-top: 110px; }
.prose h4, .prose h5 { font-size: 1.12rem; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1.2rem; }
.prose strong { color: var(--rb-ink); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--rb-red); font-weight: 700; }
.prose blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem 1.4rem 4rem; background: var(--rb-bg-soft); border-radius: 16px; position: relative; font-family: var(--rb-font-head); font-weight: 600; font-size: 1.2rem; color: var(--rb-ink); line-height: 1.5; }
.prose blockquote::before { content: "\F6B0"; font-family: "bootstrap-icons"; position: absolute; left: 1.3rem; top: 1.1rem; font-size: 1.8rem; color: var(--rb-red); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: 14px; margin: 1.4rem 0; }
.prose table { width: 100%; margin-bottom: 1.4rem; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--rb-line); padding: .6rem .8rem; }
/* elenchi lunghi (es. merce proibita) su due colonne */
@media (min-width: 768px) { .prose ul:has(> li:nth-child(8)) { columns: 2; column-gap: 2.4rem; } .prose ul:has(> li:nth-child(8)) li { break-inside: avoid; } }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--rb-line); }
.article-tags i { color: var(--rb-red); margin-right: .2rem; }
.article-tags a { background: var(--rb-bg-soft); border-radius: 50px; padding: .3rem .85rem; font-size: .85rem; color: var(--rb-ink); font-weight: 600; }
.article-tags a:hover { background: var(--rb-red); color: #fff; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.6rem; }
.article-share strong { font-family: var(--rb-font-head); color: var(--rb-ink); margin-right: .4rem; }
.article-share a, .article-share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rb-line); background: #fff; display: inline-grid; place-items: center; color: var(--rb-ink); transition: all .2s; }
.article-share a:hover, .article-share button:hover { background: var(--rb-red); border-color: var(--rb-red); color: #fff; }
.article-share .copy-link { width: auto; padding: 0 1rem; display: inline-flex; gap: .4rem; border-radius: 50px; font-weight: 600; font-size: .88rem; }
.article-share .copy-link.done { background: #1a9b55; border-color: #1a9b55; color: #fff; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.6rem; }
@media (max-width: 575px) { .article-nav { grid-template-columns: 1fr; } }
.article-nav a { border: 1px solid var(--rb-line); border-radius: 16px; padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; color: var(--rb-ink); transition: all .2s; }
.article-nav a:hover { border-color: var(--rb-red); box-shadow: var(--rb-shadow); }
.article-nav a.next { text-align: right; }
.article-nav small { color: var(--rb-red); font-weight: 700; }
.article-nav span { font-family: var(--rb-font-head); font-weight: 700; line-height: 1.3; }
.article-side { position: sticky; top: 110px; }
.legal-toc nav a.sub { padding-left: 1.6rem; font-weight: 500; font-size: .9rem; }
.article-side .legal-toc { position: static; }
@media (max-width: 767px) { .blog-search { flex: 1 1 100%; } }

/* ---------- Pagina servizio ---------- */
.svc-hero { padding: 100px 0 110px; }
.svc-hero-icon { background: linear-gradient(110deg, var(--rb-navy) 0%, #13286b 60%, #1f3a8a 100%); }
.svc-hero-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 50px; padding: .4rem 1rem; font-family: var(--rb-font-head); font-weight: 700; font-size: .9rem; margin-bottom: 1.1rem; }
.svc-hero-tag i { color: #ff8a8a; }
.svc-hero p { max-width: 720px; }
.svc-hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.svc-hero-stats span { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: .55rem 1rem; color: #dfe4f5; font-size: .95rem; }
.svc-hero-stats strong { color: #fff; font-family: var(--rb-font-head); font-size: 1.15rem; }
.svc-hero-big { display: inline-grid; place-items: center; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 2px dashed rgba(255, 255, 255, .2); font-size: 7rem; color: #fff; }
.sub-nav .inner a.ms-auto { color: var(--rb-red); }
.avail { font-size: .9rem; color: var(--rb-muted); background: var(--rb-bg-soft); border-radius: 12px; padding: .8rem 1rem; display: flex; gap: .6rem; }
.avail i { color: var(--rb-red); }
.benefit { background: #fff; border: 1px solid var(--rb-line); border-radius: 16px; padding: 1.5rem; height: 100%; transition: all .25s; }
.benefit:hover { box-shadow: var(--rb-shadow); border-color: transparent; transform: translateY(-3px); }
.benefit .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--rb-red-soft); color: var(--rb-red); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: .9rem; }
.benefit h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.benefit p { font-size: .93rem; margin: 0; line-height: 1.55; }
.offer-card { position: relative; background: #fff; border-radius: 18px; padding: 2rem; height: 100%; box-shadow: 0 4px 20px rgba(15, 28, 63, .05); transition: all .3s; }
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--rb-shadow-lg); }
.offer-card .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--rb-red); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.1rem; box-shadow: 0 10px 24px rgba(221, 51, 51, .3); }
.offer-card h3 { font-size: 1.3rem; }
.offer-card p { margin: 0; font-size: .95rem; }
.offer-card.soon .ic { background: #c5cbe0; box-shadow: none; }
.soon-badge { position: absolute; top: 18px; right: 18px; background: #fff4d6; color: #8a6400; font-family: var(--rb-font-head); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 50px; }
.brand-band { padding: 60px 0; border-top: 1px solid var(--rb-line); border-bottom: 1px solid var(--rb-line); background: #fff; }
.brand-band .lbl { text-align: center; font-family: var(--rb-font-head); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--rb-muted); margin-bottom: 1.6rem; }
.brand-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.brand-tile { width: 180px; height: 96px; border: 1px solid var(--rb-line); border-radius: 16px; display: grid; place-items: center; padding: 1rem 1.2rem; background: #fff; transition: all .25s; }
.brand-tile:hover { box-shadow: var(--rb-shadow); border-color: transparent; }
.brand-tile img { max-width: 100%; max-height: 52px; object-fit: contain; }
.brand-name { font-family: var(--rb-font-head); font-weight: 800; font-size: 1.35rem; color: var(--rb-ink); letter-spacing: .02em; }
.brand-disc { text-align: center; font-size: .8rem; color: var(--rb-muted); margin: 1.4rem 0 0; }
@media (max-width: 575px) { .brand-tile { width: calc(50% - .5rem); height: 80px; } }
/* tutti i loghi su una sola riga, a tutta larghezza */
.brand-line .brand-tile { flex: 1 1 0; width: auto; min-width: 0; height: 110px; }
.brand-line .brand-tile img { width: 100%; height: 100%; max-height: 62px; }
@media (max-width: 991px) { .brand-line .brand-tile { flex: 0 0 calc(25% - .75rem); height: 84px; padding: .7rem; } .brand-line .brand-tile img { max-height: 46px; } }
.shop-point { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 1.5rem; height: 100%; }
.shop-point .ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(221, 51, 51, .2); color: #ff8a8a; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .9rem; }
.shop-point h3 { color: #fff; font-size: 1.1rem; margin-bottom: .35rem; }
.shop-point p { margin: 0; font-size: .92rem; line-height: 1.55; }
.shop-foot { margin: 1.2rem 0 0; font-size: .9rem; color: #9fa8c7; }
.shop-foot i { color: #4ad18a; margin-right: .3rem; }
.svc-tile { display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 1.8rem; height: 100%; color: inherit; box-shadow: 0 4px 20px rgba(15, 28, 63, .05); transition: all .3s; border: 1px solid transparent; }
.svc-tile:hover { transform: translateY(-5px); box-shadow: var(--rb-shadow-lg); color: inherit; }
.svc-tile .ic { width: 56px; height: 56px; border-radius: 15px; background: var(--rb-red-soft); color: var(--rb-red); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem; transition: all .25s; }
.svc-tile:hover .ic { background: var(--rb-red); color: #fff; }
.svc-tile h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.svc-tile p { font-size: .93rem; flex: 1; }
.svc-tile .more { font-family: var(--rb-font-head); font-weight: 700; color: var(--rb-red); font-size: .93rem; }
.svc-tile .brands-mini { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.svc-tile .brands-mini img { height: 22px; width: auto; max-width: 70px; object-fit: contain; filter: grayscale(1); opacity: .7; }
.svc-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.6rem; scroll-margin-top: 150px; }
.svc-group-head h2 { font-size: 1.75rem; margin: 0; }
.svc-group-head p { margin: .3rem 0 0; max-width: 640px; }
.svc-group + .svc-group { margin-top: 4rem; }
/* segnaposto mappa con logo RedBay */
.rb-pin-logo { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--rb-red); box-shadow: 0 4px 12px rgba(15, 28, 63, .3); display: grid; place-items: center; transition: transform .15s; }
.rb-pin-logo::after { content: ""; position: absolute; left: 50%; bottom: -10px; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--rb-red); border-bottom: 0; }
.leaflet-container .rb-pin-logo img { width: 32px !important; height: auto !important; max-width: 32px !important; pointer-events: none; }
.leaflet-marker-icon:hover .rb-pin-logo { transform: scale(1.12); }
/* gruppi di negozi sulla mappa: logo + numero */
.rb-cluster-wrap { background: none; border: 0; }
.rb-cluster { position: relative; border-radius: 50%; background: #fff; border: 3px solid var(--rb-red); box-shadow: 0 0 0 6px rgba(221, 51, 51, .2), 0 4px 12px rgba(15, 28, 63, .3); display: grid; place-items: center; transition: transform .15s; }
.rb-cluster:hover { transform: scale(1.08); }
.leaflet-container .rb-cluster img { width: 62% !important; max-width: 62% !important; height: auto !important; pointer-events: none; }
.rb-cluster span { position: absolute; top: -8px; right: -10px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--rb-red); color: #fff; font-family: var(--rb-font-head); font-weight: 800; font-size: .78rem; line-height: 24px; text-align: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

/* =========================================================
   Megamenu (Negozi, Servizi)
   ========================================================= */
.rb-nav .dropdown-mega { position: static; }
.rb-nav .dropdown-menu.mega-panel { border: 0; border-radius: 0 0 22px 22px; padding: 0; margin: 0; min-width: 0; box-shadow: 0 30px 60px rgba(15, 28, 63, .16); border-top: 1px solid var(--rb-line); }
@media (min-width: 1200px) {
  .rb-nav .dropdown-menu.mega-panel { position: absolute; left: 0; right: 0; top: 100%; width: 100%; padding: 2rem 0 0; animation: megaIn .22s ease; }
  /* ponte invisibile sopra il pannello: il mouse non "cade" nel vuoto passando dalla voce al pannello */
  .rb-nav .dropdown-menu.mega-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
  .rb-nav .dropdown-mega > .nav-link { position: relative; }
  .rb-nav .dropdown-mega.show > .nav-link::after { transform: rotate(180deg); }
  .rb-nav .dropdown-mega > .nav-link::before { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -2px; height: 3px; border-radius: 3px; background: var(--rb-red); transform: scaleX(0); transition: transform .2s; }
  .rb-nav .dropdown-mega.show > .nav-link::before { transform: scaleX(1); }
}
.rb-nav .dropdown-toggle::after { transition: transform .2s; vertical-align: .15em; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.mega-title { font-family: var(--rb-font-head); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rb-muted); margin: 0 0 .8rem; display: flex; align-items: center; gap: .45rem; }
.mega-title i { color: var(--rb-red); font-size: .95rem; }

.mega-link { display: flex; gap: .85rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 14px; color: var(--rb-ink); transition: background .2s; }
.mega-link:hover { background: var(--rb-bg-soft); color: var(--rb-ink); }
.mega-link strong { display: block; font-family: var(--rb-font-head); font-weight: 700; font-size: .98rem; }
.mega-link small { display: block; color: var(--rb-muted); font-size: .82rem; line-height: 1.35; margin-top: .1rem; }
.ml-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--rb-red-soft); color: var(--rb-red); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; transition: all .2s; }
.mega-link:hover .ml-ic { background: var(--rb-red); color: #fff; transform: rotate(-6deg); }

.mega-cta { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: 16px; margin-bottom: .4rem; color: #fff; background: linear-gradient(120deg, var(--rb-red) 0%, #b5141b 100%); box-shadow: 0 12px 26px rgba(221, 51, 51, .28); transition: transform .2s; }
.mega-cta:hover { color: #fff; transform: translateY(-2px); }
.mega-cta .ml-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.mega-cta strong { display: block; font-family: var(--rb-font-head); font-size: 1rem; }
.mega-cta small { display: block; color: #ffd6d6; font-size: .8rem; }
.mega-checks { list-style: none; padding: .6rem .8rem 0; margin: 0; }
.mega-checks li { font-size: .85rem; color: var(--rb-text); padding: .15rem 0; }
.mega-checks i { color: #1a9b55; margin-right: .35rem; }

.mega-feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; height: 100%; padding: 1.6rem; border-radius: 20px; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, rgba(10, 26, 74, .15) 0%, rgba(10, 26, 74, .92) 78%), var(--mf-img) center / cover no-repeat; }
.mega-feature::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(221, 51, 51, .55); }
.mega-feature:hover { color: #fff; }
.mega-feature:hover .mf-btn i { transform: translateX(4px); }
.mf-tag { align-self: flex-start; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); border-radius: 50px; padding: .3rem .8rem; font-family: var(--rb-font-head); font-weight: 700; font-size: .78rem; margin-bottom: auto; position: relative; z-index: 2; }
.mf-tag i { color: #ff8a8a; }
.mf-big { font-family: var(--rb-font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; position: relative; z-index: 2; }
.mf-title { font-family: var(--rb-font-head); font-weight: 800; font-size: 1.35rem; line-height: 1.2; position: relative; z-index: 2; }
.mf-sub { color: #d8deef; font-size: .9rem; margin: .4rem 0 1rem; position: relative; z-index: 2; }
.mf-btn { align-self: flex-start; background: #fff; color: var(--rb-red); font-family: var(--rb-font-head); font-weight: 700; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 50px; position: relative; z-index: 2; }
.mf-btn i { transition: transform .2s; display: inline-block; }
.mega-feature-sm { min-height: 100%; }

.mega-group-head { height: 74px; border-radius: 14px; margin-bottom: .7rem; align-items: flex-end; padding: .7rem .85rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 26, 74, .05) 0%, rgba(10, 26, 74, .85) 100%), var(--mg-img) center / cover no-repeat; }
.mega-group-head span { color: #fff; font-family: var(--rb-font-head); font-weight: 800; font-size: .92rem; line-height: 1.2; }
.mega-svc { display: flex; align-items: center; gap: .65rem; padding: .45rem .55rem; border-radius: 11px; color: var(--rb-ink); font-weight: 600; font-size: .92rem; transition: background .2s, color .2s; }
.mega-svc:hover { background: var(--rb-red-soft); color: var(--rb-red); }
.ms-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--rb-bg-soft); color: var(--rb-red); display: grid; place-items: center; font-size: .92rem; flex-shrink: 0; transition: all .2s; }
.mega-svc:hover .ms-ic { background: var(--rb-red); color: #fff; }

.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.6rem; padding: 1rem 0 1.2rem; border-top: 1px solid var(--rb-line); }
.mf-all { font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-red); white-space: nowrap; }
.mf-all i { margin-right: .3rem; }
.mega-logos { gap: 1.4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mega-logos img { height: 20px; width: auto; max-width: 84px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: all .2s; }
.mega-logos img:hover { filter: none; opacity: 1; }

@media (max-width: 1199px) {
  .rb-nav .dropdown-menu.mega-panel { background: var(--rb-bg-soft); border-radius: 14px; padding: 1rem 0; box-shadow: none; border-top: 0; margin: .3rem 0 .8rem; }
  .mega-panel .container { padding: 0 .6rem; }
  .mega-link { padding: .55rem .5rem; }
  .mega-foot { margin-top: .6rem; padding-bottom: .2rem; }
}
.rb-nav .dropdown-mega > .nav-link:focus:not(:focus-visible) { outline: 0; box-shadow: none; }
.rb-nav .dropdown-mega > .nav-link:focus-visible { outline: 2px solid rgba(221, 51, 51, .4); outline-offset: 2px; border-radius: 8px; }
.mega-svc { align-items: flex-start; }
.mega-svc strong { display: block; font-weight: 700; font-size: .93rem; line-height: 1.25; }
.mega-svc small { display: block; font-weight: 500; font-size: .78rem; color: var(--rb-muted); line-height: 1.3; margin-top: .1rem; }
.mega-svc:hover small { color: #c25b5b; }
.mega-svc .ms-ic { margin-top: .1rem; }
.rb-nav .dropdown-mega.show > .nav-link { color: var(--rb-red); }

/* --- Megamenu corporate (v3): niente foto, struttura e dati --- */
.mega-ghead { display: flex; gap: .7rem; align-items: flex-start; padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px solid var(--rb-line); position: relative; }
.mega-ghead::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: var(--rb-red); }
.mg-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--rb-navy); color: #fff; display: grid; place-items: center; font-size: .95rem; flex-shrink: 0; }
.mega-ghead strong { display: block; font-family: var(--rb-font-head); font-weight: 800; font-size: .95rem; color: var(--rb-ink); line-height: 1.2; }
.mega-ghead small { display: block; font-size: .78rem; color: var(--rb-muted); line-height: 1.3; margin-top: .15rem; }
.mega-svc .ms-ic { background: transparent; border: 1px solid var(--rb-line); }
.mega-svc:hover { background: var(--rb-bg-soft); color: var(--rb-ink); }
.mega-svc:hover strong { color: var(--rb-red); }
.mega-svc:hover small { color: var(--rb-muted); }
.mega-svc:hover .ms-ic { background: var(--rb-red); border-color: var(--rb-red); color: #fff; }

.mega-stats { height: 100%; border-radius: 16px; padding: 1.5rem; color: #c9d0e6; position: relative; overflow: hidden;
  background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px) 0 0 / 14px 14px, linear-gradient(160deg, #0d1f57 0%, var(--rb-navy-2) 100%); }
.mega-stats::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rb-red); }
.msx-label { display: block; font-family: var(--rb-font-head); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8f9bc4; margin-bottom: .9rem; }
.msx-row { display: flex; align-items: baseline; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.msx-row strong { font-family: var(--rb-font-head); font-weight: 800; font-size: 1.55rem; color: #fff; min-width: 74px; }
.msx-row span { font-size: .86rem; }
.msx-btn { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: .8rem; padding: .62rem 1rem; border-radius: 10px; background: var(--rb-red); color: #fff; font-family: var(--rb-font-head); font-weight: 700; font-size: .9rem; transition: background .2s; }
.msx-btn:hover { background: var(--rb-red-dark); color: #fff; }
.msx-btn + .msx-btn { margin-top: .5rem; }
.msx-btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.25); }
.msx-btn-ghost:hover { background: rgba(255,255,255,.08); }

.mega-cta { background: #fff; color: var(--rb-ink); border: 1px solid var(--rb-line); border-left: 3px solid var(--rb-red); box-shadow: none; border-radius: 12px; }
.mega-cta:hover { color: var(--rb-ink); background: var(--rb-bg-soft); transform: none; }
.mega-cta .ml-ic { background: var(--rb-red-soft); color: var(--rb-red); }
.mega-cta small { color: var(--rb-muted); }
.mega-cta > .bi-arrow-right { color: var(--rb-red); }

.mega-foot { background: var(--rb-bg-soft); margin: 1.8rem calc(-50vw + 50%) 0; padding: .9rem calc(50vw - 50%); border-top: 1px solid var(--rb-line); border-radius: 0 0 22px 22px; }
.mf-all { font-size: .92rem; }
.mf-contacts { gap: 1.6rem; font-size: .84rem; color: var(--rb-muted); }
.mf-contacts i { color: var(--rb-red); margin-right: .25rem; }
.mf-contacts a { color: var(--rb-ink); font-weight: 700; }
@media (max-width: 1199px) { .mega-foot { margin: .8rem 0 0; padding: .8rem .6rem; border-radius: 10px; } }
.mega-link .ml-ic { background: transparent; border: 1px solid var(--rb-line); color: var(--rb-red); }
.mega-link:hover .ml-ic { background: var(--rb-red); border-color: var(--rb-red); color: #fff; transform: none; }
.mega-link:hover strong { color: var(--rb-red); }
.mega-cta .ml-ic { border: 0; }

/* =========================================================
   Megamenu v4 — leggibile, stile RedBay
   ========================================================= */
@media (min-width: 1200px) { .rb-nav .dropdown-menu.mega-panel { padding: 2.2rem 0 2.4rem; } }
.mx-grid { display: grid; gap: 2rem; }
@media (min-width: 1200px) {
  .mx-grid-shops { grid-template-columns: 1.05fr 1fr 1fr; align-items: stretch; }
  .mx-grid-svc { grid-template-columns: 290px 1fr; }
}

/* blocco rosso della rete */
.mx-hero { display: flex; flex-direction: column; border-radius: 22px; padding: 1.9rem; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #e8413f 0%, var(--rb-red) 45%, #a8121a 100%); box-shadow: 0 18px 40px rgba(221, 51, 51, .28); }
.mx-hero::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .12); }
.mx-hero:hover { color: #fff; }
.mx-hero-ic { width: 52px; height: 52px; border-radius: 15px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 1.1rem; }
.mx-hero-num { font-family: var(--rb-font-head); font-weight: 800; font-size: 2.3rem; line-height: 1.05; }
.mx-hero-txt { font-size: 1rem; color: #ffe1e1; margin: .5rem 0 1.4rem; max-width: 290px; line-height: 1.5; }
.mx-hero-btn { margin-top: auto; align-self: flex-start; background: #fff; color: var(--rb-red); border-radius: 50px; padding: .7rem 1.25rem; font-family: var(--rb-font-head); font-weight: 700; font-size: .95rem; position: relative; z-index: 2; }
.mx-hero-btn i { transition: transform .2s; display: inline-block; }
.mx-hero:hover .mx-hero-btn i { transform: translateX(4px); }

/* colonne di link */
.mx-label { font-family: var(--rb-font-head); font-weight: 800; font-size: 1.05rem; color: var(--rb-ink); margin: .2rem 0 .9rem .9rem; }
.mx-item { display: flex; align-items: center; gap: 1rem; padding: .85rem .9rem; border-radius: 16px; color: var(--rb-ink); transition: background .2s; }
.mx-item:hover { background: var(--rb-red-soft); color: var(--rb-ink); }
.mx-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--rb-bg-soft); color: var(--rb-red); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; transition: all .2s; }
.mx-item:hover .mx-ic { background: var(--rb-red); color: #fff; box-shadow: 0 8px 18px rgba(221, 51, 51, .3); }
.mx-t { display: flex; flex-direction: column; min-width: 0; }
.mx-t b { font-family: var(--rb-font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.mx-t em { font-style: normal; font-size: .9rem; color: var(--rb-text); line-height: 1.4; margin-top: .1rem; }

/* schede gruppi (servizi) */
.mx-tabs { flex-direction: column; gap: .35rem; padding-right: 1.6rem; border-right: 1px solid var(--rb-line); }
.mx-tab { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; border: 0; background: transparent; padding: .95rem 1rem; border-radius: 14px;
  font-family: var(--rb-font-head); font-weight: 700; font-size: 1.05rem; color: var(--rb-ink); transition: all .2s; }
.mx-tab > .bi:first-child { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--rb-bg-soft); color: var(--rb-red); font-size: 1.1rem; flex-shrink: 0; transition: all .2s; }
.mx-tab .mx-chev { margin-left: auto; font-size: .85rem; opacity: 0; transform: translateX(-4px); transition: all .2s; }
.mx-tab:hover, .mx-tab.active { background: var(--rb-red-soft); color: var(--rb-red); }
.mx-tab.active > .bi:first-child { background: var(--rb-red); color: #fff; box-shadow: 0 8px 18px rgba(221, 51, 51, .3); }
.mx-tab.active .mx-chev { opacity: 1; transform: none; }
.mx-all { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding: 1rem 1rem 0; font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-red); font-size: .98rem; }
.mx-all:hover i { transform: translateX(4px); }
.mx-all i { transition: transform .2s; }

.mx-pane-title { font-family: var(--rb-font-head); font-weight: 800; font-size: 1.45rem; color: var(--rb-ink); margin: .1rem 0 .2rem; }
.mx-pane-sub { color: var(--rb-text); font-size: .98rem; margin: 0 0 1.3rem; }
.mx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.mx-tile { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid var(--rb-line); background: #fff; color: var(--rb-ink); transition: all .25s; }
.mx-tile:hover { border-color: transparent; box-shadow: var(--rb-shadow); transform: translateY(-2px); color: var(--rb-ink); }
.mx-tile-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--rb-red); color: #fff; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; box-shadow: 0 10px 22px rgba(221, 51, 51, .28); }
.mx-tile:hover .mx-t b { color: var(--rb-red); }

@media (min-width: 1200px) {
  .mx-pane { display: none; }
  .mx-pane.active { display: block; animation: megaIn .2s ease; }
}
@media (max-width: 1199px) {
  .mx-grid { gap: 1.2rem; }
  .mx-hero { padding: 1.3rem; }
  .mx-hero-num { font-size: 1.7rem; }
  .mx-label { margin-left: .4rem; }
  .mx-pane + .mx-pane { margin-top: 1.2rem; }
  .mx-pane-title { font-size: 1.05rem; margin-bottom: .6rem; }
  .mx-tiles { grid-template-columns: 1fr; gap: .4rem; }
  .mx-tile { border: 0; padding: .6rem .5rem; background: transparent; }
  .mx-tile-ic { width: 40px; height: 40px; font-size: 1.05rem; box-shadow: none; }
  .mx-all { padding: 1rem .5rem 0; }
}
@media (min-width: 1200px) {
  .mx-grid-svc { grid-template-columns: 330px 1fr; }
  .mx-tab span { white-space: nowrap; }
  .mx-panes { display: flex; flex-direction: column; min-height: 400px; }
}
.mx-bar { margin-top: auto; padding-top: 1.4rem; gap: .8rem; }
.mx-bar a { flex: 1; display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--rb-bg-soft); color: var(--rb-text); font-size: .93rem; transition: all .2s; }
.mx-bar a > .bi:first-child { color: var(--rb-red); font-size: 1.15rem; }
.mx-bar a > .bi:last-child { margin-left: auto; color: var(--rb-red); transition: transform .2s; }
.mx-bar a b { color: var(--rb-ink); font-weight: 700; }
.mx-bar a:hover { background: var(--rb-red-soft); }
.mx-bar a:hover > .bi:last-child { transform: translateX(4px); }
.legal-draft { display: flex; gap: .9rem; background: #fff8e1; border: 1px solid #f3dc8e; color: #6b5200; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.6rem; font-size: .93rem; }
.legal-draft i { font-size: 1.3rem; color: #b38600; }
.legal-doc mark { background: #fff1b8; padding: 0 .25rem; border-radius: 4px; color: #6b5200; }
.nf-code { font-family: var(--rb-font-head); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--rb-red); opacity: .9; margin-bottom: .5rem; }
.doc-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 16px; border: 1px solid var(--rb-line); background: #fff; color: var(--rb-ink); height: 100%; transition: all .2s; }
.doc-card:hover { box-shadow: var(--rb-shadow); border-color: transparent; color: var(--rb-ink); }
.doc-card > .bi:first-child { font-size: 2rem; color: var(--rb-red); }
.doc-card b { display: block; font-family: var(--rb-font-head); font-size: 1rem; }
.doc-card em { display: block; font-style: normal; font-size: .85rem; color: var(--rb-muted); }
.doc-card > .bi:last-child { color: var(--rb-red); }

/* ---------- Pagine negozi / città ---------- */
.city-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.city-chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 50px; padding: .4rem .95rem; font-size: .9rem; font-weight: 600; }
.city-chips i { color: #ff8a8a; margin-right: .25rem; }
.city-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 1.6rem; }
.city-stats strong { display: block; font-family: var(--rb-font-head); font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; }
.city-stats span { font-size: .9rem; color: #c5cbe0; }
.city-h2 { font-size: 1.55rem; margin-bottom: 1.3rem; }
.city-map-wrap { position: sticky; top: 110px; border-radius: 20px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--rb-shadow-lg); }
#cityMap { height: 460px; background: #e9eef6; }
@media (max-width: 991px) { #cityMap { height: 320px; } .city-map-wrap { position: static; } }
.shop-list { display: grid; gap: .9rem; }
.shop-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border: 1px solid var(--rb-line); border-radius: 18px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.shop-card:hover { box-shadow: var(--rb-shadow); border-color: transparent; }
.shop-pin { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--rb-red); display: grid; place-items: center; flex-shrink: 0; background: #fff; }
.shop-pin img { width: 32px; height: auto; }
.shop-body { flex: 1; min-width: 0; }
.shop-body h3 { font-size: 1.12rem; margin: .1rem 0 .3rem; }
.shop-body p { margin: 0 0 .6rem; font-size: .93rem; line-height: 1.5; }
.shop-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.shop-tags a { background: var(--rb-red-soft); color: var(--rb-red); border-radius: 50px; padding: .2rem .7rem; font-size: .78rem; font-weight: 700; }
.shop-tags a:hover { background: var(--rb-red); color: #fff; }
.shop-dir { display: flex; flex-direction: column; align-items: center; gap: .2rem; color: var(--rb-red); font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.shop-dir i { width: 40px; height: 40px; border-radius: 12px; background: var(--rb-bg-soft); display: grid; place-items: center; font-size: 1.15rem; transition: all .2s; }
.shop-dir:hover i { background: var(--rb-red); color: #fff; }
@media (max-width: 575px) { .shop-dir span { display: none; } }
.city-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.city-links a { border: 1px solid var(--rb-line); background: #fff; border-radius: 50px; padding: .4rem .9rem; color: var(--rb-ink); font-weight: 600; font-size: .9rem; transition: all .2s; }
.city-links a span { color: var(--rb-muted); font-weight: 700; font-size: .8rem; margin-left: .2rem; }
.city-links a:hover { border-color: var(--rb-red); color: var(--rb-red); }
.city-links a.all { border: 0; color: var(--rb-red); font-family: var(--rb-font-head); font-weight: 800; }
.city-search-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.city-search-bar .form-control { background: var(--rb-bg-soft); box-shadow: none; border: 1px solid var(--rb-line); }
.city-top { position: relative; display: flex; flex-direction: column; padding: 1.1rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--rb-line); color: var(--rb-ink); height: 100%; transition: all .2s; }
.city-top:hover { box-shadow: var(--rb-shadow); border-color: transparent; color: var(--rb-ink); }
.city-top b { font-family: var(--rb-font-head); font-size: 1.12rem; }
.city-top span { color: var(--rb-muted); font-size: .85rem; }
.city-top i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--rb-red); }
.prov-block { padding: 1.3rem 0; border-bottom: 1px solid var(--rb-line); }
.prov-block h3 { font-size: 1.12rem; margin-bottom: .8rem; }
.prov-block h3 small { color: var(--rb-muted); font-weight: 700; font-size: .8rem; margin-left: .3rem; }

/* ---------- Ultime ricerche Amazon ---------- */
.amz-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1rem; scrollbar-width: thin; }
@media (max-width: 991px) { .amz-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 575px) { .amz-track { grid-auto-columns: 78%; } }
.amz-card { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--rb-line); border-radius: 18px; padding: 1.1rem; color: var(--rb-ink); transition: box-shadow .2s, border-color .2s; }
.amz-card:hover { box-shadow: var(--rb-shadow); border-color: transparent; color: var(--rb-ink); }
.amz-img { height: 170px; display: grid; place-items: center; margin-bottom: .9rem; overflow: hidden; }
.amz-img img { max-width: 100%; max-height: 170px; object-fit: contain; transition: transform .3s; }
.amz-card:hover .amz-img img { transform: scale(1.06); }
.amz-title { font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.amz-price { font-family: var(--rb-font-head); font-weight: 800; font-size: 1.3rem; margin: .6rem 0 .9rem; }
.amz-btn { margin-top: auto; text-align: center; border: 2px solid var(--rb-red); color: var(--rb-red); border-radius: 50px; padding: .5rem; font-family: var(--rb-font-head); font-weight: 700; font-size: .9rem; transition: all .2s; }
.amz-card:hover .amz-btn { background: var(--rb-red); color: #fff; }
.amz-nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rb-line); background: #fff; color: var(--rb-ink); transition: all .2s; }
.amz-nav:hover { background: var(--rb-red); border-color: var(--rb-red); color: #fff; }
.amz-disc { font-size: .8rem; color: var(--rb-muted); margin: .6rem 0 0; }

/* ---------- Consenso cookie (in basso a destra) ---------- */
.rb-consent { position: fixed; z-index: 1080; right: 20px; bottom: 20px; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; background: #fff; color: #1d2433; border: 1px solid #dfe3ee; border-radius: 16px; box-shadow: 0 24px 64px rgba(10, 26, 74, .26), 0 2px 8px rgba(10, 26, 74, .08); padding: 20px 22px 14px; }
.rb-consent[hidden], .rb-consent [hidden] { display: none; }
.rb-consent .rbc-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.rb-consent .rbc-icon { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(221, 51, 51, .1); color: var(--rb-red); font-size: 1.25rem; }
.rb-consent h2 { flex: 1; font-size: 1.12rem; line-height: 1.3; margin: 0; outline: none; }
.rb-consent p { font-size: .87rem; line-height: 1.55; margin: 0 0 .7rem; }
.rb-consent .rbc-note { color: #5b6478; font-size: .8rem; }
.rb-consent .rbc-close, .rb-consent .rbc-btn { background: #fff; color: #0a1a4a; border: 1.5px solid #0a1a4a; font-weight: 700; transition: background-color .15s, color .15s; }
.rb-consent .rbc-close:hover, .rb-consent .rbc-btn:hover { background: #0a1a4a; color: #fff; }
.rb-consent .rbc-close:focus-visible, .rb-consent .rbc-btn:focus-visible, .rb-consent .rbc-back:focus-visible { outline: 3px solid rgba(221, 51, 51, .55); outline-offset: 2px; }
.rb-consent .rbc-close { flex: 0 0 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; padding: 0; font-size: 1rem; }
.rb-consent .rbc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .9rem 0 .2rem; }
.rb-consent .rbc-btn { border-radius: 10px; min-height: 44px; padding: .5rem .4rem; font-size: .84rem; line-height: 1.2; }
.rb-consent .rbc-cat { border: 1px solid #e6e9f0; border-radius: 12px; padding: .75rem .9rem; margin-bottom: .6rem; background: #fafbfe; }
.rb-consent .rbc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .25rem; font-size: .92rem; }
.rb-consent .rbc-cat-head .form-check-input { width: 2.6em; height: 1.35em; cursor: pointer; }
.rb-consent .rbc-cat-head .form-check-input:checked { background-color: var(--rb-red); border-color: var(--rb-red); }
.rb-consent .rbc-cat p { font-size: .82rem; margin: 0; }
.rb-consent .rbc-cat details { margin-top: .35rem; font-size: .8rem; }
.rb-consent .rbc-cat summary { cursor: pointer; color: #0a1a4a; font-weight: 700; }
.rb-consent .rbc-cat details p { margin-top: .35rem; color: #5b6478; }
.rb-consent .rbc-always { font-size: .75rem; font-weight: 700; color: #17794a; background: #e6f6ee; border-radius: 20px; padding: .15rem .6rem; }
.rb-consent .rbc-back { background: none; border: 0; padding: .35rem 0; font-size: .82rem; color: #5b6478; }
.rb-consent .rbc-links { display: flex; gap: 1.2rem; border-top: 1px solid #eef0f6; margin-top: .7rem; padding-top: .65rem; font-size: .8rem; }
@media (max-width: 480px) {
  .rb-consent { right: 8px; bottom: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 16px 16px 12px; }
  .rb-consent .rbc-actions { grid-template-columns: 1fr; }
}
.rb-footer .link-consent { background: none; border: 0; padding: 0; color: #c3cae0; font: inherit; cursor: pointer; }
.rb-footer .link-consent:hover { color: #fff; }

/* ---------- Programma affiliati ---------- */
.rb-why.aff-why { padding-bottom: 110px; }
.aff-photo { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 4 / 3; box-shadow: var(--rb-shadow-lg); }
.aff-card { display: block; color: inherit; }
.aff-card:hover { color: inherit; }
.aff-badge { position: absolute; top: 16px; right: 16px; font-family: var(--rb-font-head); font-weight: 800; font-size: .72rem; border-radius: 30px; padding: .25rem .7rem; background: #e6f6ee; color: #17794a; }
.aff-badge.base { background: var(--rb-red-soft); color: var(--rb-red); }
.aff-card { display: flex; flex-direction: column; }
.aff-card p { flex: 1; }
.aff-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; border-top: 1px solid var(--rb-line); margin-top: 1.1rem; padding-top: .9rem; font-size: .85rem; color: #6b7385; }
.aff-price strong { font-family: var(--rb-font-head); font-size: 1.5rem; color: var(--rb-red); line-height: 1; }

/* ---------- Esempio "come funziona": annuncio e conversazione ---------- */
.mk-demo { margin: 0; background: #fff; border-radius: 22px; box-shadow: var(--rb-shadow-lg); padding: 1.25rem 1.25rem 1rem; }
.mk-ad { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--rb-line); border-radius: 14px; padding: .8rem; }
.mk-thumb { flex: 0 0 66px; height: 66px; border-radius: 12px; display: grid; place-items: center; font-size: 2rem; color: #fff; background: linear-gradient(150deg, var(--rb-navy), #2a4390); }
.mk-info { display: flex; flex-direction: column; min-width: 0; }
.mk-info small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7385; }
.mk-info b { font-family: var(--rb-font-head); color: var(--rb-ink); }
.mk-info em { font-style: normal; font-size: .9rem; color: var(--rb-red); font-weight: 700; }
.mk-chat { padding: 1rem .1rem .2rem; }
.mk-msg { display: flex; align-items: flex-end; gap: .55rem; margin-bottom: .6rem; }
.mk-msg .av { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--rb-font-head); font-weight: 800; font-size: .85rem; background: #e4e8f2; color: var(--rb-ink); }
.mk-msg p { margin: 0; max-width: 78%; background: #f0f2f7; color: var(--rb-ink); border-radius: 16px 16px 16px 4px; padding: .55rem .9rem; font-size: .92rem; line-height: 1.45; }
.mk-msg.me { flex-direction: row-reverse; }
.mk-msg.me .av { background: var(--rb-red-soft); color: var(--rb-red); }
.mk-msg.me p { background: #e7efff; border-radius: 16px 16px 4px 16px; }
.mk-msg.rb p { background: var(--rb-red); color: #fff; font-weight: 600; }
.mk-demo figcaption { border-top: 1px solid var(--rb-line); padding-top: .65rem; font-size: .74rem; color: #6b7385; }

/* ---------- Prezzi indicativi ---------- */
.price-card { background: #fff; border-radius: 18px; box-shadow: 0 4px 20px rgba(15, 28, 63, .06); padding: 1.6rem 1.6rem 1rem; height: 100%; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.price-table { font-size: .95rem; }
.price-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7385; border-bottom: 2px solid var(--rb-red); }
.price-table tbody th { font-weight: 600; color: var(--rb-ink); }
.price-table td, .price-table thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.price-table td { font-family: var(--rb-font-head); font-weight: 800; color: var(--rb-ink); }
.price-table > :not(caption) > * > * { padding: .75rem .35rem; }
@media (max-width: 420px) { .price-card { padding: 1.2rem .9rem .6rem; } .price-table { font-size: .84rem; } }

/* ---------- Scheda negozio (finestra della mappa) ---------- */
.shop-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--rb-shadow-lg); }
.shop-modal .modal-header { gap: 1rem; align-items: center; padding: 1.2rem 1.6rem; border-top: 5px solid var(--rb-red); }
.shop-modal .modal-title { font-family: var(--rb-font-head); font-weight: 800; font-size: 1.5rem; color: var(--rb-ink); margin: 0; }
.shop-modal-addr { margin: .15rem 0 0; color: var(--rb-muted); font-size: .95rem; }
.shop-modal .modal-body { padding: 1.5rem 1.6rem; }
.shop-modal .modal-body h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .8rem; color: var(--rb-ink); }
.shop-modal .modal-body h3 i { color: var(--rb-red); margin-right: .35rem; }
.shop-photo { margin: 0; border-radius: 16px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--rb-shadow-lg); background: #e9eef6; height: 100%; min-height: 260px; max-height: 340px; }
.shop-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-phone { display: inline-flex; align-items: center; gap: .9rem; background: var(--rb-red-soft); color: var(--rb-red); border-radius: 14px; padding: .8rem 1.3rem; margin-bottom: 1.3rem; }
.shop-phone i { font-size: 1.4rem; }
.shop-phone small { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.shop-phone b { font-family: var(--rb-font-head); font-size: 1.5rem; color: var(--rb-ink); white-space: nowrap; }
.shop-services { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-services a { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--rb-line); border-radius: 50px; padding: .45rem .95rem; font-family: var(--rb-font-head); font-weight: 700; font-size: .88rem; color: var(--rb-ink); }
.shop-services a i { color: var(--rb-red); }
.shop-services a:hover { border-color: var(--rb-red); color: var(--rb-red); }
.shop-box { border: 1px solid var(--rb-line); border-radius: 16px; padding: 1.2rem 1.3rem; height: 100%; }
.shop-hours { width: 100%; font-size: .93rem; }
.shop-hours th { font-weight: 600; padding: .32rem .5rem; width: 40%; color: var(--rb-ink); }
.shop-hours th small { color: var(--rb-red); font-weight: 700; }
.shop-hours td { padding: .32rem .5rem; text-align: right; }
.shop-hours td span { display: inline-block; margin-left: .8rem; white-space: nowrap; }
.shop-hours td em { color: var(--rb-muted); font-style: normal; }
.shop-hours tr.today { background: var(--rb-red-soft); }
.shop-sizes, .shop-carriers { display: flex; flex-wrap: wrap; gap: .45rem; }
.shop-sizes span { background: var(--rb-red-soft); color: var(--rb-red); font-weight: 700; font-size: .85rem; border-radius: 50px; padding: .35rem .85rem; }
.shop-carriers span { border: 1px solid var(--rb-line); font-weight: 700; font-size: .82rem; border-radius: 8px; padding: .3rem .7rem; color: var(--rb-ink); }
.shop-limits { list-style: none; padding: 0; margin: .8rem 0 0; font-size: .93rem; }
.shop-limits li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--rb-line); }
.shop-limits b { color: var(--rb-ink); }
.shop-sub { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rb-muted); margin: 1rem 0 .5rem; }
.shop-note { font-size: .8rem; color: var(--rb-muted); margin: .9rem 0 0; }
.shop-empty { color: var(--rb-muted); font-size: .93rem; margin: 0 0 .6rem; }
.shop-loading { text-align: center; padding: 3.5rem 0; color: var(--rb-muted); }
.shop-loading .spinner-border { color: var(--rb-red); }
.shop-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.shop-actions button.shop-dir { background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; line-height: inherit; }
@media (max-width: 575px) { .shop-photo { height: 230px; min-height: 0; } .shop-actions { flex-direction: column; } .shop-modal .modal-header, .shop-modal .modal-body { padding-left: 1rem; padding-right: 1rem; } }
.svc-tile .brands-mini-line { flex-wrap: nowrap; align-items: center; gap: .5rem; }
.svc-tile .brands-mini-line img { flex: 1 1 0; width: 0; min-width: 0; max-width: none; height: 22px; }
