/* =====================================================
   CREDITO SERENO — style.css
   Ordine cascata: Bootstrap → Bootstrap Icons → Fonts → style.css
   ===================================================== */

/* ── VARIABILI ── */
:root {
  --blu:        #003E7E;
  --blu-scuro:  #002D5B;
  --blu-light:  #E8F0FB;
  --verde:      #2DA56A;
  --verde-scuro:#1E8050;
  --verde-light:#E8F7EF;
  --grigio-bg:  #F4F6FA;
  --grigio-txt: #5A6378;
  --bordo:      #DDE3EE;
  --scuro:      #0F1B2D;
  --ombra:      0 4px 24px rgba(0,62,126,.10);
  --ombra-lg:   0 12px 48px rgba(0,62,126,.15);
  --r:          12px;
  --r-lg:       20px;
}

/* ── BASE ── */
body {
  font-family: 'Manrope', sans-serif;
  color: var(--scuro);
  background: #fff;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }

/* ── UTILITY COLORE ── */
.c-blu   { color: var(--blu)   !important; }
.c-verde { color: var(--verde) !important; }
.bg-blu   { background: var(--blu)   !important; }
.bg-verde { background: var(--verde) !important; }
.bg-grigio{ background: var(--grigio-bg) !important; }

/* ── DISCLAIMER ── */
.disclaimer {
  background: #FFF8E1;
  border-bottom: 1px solid #F59E0B;
  font-size: 11.5px;
  color: #92400E;
  padding: 8px 0;
  text-align: center;
}

/* ── NAVBAR ── */
.navbar-cs {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordo);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Link navbar */
.navbar-cs .nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--grigio-txt) !important;
  padding: 8px 13px !important;
  border-radius: 8px;
  transition: all .2s;
}
.navbar-cs .nav-link:hover,
.navbar-cs .nav-link.active {
  color: var(--blu) !important;
  background: var(--blu-light);
}

/* Logo */
.logo-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
}
.logo-tag {
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9BA5B8;
  font-weight: 600;
}

/* ─── CSS-ONLY HAMBURGER ─── */
.nav-check { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: 1px solid var(--bordo);
  border-radius: 8px;
  background: none;
  user-select: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blu);
  border-radius: 2px;
  transition: all .3s;
}

@media (max-width: 991px) {
  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 16px 0 8px;
    border-top: 1px solid var(--bordo);
    gap: 4px;
  }
  .nav-check:checked ~ .nav-wrap .nav-menu { display: flex; }

  /* Animazione hamburger → X */
  .nav-check:checked ~ .nav-wrap .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-check:checked ~ .nav-wrap .hamburger span:nth-child(2) { opacity: 0; }
  .nav-check:checked ~ .nav-wrap .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .navbar-cs .nav-link { border-radius: 10px; }
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

/* ── BOTTONI ── */
.btn-blu {
  background: var(--blu);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .25s;
  cursor: pointer;
}
.btn-blu:hover { background: var(--blu-scuro); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,62,126,.3); }

.btn-verde {
  background: var(--verde);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .25s;
  cursor: pointer;
}
.btn-verde:hover { background: var(--verde-scuro); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,165,106,.35); }

.btn-outline-bianco {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .25s;
  cursor: pointer;
}
.btn-outline-bianco:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }

/* ── SECTION TAG ── */
.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--verde-light);
  color: var(--verde-scuro);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.s-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--verde);
  border-radius: 50%;
}

.s-titolo { font-size: clamp(24px,4vw,38px); font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.s-sub { font-size: 16px; color: var(--grigio-txt); line-height: 1.75; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blu-scuro) 0%, var(--blu) 55%, #1a5fa8 100%);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,165,106,.18);
  border: 1px solid rgba(45,165,106,.4);
  color: #7DEBB5;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,.88);
  margin-bottom: 10px;
}
.hero-checklist li .ck {
  width: 22px; height: 22px;
  background: rgba(45,165,106,.28);
  border: 1px solid rgba(45,165,106,.5);
  color: #7DEBB5;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.hero-stat .n { font-family: 'Poppins',sans-serif; font-size: 26px; font-weight: 800; color: #fff; line-height: 1; display: block; }
.hero-stat .l { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; display: block; }
.stat-div { width: 1px; height: 34px; background: rgba(255,255,255,.15); }

/* Immagine hero */
.hero-img {
  width: 250%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) {
.hero-img {
  width: 100%; 
}
}

/* placeholder se manca l'immagine */
.hero-img-placeholder {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.08);
  border: 2px dashed rgba(255,255,255,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.45);
  font-size: 14px;
}
.hero-img-placeholder i { font-size: 48px; }

