/* ──────────────────────────────────────────────────────────
   Innovando Tech — Footer (4 colonne, full-width)
   - Full width, padding 40px alle colonne
   - Divider rosso dotted tra le colonne
   - Logo nero, niente forecast
   - Conserva nerd bullets/stile link
   ────────────────────────────────────────────────────────── */

/* Base */
.site-footer{
  position: relative;
  margin-top: clamp(32px, 6vw, 72px);
  background: #f6f7fb;              /* chiaro per logo nero */
  color: #0c0d10;
  border-top: 1px solid rgba(0,0,0,.08);
  overflow: clip;
}

/* Contenitore a tutta larghezza */
.footer__container{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(22px,4vw,36px) 0; /* padding verticale, orizzontale lo diamo alle colonne */
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr; /* 4 colonne */
  gap: 0; /* i divider definiscono il respiro */
}

/* Colonne */
.footer__col{
  padding: 0 40px;                  /* richiesto: 40px per colonna */
  display: grid;
  align-content: start;
  gap: 12px;
}

/* Divider rosso dotted tra colonne */
.footer__col + .footer__col{
  border-left: 1px dotted var(--brand, #da291c);
}

/* Logo */
.footer__logo img{ height: 28px; width: auto; display: block; }
.footer__logo .logo--dark{ display: block; }

/* Brand stack */
.footer__brand h4{ margin: 6px 0 4px; font-size: 1.05rem; }
.footer__brand p{ margin: 0 0 10px 0; opacity: .9; max-width: 60ch; }

/* Brand cards minimal */
.footer__brands-stack{ display: grid; gap: 12px; }
.brand-item{ display: grid; gap: 6px; }
.brand-item__title{ display: flex; align-items: center; gap: 8px; }
.brand-btn{
  text-decoration: none;
  padding: .35rem .55rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  color: inherit;
  background: rgba(0,0,0,.03);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.brand-btn:hover{
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--brand,#da291c) 30%, transparent);
  background: color-mix(in oklab, var(--brand,#da291c) 10%, transparent);
}
.brand-item__abstract{ margin: 0; opacity: .85; }

/* Titoli gruppo */
.footer__group-title{
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
  opacity: .9;
}

/* Nav lists (nerd bullets invariati) */
.footer__nav{ display:grid; gap: 8px; }
.footer__navlist{ list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.nerd-list li a{
  --badge-bg: color-mix(in oklab, var(--brand, #da291c) 18%, transparent);
  --badge-fg: currentColor;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: .35rem .45rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.nerd-list li a:hover{
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--brand,#da291c) 30%, transparent);
  background: color-mix(in oklab, var(--brand,#da291c) 10%, transparent);
}
.nerd-list li a span{
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-fg);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
}
/* Variante legal: badge più sobrio */
.nerd-list--legal li a{ --badge-bg: rgba(0,0,0,.06); }

/* Facts (col 4) */
.facts-list{ margin: 0; padding-left: 18px; display: grid; gap: 4px; opacity: .95; }

/* Firma */
.footer__signature{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.18), transparent);
  opacity: .8;
}

/* Bottom strip full-bleed */
.footer__bottom{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 40px;  /* allineato al padding delle colonne */
  font-size: .92rem;
  background: rgba(0,0,0,.05);
  color: inherit;
}
@media (max-width: 900px){
  .footer__bottom{ flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

/* Responsive grid: 2 colonne → 1 col */
@media (max-width: 1100px){
  .footer__container{
    grid-template-columns: 1fr 1fr;
  }
  /* ridisegna i divider: solo tra colonna pari */
  .footer__col{ border-left: none; }
  .footer__col:nth-child(2n+2){ border-left: 1px dotted var(--brand, #da291c); }
}
@media (max-width: 640px){
  .footer__container{
    grid-template-columns: 1fr;
  }
  .footer__col{ border-left: none; }
}

/* Scrollbar (barra laterale) rosso Innovando – già in pagina, ma la ripetiamo per sicurezza */
html{
  scrollbar-width: thin;
  scrollbar-color: var(--brand, #da291c) #e9ebf2;
}
::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: #e9ebf2; }
::-webkit-scrollbar-thumb{ background: var(--brand, #da291c); border-radius: 8px; border: 2px solid #e9ebf2; }
