/* ============================================================
 * Be-Boost · Sito Sostenibilità (prototipo set 2026)
 * Stesso design system del sito attuale (assets/colors_and_type.css),
 * scope ESG: accent verde, CTA gialla (firma cross-brand).
 * ============================================================ */
@import url("./assets/colors_and_type.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--fg-1);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section--tight { padding: 64px 0; }

/* ── Tipografia ─────────────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bb-warm-grey); margin: 0;
}
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--bb-warm-grey); }
.mono--caps { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
em, .it {
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  letter-spacing: 0; color: var(--bb-green-deep);
}
em.ink { color: inherit; }
.h-display { font-size: clamp(48px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.h-display--mid { font-size: clamp(40px, 5.2vw, 72px); }
.h-display--sm  { font-size: clamp(32px, 3.6vw, 48px); }
.lead { font-size: 17px; line-height: 1.65; color: var(--bb-warm-grey); max-width: 720px; }

/* ── Bottoni ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
  padding: 14px 24px; border-radius: 10px; border: 0; white-space: nowrap;
  transition: background 140ms ease, transform 80ms ease, color 140ms ease, border-color 140ms ease;
}
.btn--primary { background: var(--bb-yellow); color: var(--bb-ink); }
.btn--primary:hover { background: var(--bb-yellow-hover); }
.btn--primary:active { transform: scale(0.98); }
.btn--outline { background: transparent; border: 1.5px solid var(--bb-ink); color: var(--bb-ink); padding: 13px 22px; font-size: 14px; }
.btn--outline:hover { background: var(--bb-ink); color: var(--bb-cream); }
.btn--outline-light { background: transparent; border: 1.5px solid rgba(244,239,230,0.55); color: #f4efe6; padding: 13px 22px; font-size: 14px; }
.btn--outline-light:hover { border-color: #f4efe6; background: rgba(244,239,230,0.08); }
.btn--sm { padding: 10px 18px; font-size: 13px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--bg-divider); padding: 14px 0;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 24px; }
.brand-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bb-warm-grey); padding-left: 14px; border-left: 1px solid var(--bg-divider); white-space: nowrap;
}
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--bb-ink); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 140ms ease; }
.nav-link:hover, .nav-link.is-active { color: var(--bb-green-deep); border-bottom-color: currentColor; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--bg-divider); background: transparent;
  color: var(--bb-ink); border-radius: 10px; align-items: center; justify-content: center; padding: 0;
}
.nav-drawer {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 49;
  padding: 32px 24px 48px; overflow-y: auto;
}
.nav-drawer.is-open { display: block; }
.nav-drawer a.drawer-link { display: block; padding: 18px 0; border-bottom: 1px solid var(--bg-divider); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.nav-drawer .btn { margin-top: 32px; width: 100%; justify-content: center; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--bb-cream); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0.55; z-index: 0; }
.hero-fade { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(244,239,230,0.96) 0%, rgba(244,239,230,0.92) 45%, rgba(244,239,230,0.55) 75%, rgba(244,239,230,0.2) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 64px; max-width: 1320px; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-warm-grey); margin-bottom: 24px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; max-width: 860px; text-wrap: balance; }
.hero h1 em { color: inherit; }
.hero-lead { margin-top: 28px; font-size: 17px; line-height: 1.6; max-width: 620px; color: var(--bb-ink); }
.hero-lead em { color: inherit; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13.5px; line-height: 1.55; color: var(--bb-warm-grey); max-width: 560px; }

/* ── Premio strip ───────────────────────────────────────── */
.strip { background: var(--bb-card); border-top: 1px solid var(--bg-divider); border-bottom: 1px solid var(--bg-divider); }
.strip .container { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bb-yellow); color: var(--bb-ink);
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.badge--green { background: var(--bb-green); }
.strip-text { font-size: 14px; font-weight: 500; line-height: 1.5; }

/* ── Cards a 3 ──────────────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--bb-card); border: 1px solid var(--bg-divider); border-top: 3px solid var(--bb-green);
  border-radius: 16px; padding: 26px 24px; height: 100%;
}
.card .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bb-warm-grey); margin-bottom: 12px; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.card h3 em { color: inherit; }
.card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--bb-warm-grey); }
.card--lg h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.card--lg p { font-size: 15px; line-height: 1.65; margin-top: 12px; }

/* ── Academy band (sostituisce l'AI Check) ──────────────── */
.academy {
  background: linear-gradient(100deg, #141312 0%, #0e1a12 40%, #1f5a38 78%, #3a8c5c 100%);
  color: #fff;
}
.academy .container { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: center; }
.academy .eyebrow { color: var(--bb-yellow); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; }
.academy h2 { margin-top: 14px; color: #fff; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.academy h2 em { color: var(--bb-yellow); }
.academy p.body { margin-top: 18px; font-size: 16px; line-height: 1.65; color: rgba(244,239,230,0.82); max-width: 520px; }
.academy .meta { margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: rgba(244,239,230,0.72); }
.academy .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #000; box-shadow: 0 24px 60px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,230,0.6); }

/* ── Programma (sigla grande + tappe) ───────────────────── */
.sigla { margin-top: 10px; font-size: clamp(80px, 11vw, 150px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; }
.sigla span { color: var(--bb-green); }
.sigla-name { margin-top: 14px; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }
.rows { margin-top: 44px; border-top: 1px solid var(--bg-divider); }
.row { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--bg-divider); align-items: start; }
.row .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--bb-warm-grey); margin-bottom: 6px; }
.row h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.row p { font-size: 15.5px; line-height: 1.6; color: var(--bb-warm-grey); max-width: 680px; align-self: center; }
.row--sm h3 { font-size: 24px; }
.photo-band { margin-top: 64px; position: relative; height: 380px; overflow: hidden; }
.photo-band .img { position: absolute; inset: 0; background-size: cover; background-position: center 35%; }
.photo-band .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,18,0) 40%, rgba(20,19,18,0.55) 100%); }
.photo-band .container { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 24px; }
.photo-band .cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #f4efe6; }