/* badge floating sull'immagine */
.hero-float-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: #fff;
  border-radius: var(--r);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--ombra-lg);
  z-index: 2;
}
.hfb-icon {
  width: 36px; height: 36px;
  background: var(--verde-light);
  color: var(--verde);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.hfb-label { font-size: 11px; color: var(--grigio-txt); font-weight: 600; line-height: 1.3; }
.hfb-val   { font-family: 'Poppins',sans-serif; font-size: 15px; font-weight: 800; color: var(--scuro); }

/* ── TRUST BAND ── */
.trust-band {
  background: var(--grigio-bg);
  border-top: 1px solid var(--bordo);
  border-bottom: 1px solid var(--bordo);
  padding: 18px 0;
}
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--grigio-txt); }
.t-icon {
  width: 30px; height: 30px;
  background: var(--blu-light);
  color: var(--blu);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-family: 'Poppins',sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── SEZIONI ── */
.sez  { padding: 80px 0; }
.sez-sm { padding: 56px 0; }

/* ── SERVICE CARD ── */
.srv-card {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--r-lg);
  padding: 28px;
  height: 100%;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.srv-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.srv-card:hover { border-color: var(--blu); box-shadow: var(--ombra); transform: translateY(-4px); }
.srv-card:hover::after { transform: scaleX(1); }

.srv-icon {
  width: 50px; height: 50px;
  background: var(--blu-light);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.link-arr { font-size: 13px; font-weight: 700; color: var(--blu); display: inline-flex; align-items: center; gap: 5px; transition: gap .2s; }
.link-arr:hover { gap: 10px; color: var(--blu); }

/* ── WHY ITEM ── */
.why-item {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 20px; border-radius: var(--r);
  background: var(--grigio-bg);
  transition: background .25s;
  height: 100%;
}
.why-item:hover { background: var(--blu-light); }
.why-n { font-family: 'Poppins',sans-serif; font-size: 24px; font-weight: 800; color: var(--blu); opacity: .22; line-height: 1; min-width: 30px; }

/* ── STEPS ── */
.step-n {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins',sans-serif;
  font-size: 22px; font-weight: 800;
  margin: 0 auto 20px;
}

/* ── CTA BAND ── */
.cta-band { background: linear-gradient(135deg, var(--blu-scuro), var(--blu)); padding: 70px 0; text-align: center; }

/* ── INFO CARD ── */
.info-card {
  background: #fff;
  border: 1px solid var(--bordo);
  border-top: 3px solid var(--blu);
  border-radius: var(--r);
  padding: 22px;
  height: 100%;
}

/* ── FAQ (details/summary nativa) ── */
.faq-item { border-bottom: 1px solid var(--bordo); }
.faq-item summary {
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--scuro);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--blu);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  font-size: 14px;
  color: var(--grigio-txt);
  line-height: 1.7;
  padding-bottom: 16px;
  padding-right: 24px;
}

/* ── BENEFIT LIST ── */
.ben-list { list-style: none; padding: 0; }
.ben-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--scuro);
  margin-bottom: 9px;
}
.ben-list li::before {
  content: '✓';
  background: var(--verde);
  color: #fff;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
  margin-top: 2px;
}

/* ── FORM ── */
.form-cs .form-control,
.form-cs .form-select {
  border: 1.5px solid var(--bordo);
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
}
.form-cs .form-control:focus,
.form-cs .form-select:focus {
  border-color: var(--blu);
  box-shadow: 0 0 0 3px rgba(0,62,126,.08);
}
.form-cs label { font-size: 13px; font-weight: 700; color: var(--scuro); margin-bottom: 6px; }

