/* BBManager Camps — sito vetrina.
 * Struttura ripresa dai siti vetrina Runager/CBros; palette dal logo BBManager Camps:
 * blu (tinta chiara del blu del logo, #6f93d6) come FILL, superfici charcoal, Poppins, tema scuro.
 */

:root {
  --brand-400: #6f93d6;
  --brand-500: #5a7fc4;
  --ink-900: #101010;
  --ink-800: #1d1d1d;
  --ink-700: #2a2a2a;
  --ink-600: #3d3d3d;
  --ink-400: #6b6b6b;
  --text: #f3f3f3;
  --text-muted: #a9a9a9;
  --radius: 20px;
  --maxw: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink-900);
  color: var(--text);
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-400); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: #fff; }

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--brand-400);
  color: var(--ink-900);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-primary { background: var(--brand-400); color: var(--ink-900); }
.btn-primary:hover { background: var(--brand-500); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ink-400); }
.btn-ghost:hover { background: var(--ink-800); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand { display: inline-flex; }
.brand img { height: 40px; width: auto; }
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a { color: var(--text-muted); font-size: .95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 40px);
  background: radial-gradient(circle at 15% 10%, #101a2b 0%, var(--ink-900) 55%);
}
/* Video di sfondo hero (come sui siti WordPress originali) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 12, 20, .88) 0%, rgba(10, 12, 20, .72) 55%, rgba(10, 12, 20, .5) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
@media (min-width: 940px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; }
}

/* Mock "settimana" nella hero, riempie lo spazio orizzontale su desktop */
.hero-visual { display: flex; }
.hv-card {
  width: 100%;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.hv-title {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--brand-400);
  font-weight: 600;
  margin: 0 0 14px;
}
.hv-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hv-days li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
}
.hv-days li span { color: var(--text-muted); font-size: .85rem; }
.hv-days li b { color: var(--text); font-weight: 500; font-size: .92rem; text-align: right; }
.hv-days li.hv-key { border-color: var(--brand-400); }
.hv-days li.hv-key b { color: #fff; font-weight: 600; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-400);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  max-width: 16ch;
}
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.section-alt { background: var(--ink-800); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section-lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-grid li {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 24px;
}
.section-alt .feature-grid li { background: var(--ink-900); }
.feature-grid h3 { font-size: 1.15rem; }
.feature-grid p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.steps li {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-400);
  color: var(--ink-900);
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Pricing ---------- */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.price-card {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.price-card--highlight { border-color: var(--brand-400); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--brand-400);
  color: var(--ink-900);
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0;
}
.price-name {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.price-value { font-size: 2.4rem; font-weight: 700; color: #fff; margin: 0; }
.price-value span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-sub { margin: 6px 0 0; color: var(--text-muted); font-size: .92rem; }

.price-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 32px;
}
.price-includes li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}
.price-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--brand-400);
  border-bottom: 2px solid var(--brand-400);
  transform: rotate(-45deg);
}
.price-fineprint { font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; }

.price-launch {
  margin: -12px 0 32px;
  padding: 14px 18px;
  border: 1px solid var(--brand-400);
  border-radius: 12px;
  background: rgba(111, 147, 214, .09);
  font-size: .95rem;
  color: var(--text);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  padding: 4px 20px;
}
.section-alt .faq details { background: var(--ink-900); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-400);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 40px);
  text-align: center;
  background: radial-gradient(circle at 85% 20%, #101a2b 0%, var(--ink-900) 60%);
}
.cta-band .section-inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--ink-700);
  padding: 40px clamp(16px, 4vw, 40px) 24px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-inner img { height: 34px; width: auto; }
.footer-tag { color: var(--text-muted); font-size: .9rem; margin: 10px 0 0; }
.footer-inner nav { display: flex; flex-direction: column; gap: 8px; }
.footer-inner nav a { color: var(--text-muted); font-size: .92rem; }
.footer-inner nav a:hover { color: var(--text); text-decoration: none; }
.footer-copy {
  max-width: var(--maxw);
  margin: 28px auto 0;
  color: var(--ink-400);
  font-size: .82rem;
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px); }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; color: #fff; }
.legal p, .legal li { color: var(--text-muted); }
.legal .draft-note {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text);
  font-size: .92rem;
}
.legal .back { display: inline-block; margin-top: 2.5em; }
.legal .brand { display: inline-flex; margin-bottom: 8px; }
.legal-updated { font-size: .85rem; color: var(--ink-400); margin: 0 0 24px; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: .4em; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: 5px;
  padding: 1px 5px;
}
.legal a { text-decoration: underline; }

@media (max-width: 620px) {
  .site-nav { display: none; }
  .site-header { justify-content: space-between; }
}

/* ---------- Servizi (hero card) ---------- */
.hv-days li.hv-key b { color: #fff; }

/* ---------- Portfolio ---------- */
.project-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.project-grid li {
  display: flex;
  flex-direction: column;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 20px 28px;
  background: #fff;
}
.project-logo--dark { background: #1d1d1d; }
.project-logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.project-tag {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand-400);
  margin: 0 0 6px;
}
.project-body h3 { font-size: 1.15rem; }
.project-body p { margin: 0 0 16px; color: var(--text-muted); font-size: .95rem; }
.project-body .project-link { margin-top: auto; font-weight: 600; font-size: .95rem; }

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.contact-card {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 600; }
.contact-card p { margin: 0; font-size: 1.15rem; color: #fff; }
.contact-card .social { display: flex; gap: 16px; flex-wrap: wrap; font-size: 1rem; }
.about-text { max-width: var(--maxw); }
.about-text p, .about-text h1 { max-width: 68ch; }
.about-text p { color: var(--text-muted); font-size: 1.05rem; }
.about-text p.eyebrow { color: var(--brand-400); font-size: .8rem; }

/* ---------- Logo ---------- */
.brand img { height: 46px; width: auto; }
.footer-inner .brand img { height: 40px; width: auto; }
.section h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.project-link { color: var(--brand-400); }

/* ---------- Clienti ---------- */
.client-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.client-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 14px 18px;
  background: #000;
  border-radius: 16px;
}
.client-grid li.dark { background: #000; }
.client-grid img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Piani ---------- */
.price-cards .price-card { display: flex; flex-direction: column; }
.price-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.price-list li { padding-left: 24px; position: relative; color: var(--text-muted); font-size: .92rem; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand-400);
  border-bottom: 2px solid var(--brand-400);
  transform: rotate(-45deg);
}
.price-card .price-sub { margin-bottom: 0; }
.feature-group { margin-top: 44px; }
.feature-group:first-of-type { margin-top: 0; }
.feature-group > h3 { font-size: 1.05rem; color: var(--brand-400); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.pillars { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sub-nav-note { color: var(--text-muted); font-size: .9rem; }

/* ---------- Hero: logo del prodotto (al posto della card elenco) ---------- */
.hero-visual { align-items: center; justify-content: center; }
.hero-logo { width: 100%; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
@media (max-width: 939px) { .hero-visual { display: none; } }
