/* =============================================
   BANDOLAB — Design System v3
   Headings: Plus Jakarta Sans | Body: DM Sans | Logo: Unbounded
   ============================================= */

/* Font caricati via <link> + preconnect nell'<head> di ogni pagina HTML (evita @import che è render-blocking e lento su Safari iOS) */

:root {
  --blu:        #002060;
  --blu-light:  #0a2d80;
  --verde:      #008F53;
  --verde-light:#00a85f;
  --giallo:     #FFC107;
  --giallo-dark:#d39e00;
  --grigio-bg:  #f4f7f6;
  --testo:      #1a2233;
  --testo-soft: #5a6070;
  --bianco:     #ffffff;
  --bordo:      #e2e8e6;
  --ombra:      0 2px 16px rgba(0,32,96,.07);
  --ombra-lg:   0 16px 48px rgba(0,32,96,.16);
  --radius:     12px;
  --radius-lg:  20px;
  --radius-sm:  6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--testo);
  background: var(--grigio-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── TIPOGRAFIA ── */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Arial Black', Impact, sans-serif;
  color: var(--blu);
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
p  { margin-bottom: 14px; }

/* ── BOTTONI ── */
.btn {
  display: inline-block;
  background: var(--giallo);
  color: var(--blu);
  padding: 15px 32px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  border: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--giallo-dark), 0 8px 28px rgba(255,193,7,.28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover {
  background: #ffd545;
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--giallo-dark), 0 14px 36px rgba(255,193,7,.38);
}
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--giallo-dark), 0 4px 12px rgba(255,193,7,.2); }
.btn-sm {
  padding: 10px 20px; font-size: .85rem;
  box-shadow: 0 3px 0 var(--giallo-dark), 0 6px 18px rgba(255,193,7,.2);
}
.btn-sm:hover { box-shadow: 0 5px 0 var(--giallo-dark), 0 10px 24px rgba(255,193,7,.3); }

.btn-outline {
  background: transparent; color: var(--bianco);
  border: 2px solid rgba(255,255,255,.35); box-shadow: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.7);
  box-shadow: none;
  transform: translateY(-2px);
}
.btn-outline:active { transform: translateY(0); }

/* ── HEADER ── */
header {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid rgba(226,232,230,.9);
  height: 70px;
  display: flex; align-items: center;
  transition: box-shadow .3s, border-color .3s;
}
header.scrolled {
  box-shadow: 0 4px 28px rgba(0,32,96,.1);
  border-bottom-color: transparent;
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo {
  font-family: 'Unbounded', 'Arial Black', Impact, sans-serif;
  font-size: 1.85rem; font-weight: 800;
  color: var(--verde); text-decoration: none;
  letter-spacing: -.02em; flex-shrink: 0;
}
.logo span { color: var(--blu); }

nav { display: flex; align-items: center; gap: 28px; }
nav a.nav-link {
  font-size: .88rem; font-weight: 600;
  color: var(--testo); text-decoration: none;
  opacity: .6; transition: opacity .2s;
  white-space: nowrap; position: relative;
}
nav a.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--verde); border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
nav a.nav-link:hover { opacity: 1; }
nav a.nav-link:hover::after { transform: scaleX(1); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--bianco); border-bottom: 1px solid var(--bordo); padding: 14px 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.trust-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--testo-soft); margin-right: 8px; }
.trust-badge {
  font-size: .7rem; font-weight: 800; color: var(--blu);
  border: 1.5px solid var(--bordo); border-radius: var(--radius-sm);
  padding: 4px 12px; letter-spacing: .07em;
  background: var(--grigio-bg);
  transition: border-color .2s, color .2s, background .2s;
}
.trust-badge:hover { border-color: var(--verde); color: var(--verde); background: rgba(0,143,83,.05); }

/* ── SEZIONI ── */
.section { padding: 96px 0; }
.section-alt { background: var(--bianco); }
.section-dark { background: var(--blu); }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--verde); margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: currentColor; border-radius: 1px;
  flex-shrink: 0;
}
.section-dark .section-eyebrow { color: var(--giallo); }
.section-dark h2 { color: var(--bianco); }
.section-sub { color: var(--testo-soft); font-size: 1.02rem; max-width: 580px; margin-bottom: 52px; line-height: 1.72; }
.section-dark .section-sub { color: rgba(255,255,255,.6); }

/* ── CARD ── */
.card { background: var(--bianco); border-radius: var(--radius); border: 1.5px solid var(--bordo); padding: 36px 30px; box-shadow: var(--ombra); }

/* ── GRID ── */
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ── TAG ── */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.tag-green  { background: rgba(0,143,83,.1);  color: var(--verde); }
.tag-blue   { background: rgba(0,32,96,.08);  color: var(--blu); }
.tag-yellow { background: rgba(255,193,7,.18); color: #8a6200; }

/* ── FOOTER ── */
footer { background: #010f3a; color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand .logo { display: block; margin-bottom: 14px; color: var(--bianco); }
.footer-brand .logo span { color: var(--verde); }
.footer-brand p { font-size: .85rem; line-height: 1.78; max-width: 220px; color: rgba(255,255,255,.4); }
.footer-col h4 {
  font-family: 'Plus Jakarta Sans', 'Arial Black', Impact, sans-serif; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: rgba(255,255,255,.85); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.42); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-col a:hover { color: var(--giallo); }
.footer-bottom {
  padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .78rem; color: rgba(255,255,255,.28);
}
.footer-bottom a { color: rgba(255,193,7,.75); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--giallo); }

/* ── UTILS ── */
.text-center { text-align: center; }
.flex-center  { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── IUBENDA BUTTONS OVERRIDE ── */
a.iubenda-black.iubenda-embed,
a.iubenda-white.iubenda-embed {
  font-family: 'DM Sans', sans-serif !important;
  font-size: .86rem !important;
  font-weight: 600 !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-family: 'Plus Jakarta Sans', 'Arial Black', Impact, sans-serif; padding-top: 60px; }
  header { position: fixed; top: 0; left: 0; right: 0; height: 60px; width: 100%; }
  header .container { gap: 12px; }
  nav { gap: 10px; }
  nav a.nav-link { display: none; }
  .btn-sm { padding: 9px 14px; font-size: .82rem; white-space: nowrap; }
  .section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