/* ── TESTIMONIAL ── */
.test-card {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--r-lg);
  padding: 26px;
  height: 100%;
}
.test-card blockquote { font-size: 14px; color: var(--grigio-txt); line-height: 1.75; font-style: italic; margin: 12px 0 18px; }
.avatar {
  width: 38px; height: 38px;
  background: var(--blu-light);
  color: var(--blu);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  font-family: 'Poppins',sans-serif;
}

/* ── PAGE HEADER ── */
.ph {
  background: var(--grigio-bg);
  border-bottom: 1px solid var(--bordo);
  padding: 48px 0;
}

/* ── VALUE CARD ── */
.val-card {
  padding: 22px;
  border-radius: var(--r);
  background: var(--grigio-bg);
  border-left: 3px solid var(--verde);
  height: 100%;
}
.val-card h6 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.val-card p  { font-size: 13px; color: var(--grigio-txt); line-height: 1.6; margin: 0; }

/* ── MISSION BOX ── */
.mission-box {
  background: linear-gradient(135deg, var(--blu-scuro), var(--blu));
  border-radius: var(--r-lg);
  padding: 36px;
}
.m-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.m-stat-n { font-family: 'Poppins',sans-serif; font-size: 20px; font-weight: 800; color: #fff; }
.m-stat-l { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── PERK CARD ── */
.perk-card {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--r);
  padding: 24px;
  height: 100%;
  transition: all .25s;
}
.perk-card:hover { border-color: var(--verde); box-shadow: 0 4px 20px rgba(45,165,106,.12); }

/* ── CONTATTI BLU BOX ── */
.contact-box {
  background: var(--blu);
  border-radius: var(--r-lg);
  padding: 32px;
  color: #fff;
  height: 100%;
}
.ci-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.12);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.orari-box {
  background: rgba(255,255,255,.08);
  border-radius: var(--r);
  padding: 16px;
  margin-top: 22px;
}
.orari-row { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 5px; }

/* ── LEGAL ── */
.legal-box {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 18px;
}
.legal-box h5 { font-size: 17px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--bordo); margin-bottom: 16px; }
.legal-box p, .legal-box li { font-size: 14px; color: var(--grigio-txt); line-height: 1.8; }
.legal-hl {
  background: var(--blu-light);
  border-left: 3px solid var(--blu);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--blu-scuro);
  margin: 12px 0;
  line-height: 1.65;
}

/* ── OAM BADGE ── */
.oam-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blu);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  font-family: 'Poppins',sans-serif;
  margin-top: 18px;
}

/* ── CDQ HERO ── */
.cdq-hero {
  background: linear-gradient(135deg, var(--blu-scuro), var(--blu));
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.lavora-hero {
  background: linear-gradient(135deg, #1E8050, var(--verde));
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

/* ── MAP PLACEHOLDER ── */
.map-ph {
  height: 260px;
  background: linear-gradient(135deg, #e8f0fb, #d4e5f9);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  border-top: 1px solid var(--bordo);
  border-bottom: 1px solid var(--bordo);
}

/* ── FOOTER ── */
.footer-cs { background: var(--scuro); padding: 64px 0 32px; }
.fh { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #fff; margin-bottom: 14px; }
.fdesc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; }
.flinks { list-style: none; padding: 0; }
.flinks li { margin-bottom: 9px; }
.flinks li a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .2s; }
.flinks li a:hover { color: var(--verde); }
.fcontact { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 7px; }
.fcontact a { color: rgba(255,255,255,.5); transition: color .2s; }
.fcontact a:hover { color: var(--verde); }
.f-legal { font-size: 11px; color: rgba(255,255,255,.26); line-height: 1.7; }
.f-oam {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45,165,106,.15);
  border: 1px solid rgba(45,165,106,.3);
  color: #7DEBB5;
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 100px;
  margin-top: 14px;
}
.footer-brand { font-family: 'Poppins',sans-serif; font-size: 17px; font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .hero { min-height: auto; padding: 56px 0; }
  .sez { padding: 56px 0; }
  .hero-col-img { margin-top: 40px; }
}
@media (max-width: 575px) {
  .hero-stats { gap: 16px; }
  .stat-div { display: none; }
  .hero-float-badge { display: none !important; }
}
