/* =========================================================
   City Recupero Crediti — foglio di stile principale
   Per cambiare i colori del sito basta modificare le
   variabili qui sotto.
   ========================================================= */
:root {
  --brand: #2b3f9c;          /* blu del logo */
  --brand-dark: #16214f;     /* blu notte (fasce scure, footer) */
  --brand-light: #eef1fb;    /* azzurro chiarissimo (sfondi sezioni) */
  --accent: #3fa9f5;         /* azzurro di accento */
  --text: #2a2f3a;
  --muted: #6b7280;

  --bs-primary: var(--brand);
  --bs-primary-rgb: 43, 63, 156;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--text);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-dark);
}

body { font-size: 1.0625rem; line-height: 1.7; }
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--brand-dark); letter-spacing: -0.01em; }
.text-muted { color: var(--muted) !important; }
section { scroll-margin-top: 90px; }

/* ---------- Pulsanti ---------- */
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark); }
.btn-outline-light:hover { color: var(--brand-dark); }
.btn { border-radius: 999px; padding: .65rem 1.5rem; font-weight: 600; }

/* ---------- Barra superiore ---------- */
.topbar { background: var(--brand-dark); color: #c9d2f0; font-size: .875rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }

/* ---------- Menu ---------- */
.navbar { box-shadow: 0 2px 18px rgba(22, 33, 79, .08); }
.navbar-brand { padding: 0; margin-right: 1.5rem; }
.navbar-brand img { height: 54px; width: auto; display: block; }   /* logo su smartphone */
@media (min-width: 992px) {
  .navbar-brand img { height: 76px; }                                /* logo su desktop */
}
.navbar .nav-link { font-weight: 600; color: var(--brand-dark); padding: .5rem 1rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand); }
.dropdown-menu { border: 0; border-radius: .75rem; box-shadow: 0 12px 30px rgba(22,33,79,.12); padding: .5rem; }
.dropdown-item { border-radius: .5rem; padding: .5rem .9rem; }
.dropdown-item:active, .dropdown-item.active { background: var(--brand); }
@media (min-width: 992px) {   /* apre i sottomenu al passaggio del mouse su desktop */
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff; padding: 7rem 0 6rem;
  background: linear-gradient(110deg, rgba(22,33,79,.94) 0%, rgba(43,63,156,.80) 55%, rgba(43,63,156,.45) 100%),
              url("../img/hero.jpg") center / cover no-repeat;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.15; }
.hero .lead { color: #dbe2f7; max-width: 38rem; }
.hero .eyebrow { color: var(--accent); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand); }

/* ---------- Intestazione pagine interne ---------- */
.page-header { background: linear-gradient(110deg, var(--brand-dark), var(--brand)); color: #fff; padding: 3.5rem 0 3rem; }
.page-header h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: #9fb0e6; --bs-breadcrumb-item-active-color: #c9d2f0; margin-bottom: .5rem; font-size: .9rem; }
.page-header .breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- Numeri chiave ---------- */
.stats { background: #fff; border-radius: 1rem; box-shadow: 0 15px 40px rgba(22,33,79,.10); margin-top: -3rem; position: relative; z-index: 2; }
.stat { padding: 1.5rem 1rem; text-align: center; }
.stat strong { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1.2; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (min-width: 768px) { .stat + .stat { border-left: 1px solid #e7eaf3; } }

/* ---------- Sezioni e card ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--brand-light); }
.card-soft { border: 0; border-radius: 1rem; box-shadow: 0 6px 24px rgba(22,33,79,.07); height: 100%; transition: transform .2s, box-shadow .2s; }
a.card-soft { text-decoration: none; color: inherit; }
a.card-soft:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,33,79,.13); }
.icon-badge { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand); font-size: 1.6rem; margin-bottom: 1rem; }
.card-soft .more { font-weight: 600; color: var(--brand); font-size: .95rem; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--brand); font-size: 1.2rem; }

.goal { background: var(--brand-light); border-left: 4px solid var(--brand); border-radius: .75rem; padding: 1.25rem 1.5rem; }
.goal strong { color: var(--brand-dark); }

.rounded-img { border-radius: 1rem; box-shadow: 0 10px 30px rgba(22,33,79,.12); }

/* ---------- Menu laterale servizi ---------- */
.side-nav .list-group-item { border: 0; border-radius: .6rem !important; margin-bottom: .25rem; font-weight: 600; color: var(--brand-dark); }
.side-nav .list-group-item.active { background: var(--brand); color: #fff; }
.side-nav .list-group-item:not(.active):hover { background: var(--brand-light); }

/* ---------- Fascia contatti ---------- */
.cta { background: linear-gradient(110deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 1.25rem; padding: 3rem; }
.cta h2 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #b7c1e3; font-size: .925rem; padding-top: 4rem; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 1rem; }
.site-footer a { color: #dfe5f8; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-logo { background: #fff; border-radius: .75rem; padding: .5rem .75rem; display: inline-block; }
.site-footer .footer-logo img { height: 60px; width: auto; }
.site-footer .badges img { height: 48px; border-radius: .4rem; background: #fff; margin-right: .5rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.5rem 0; font-size: .8rem; color: #8f9bc6; }

/* ---------- Form ---------- */
.form-control { border-radius: .6rem; padding: .75rem 1rem; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(43,63,156,.15); }
.map-link { position: relative; display: block; border-radius: 1rem; overflow: hidden; box-shadow: 0 6px 24px rgba(22,33,79,.07); }
.map-link img { display: block; width: 100%; height: auto; }
.map-btn { position: absolute; left: 1rem; bottom: 1rem; background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem; padding: .55rem 1rem; border-radius: 999px; }
.map-link:hover .map-btn { background: var(--brand-dark); }

/* Le card nella colonna laterale non si allungano */
aside .card-soft { height: auto; }

/* ---------- Immagini e illustrazioni ---------- */
.page-header { background-size: cover; background-position: center; }
.illus { border-radius: 1.25rem; display: block; width: 100%; height: auto; }
.illus-panel { margin: 0; border-radius: 1.25rem; overflow: hidden; }
.illus-panel img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
/* campo trappola antispam del modulo: nascosto */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* certificazioni senza logo nel piè di pagina */
.cert-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.cert-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 .75rem; border-radius: .4rem; background: #fff; color: var(--brand-dark); font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
