/* assets/css/site.css */

/* =========================
   Design tokens
========================= */
:root{
  --cs-bg:#ffffff;
  --cs-alt:#f7f7f8;
  --cs-text:#111827;
  --cs-muted:#6b7280;
  --cs-border:rgba(17,24,39,.12);
  --cs-radius:16px;

  /* Professional colors (richiesti) */
  --cs-primary:#1d4ed8;       /* blu professionale */
  --cs-header:#0b1220;        /* blu-notte header */
  --cs-footer:#0f172a;        /* blu-notte footer */
  --cs-surface-dark:rgba(255,255,255,.08);
  --cs-border-dark:rgba(255,255,255,.16);
  --cs-text-dark:rgba(255,255,255,.92);
  --cs-muted-dark:rgba(255,255,255,.72);
}

html,body{height:100%;}
body{
  color:var(--cs-text);
  background:var(--cs-bg);
}

/* =========================
   Header (dark + menu buttons)
========================= */
.site-header .navbar{
  background:var(--cs-header) !important;
}

.site-header .navbar-brand{
  letter-spacing:.2px;
  color:var(--cs-text-dark) !important;
}

/* link menu come "pulsanti" */
.site-header .nav-link{
  font-weight:700;
  color:var(--cs-muted-dark) !important;
  padding:8px 12px;
  border-radius:999px;
  transition:background .15s ease, color .15s ease;
}

.site-header .nav-link:hover{
  color:var(--cs-text-dark) !important;
  background:var(--cs-surface-dark);
}

.site-header .nav-link.active{
  color:var(--cs-text-dark) !important;
  background:rgba(255,255,255,.14);
  text-decoration:none;
}

/* toggler visibile su dark */
.site-header .navbar-toggler{
  border-color:var(--cs-border-dark);
}
.site-header .navbar-toggler-icon{
  filter:invert(1);
}

/* CTA header */
.site-header .btn.btn-primary{
  background:var(--cs-primary);
  border-color:var(--cs-primary);
  font-weight:800;
}
.site-header .btn.btn-primary:hover{
  filter:brightness(1.05);
}

/* =========================
   Brand mark
========================= */
.brand-mark{
  width:28px; height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;

  /* su header scuro */
  border:1px solid var(--cs-border-dark);
  background:rgba(255,255,255,.08);
}
.brand-svg{
  width:20px; height:20px;
  color:rgba(255,255,255,.92);
}

/* =========================
   Language switch (dark header)
========================= */
.lang-switch{display:flex; align-items:center;}

.lang-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid var(--cs-border-dark);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-weight:700;
  font-size:.85rem;
  color:var(--cs-text-dark);
}
.lang-btn:hover{ background:rgba(255,255,255,.14); }

.lang-caret{
  width:0;height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid rgba(255,255,255,.75);
}

/* =========================
   Hero + background svg
========================= */
.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#fafafa 100%);
}

.hero-bg{
  position:absolute;
  inset:0;
  pointer-events:none;

  /* colore decorazione */
  color: rgba(29,78,216,1); /* match cs-primary */
}

.hero-bg svg{width:100%; height:100%;}

/* =========================
   Cards
========================= */
.hero-card{
  border:1px solid var(--cs-border);
  border-radius:var(--cs-radius);
  background:#fff;
  box-shadow:0 10px 30px rgba(17,24,39,.06);
}

.icon-bubble{
  width:38px; height:38px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--cs-alt);
  border:1px solid var(--cs-border);
}

.icon-svg{
  width:20px; height:20px;
  color:rgba(17,24,39,.85);
}

/* =========================
   Sections
========================= */
.section{ border-top:1px solid rgba(17,24,39,.06); }
.section-alt{ background:var(--cs-alt); }

/* =========================
   Checklist
========================= */
.checklist{
  list-style:none;
  padding-left:0;
  margin:0 0 12px 0;
}
.checklist li{
  position:relative;
  padding-left:26px;
  margin:10px 0;
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0; top:0;
  color:rgba(17,24,39,.9);
  font-weight:800;
}

/* =========================
   CTA box
========================= */
.cta-box{
  border:1px solid var(--cs-border);
  border-radius:var(--cs-radius);
  background:#fff;
}

/* =========================
   Footer (dark + cards + form)
========================= */
.site-footer{
  background:var(--cs-footer);
  color:var(--cs-text-dark);
}

.site-footer .footer-title{
  color:var(--cs-text-dark);
  font-weight:800;
}

.site-footer .footer-muted{
  color:var(--cs-muted-dark);
}

.site-footer .footer-link{
  color:var(--cs-muted-dark);
  text-decoration:none;
}

.site-footer .footer-link:hover{
  color:var(--cs-text-dark);
  text-decoration:underline;
  text-underline-offset:4px;
}

/* card box nel footer */
.footer-card{
  border:1px solid var(--cs-border-dark);
  background:rgba(255,255,255,.06);
  border-radius:var(--cs-radius);
}

/* input footer */
.footer-input{
  background:rgba(255,255,255,.08);
  border:1px solid var(--cs-border-dark);
  color:var(--cs-text-dark);
}
.footer-input::placeholder{
  color:rgba(255,255,255,.55);
}
.footer-input:focus{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.26);
  box-shadow:none;
  color:var(--cs-text-dark);
}

/* checkbox in footer (Bootstrap) */
.site-footer .form-check-input{
  background-color:rgba(255,255,255,.08);
  border-color:var(--cs-border-dark);
}
.site-footer .form-check-input:checked{
  background-color:var(--cs-primary);
  border-color:var(--cs-primary);
}

/* =========================
   Small responsive tweak
========================= */
@media (max-width: 991.98px){
  .site-header .nav-link{
    padding:10px 12px;
  }
}

/* Logo header */
.site-logo{
  max-width:130px;
  height:auto;
  object-fit:contain;
  background:rgba(255,255,255,.9);
  padding:6px;
  border-radius:12px;
}
@media (max-width: 576px){
  .site-logo{
    max-width:90px;
    padding:4px;
  }
}
/* Servizi: card un filo più premium */
.service-card{
  border-radius: var(--cs-radius);
  overflow: hidden;
}
.service-illus{
  background: rgba(17,24,39,.02);
  border-bottom: 1px solid rgba(17,24,39,.06);
}
.hero-services .hero-bg{
  color: rgba(29,78,216,1);
}