/* ── Servizi (tre blocchi) ──────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.service { border-top: 1px solid var(--bg-divider); padding-top: 24px; display: flex; flex-direction: column; }
.service .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bb-warm-grey); margin-bottom: 14px; }
.service h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.18; }
.service h3 em { color: inherit; }
.service .body { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--bb-warm-grey); }
.service .who { margin-top: 10px; font-size: 14px; line-height: 1.55; font-weight: 600; }
.service .num { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--bg-divider); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bb-warm-grey); }

/* ── Proof ──────────────────────────────────────────────── */
.proof-head { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.proof-head .lead { font-size: 18px; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bg-divider); }
.logos div {
  padding: 32px 24px; border-bottom: 1px solid var(--bg-divider); border-right: 1px solid var(--bg-divider);
  font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.2;
}
.logos div:nth-child(4n) { border-right: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.stat { border-top: 1px solid var(--bg-divider); padding-top: 22px; }
.stat .num { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bb-warm-grey); }

/* ── Chiusura ───────────────────────────────────────────── */
.closing { border-top: 4px solid var(--bb-yellow); padding-top: 48px; }
.closing .lead { margin-top: 18px; max-width: 640px; }
.closing .btn { margin-top: 28px; }

/* ── Qualità (Chi siamo) ────────────────────────────────── */
.quality { background: var(--bb-card); border-top: 1px solid var(--bg-divider); border-bottom: 1px solid var(--bg-divider); }
.quality-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.quality-quote { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.4; margin-top: 24px; color: var(--bb-ink); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--bg-divider); }
.principle { padding: 22px 0 22px 0; border-bottom: 1px solid var(--bg-divider); padding-right: 28px; }
.principle .n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--bb-green-deep); margin-bottom: 8px; }
.principle h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.principle p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--bb-warm-grey); }
.doc-card {
  margin-top: 28px; display: flex; align-items: center; gap: 18px; background: var(--bb-bone);
  border: 1px solid var(--bg-divider); border-radius: 14px; padding: 18px 20px;
}
.doc-card .ico { width: 44px; height: 54px; border-radius: 6px; background: var(--bb-ink); color: var(--bb-yellow); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; font-weight: 700; flex: none; }
.doc-card b { display: block; font-size: 15px; }
.doc-card span { font-size: 13px; color: var(--bb-warm-grey); }
.signatures { margin-top: 28px; display: flex; gap: 40px; flex-wrap: wrap; }
.signatures b { display: block; font-size: 14px; }
.signatures span { font-size: 12.5px; color: var(--bb-warm-grey); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--bg-divider); }
.stripe { height: 4px; background: var(--bb-yellow); }
.footer-grid { padding-top: 72px; padding-bottom: 40px; }
.footer-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; align-items: flex-start; }
.footer-row img { height: 30px; }
.footer-addr { margin-top: 22px; color: var(--bb-warm-grey); font-size: 14px; line-height: 1.75; max-width: 340px; }
.footer-addr a { color: var(--bb-ink); }
.footer-award { margin-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.footer-award span { color: var(--bb-yellow-hover); }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--bb-warm-grey); font-size: 14px; transition: color 140ms ease; }
.footer-col a:hover { color: var(--bb-ink); }
.footer-col a.hl { color: var(--bb-ink); font-weight: 600; }
.social { margin-top: 28px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bg-divider); transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.social-row a:hover { background: var(--bb-ink); color: #fff; border-color: var(--bb-ink); }
.footer-bottom { border-top: 1px solid var(--bg-divider); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Reveal ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cards-3, .cards-2, .services, .stats { grid-template-columns: 1fr !important; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .proof-head { grid-template-columns: 1fr; gap: 20px; }
  .academy .container { grid-template-columns: 1fr; gap: 32px; }
  .quality-grid { grid-template-columns: 1fr; gap: 32px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos div:nth-child(4n) { border-right: 1px solid var(--bg-divider); }
  .logos div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section, .section--tight { padding: 48px 0; }
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-tag { display: none; }
  .brand img { height: 32px; }
  .hero .container { padding-top: 56px; padding-bottom: 40px; }
  .h-display { font-size: clamp(36px, 9vw, 56px); }
  .h-display--mid { font-size: clamp(30px, 7.5vw, 44px); }
  .h-display--sm { font-size: clamp(24px, 6vw, 34px); }
  .footer-row { grid-template-columns: 1fr; gap: 24px; }
  .principles { grid-template-columns: 1fr; }
  .stat .num { font-size: 40px; }
  .logos div { font-size: 20px; padding: 22px 16px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .strip .container { justify-content: flex-start; text-align: left; }
}

/* ── Video facade: anteprima cliccabile, player caricato al clic ── */
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 160ms ease, transform 400ms ease; }
.video-facade:hover img { opacity: 1; transform: scale(1.02); }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: var(--bb-yellow); color: var(--bb-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 160ms ease, background 140ms ease;
}
.video-play svg { margin-left: 4px; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.06); background: var(--bb-yellow-hover); }
.video-cap a { border-bottom: 1px solid currentColor; }
