/*
 * BeastPick® — Plugin CSS
 * Allineato al Template Profilo CF v2 (BeastPick_Template_CF.html)
 * Design system: Archivo · palette dark · CSS variables
 * Versione: 2.0.0 · Marzo 2026
 * © BeastPick® · BeastPeak® · Tutti i diritti riservati
 */

/* ═══════════════════════════════════════════════════════
   IMPORT FONT ARCHIVO (design system v2)
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════
   TOKEN DESIGN — IDENTICI AL TEMPLATE CF v2
   ═══════════════════════════════════════════════════════ */
:root {
  --bg:         #0f1320;
  --bg2:        #141824;
  --card:       #1e2535;
  --card2:      #242a3a;
  --border:     rgba(255,255,255,.09);
  --teal:       #3ECFAB;
  --teal-lt:    rgba(62,207,171,.12);
  --teal-dim:   rgba(62,207,171,.25);
  --gold:       #F5A623;
  --gold-lt:    rgba(245,166,35,.12);
  --blue:       #2B82D9;
  --blue-lt:    rgba(43,130,217,.12);
  --ink:        #F7F8FC;
  --ink-s:      #C8CDD8;
  --ink-t:      #8A90A0;
  --r:          14px;
  --r-sm:       10px;
  --sans:       'Archivo', system-ui, -apple-system, sans-serif;
  --grad:       linear-gradient(135deg, #3ECFAB 0%, #2B82D9 100%);
  --grad-gold:  linear-gradient(180deg, #FFE566 0%, #FFB800 55%, #E07800 100%);
}

/* ═══════════════════════════════════════════════════════
   RESET SCOPED — solo dentro il plugin
   ═══════════════════════════════════════════════════════ */
.bp-plugin *,
.bp-plugin *::before,
.bp-plugin *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.bp-plugin {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   TOPBAR — sticky brand + badge
   ═══════════════════════════════════════════════════════ */
.bp-plugin .topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

.bp-plugin .brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.bp-plugin .brand em {
  color: var(--teal);
  font-style: normal;
}

.bp-plugin .bp-badge {
  background: linear-gradient(90deg, #F5A623, #FFD060, #F5A623);
  background-size: 200% auto;
  color: #0f1320;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(245,166,35,.55), 0 2px 8px rgba(0,0,0,.3);
  animation: bp-goldshine 2.5s linear infinite;
}

@keyframes bp-goldshine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ═══════════════════════════════════════════════════════
   HERO — foto, nome, pills, CTA box
   ═══════════════════════════════════════════════════════ */
.bp-plugin .hero {
  background: linear-gradient(160deg, #0a0f1e 0%, #111827 60%, #141824 100%);
  padding: 28px 18px 0;
  border-bottom: 1px solid var(--border);
}

.bp-plugin .hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.bp-plugin .hero-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

/* Foto profilo */
.bp-plugin .photo-wrap { position: relative; flex-shrink: 0; }

.bp-plugin .photo-wrap img,
.bp-plugin .photo-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2.5px solid var(--teal);
  display: block;
}

.bp-plugin .photo-initials {
  display: none;
  background: linear-gradient(135deg, #1a2a4a, #243060);
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--teal);
}

.bp-plugin .photo-verified {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--teal);
  color: #0f1320;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  border: 2px solid var(--bg2);
}

.bp-plugin .hero-text { flex: 1; min-width: 0; }

.bp-plugin .hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 5px;
}

.bp-plugin .hero-name {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.bp-plugin .hero-rete {
  font-size: 12px;
  color: var(--ink-t);
  margin-top: 4px;
}

/* Registro pills */
.bp-plugin .reg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.bp-plugin .rpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-s);
  letter-spacing: .03em;
}

.bp-plugin .rpill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Competenze chips */
.bp-plugin .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.bp-plugin .chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink-s);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .02em;
}

/* CTA box prenotazione */
.bp-plugin .cta-box {
  background: rgba(62,207,171,.07);
  border: 1px solid var(--teal-dim);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.bp-plugin .cta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.bp-plugin .cta-sub {
  font-size: 11px;
  color: var(--ink-t);
  margin-top: 2px;
}

.bp-plugin .slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.bp-plugin .slot {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--ink-s);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--sans);
}

.bp-plugin .slot:hover,
.bp-plugin .slot.active {
  background: var(--teal-lt);
  border-color: var(--teal);
  color: var(--teal);
}

/* Pulsante prenota — CTA primaria in blue (NON teal) */
.bp-plugin .btn-book {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 24px;
  letter-spacing: .01em;
  transition: filter .2s;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  width: 100%;
}

.bp-plugin .btn-book:hover { filter: brightness(1.1); }

@keyframes bp-shine {
  0%       { left: -100%; }
  60%, 100% { left: 160%; }
}

.bp-plugin .btn-book::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: bp-shine 2.8s ease-in-out infinite;
}

.bp-plugin .btn-book-outline {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--ink-s);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 24px;
  transition: all .2s;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

.bp-plugin .btn-book-outline:hover {
  border-color: var(--ink-s);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════
   TRUST BAR — badge OCF, certificazioni
   ═══════════════════════════════════════════════════════ */
.bp-plugin .trust {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 12px 8px;
}

.bp-plugin .ti {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 55px;
}

.bp-plugin .ti-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
}

.bp-plugin .ti-label {
  font-size: 8px;
  color: var(--ink-t);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   SCORE SECTION — montagna SVG, numero animato, barre
   ═══════════════════════════════════════════════════════ */
.bp-plugin .score-section {
  background: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
  padding: 28px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.bp-plugin .score-label {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-t);
  margin-bottom: 16px;
}

.bp-plugin .mountain-wrap {
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.bp-plugin .mountain-wrap svg { display: block; width: 100%; }

.bp-plugin .score-num-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 4px;
}

.bp-plugin .score-big {
  font-size: clamp(48px, 14vw, 64px);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bp-plugin .score-denom {
  font-size: 18px;
  color: rgba(255,255,255,.25);
  margin-bottom: 8px;
}

.bp-plugin .score-sub {
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-bottom: 22px;
}

/* Barre score */
.bp-plugin .bars {
  width: 100%;
  max-width: 360px;
}

.bp-plugin .bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.bp-plugin .bl {
  font-size: 10px;
  color: var(--ink-t);
  min-width: 82px;
  font-weight: 500;
}

.bp-plugin .bb {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
}

.bp-plugin .bb-fill {
  height: 100%;
  border-radius: 3px;
  /* colore specifico per pillar passato inline (istruzione=blue, seniority=gold, social=teal) */
}

.bp-plugin .bv {
  font-size: 10px;
  color: var(--ink-s);
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

.bp-plugin .pot-box {
  width: 100%;
  max-width: 360px;
  margin-top: 6px;
  text-align: center;
  padding: 8px 16px;
  background: rgba(245,166,35,.06);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: 24px;
  font-size: 11px;
  color: var(--ink-t);
}

.bp-plugin .pot-box strong { color: var(--gold); }

.bp-plugin .score-note {
  margin-top: 12px;
  width: 100%;
  max-width: 360px;
  font-size: 9px;
  color: rgba(255,255,255,.18);
  text-align: center;
  line-height: 1.7;
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════
   SEZIONI GENERICHE — section title, separatore
   ═══════════════════════════════════════════════════════ */
.bp-plugin .section {
  padding: 22px 18px;
  border-bottom: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.bp-plugin .st {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-t);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-plugin .st::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════
   CONTATTI — griglia 2col / 4col su tablet
   ═══════════════════════════════════════════════════════ */
.bp-plugin .contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.bp-plugin .cl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink-s);
  font-size: 12px;
  font-weight: 500;
  transition: all .2s;
}

.bp-plugin .cl:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-lt);
}

.bp-plugin .cl-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--card2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   INFO GRID — 3 celle dati operativi
   ═══════════════════════════════════════════════════════ */
.bp-plugin .info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.bp-plugin .ic {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 10px;
  text-align: center;
}

.bp-plugin .ic .ico { font-size: 20px; margin-bottom: 6px; }

.bp-plugin .ic .il {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-t);
  margin-bottom: 3px;
  font-weight: 700;
}

.bp-plugin .ic .iv {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════
   MATCH SCORE — 3 domande interattive
   ═══════════════════════════════════════════════════════ */
.bp-plugin .match-section {
  padding: 22px 18px;
  border-bottom: 1px solid var(--border);
}

.bp-plugin .match-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.bp-plugin .match-sub {
  font-size: 12px;
  color: var(--ink-t);
  margin-bottom: 18px;
}

.bp-plugin .match-q { margin-bottom: 16px; }

.bp-plugin .match-q-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-s);
  margin-bottom: 8px;
  display: block;
}

.bp-plugin .match-opts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.bp-plugin .mopt {
  padding: 7px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-s);
  cursor: pointer;
  font-family: var(--sans);
  transition: all .18s;
}

.bp-plugin .mopt:hover { border-color: var(--teal); color: var(--teal); }
.bp-plugin .mopt.sel   { background: var(--teal-lt); border-color: var(--teal); color: var(--teal); }

.bp-plugin .match-result {
  display: none;
  margin-top: 18px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.bp-plugin .match-result.show { display: block; }

.bp-plugin .match-pct {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.bp-plugin .match-bar-wrap {
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.bp-plugin .match-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

.bp-plugin .match-msg {
  font-size: 12px;
  color: var(--ink-s);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════
   REVIEWS — stelle, Google CTA
   ═══════════════════════════════════════════════════════ */
.bp-plugin .reviews-section {
  padding: 22px 18px;
  border-bottom: 1px solid var(--border);
}

.bp-plugin .reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bp-plugin .gmb-link {
  font-size: 10px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.bp-plugin .no-reviews {
  text-align: center;
  padding: 22px 16px;
  background: var(--card);
  border: 1.5px dashed var(--border);
  border-radius: var(--r);
}

.bp-plugin .no-reviews p {
  font-size: 12px;
  color: var(--ink-t);
  line-height: 1.6;
}

.bp-plugin .nr-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--teal);
  padding: 5px 14px;
  border-radius: 20px;
  transition: background .2s;
}

.bp-plugin .nr-cta:hover { background: var(--teal-lt); }

/* ═══════════════════════════════════════════════════════
   TIMELINE CARRIERA — grid 3 colonne
   ═══════════════════════════════════════════════════════ */
.bp-plugin .tl { display: flex; flex-direction: column; }

.bp-plugin .tli {
  display: grid;
  grid-template-columns: 58px 18px 1fr;
  gap: 0 10px;
  padding-bottom: 18px;
  position: relative;
}

.bp-plugin .tli:last-child { padding-bottom: 0; }

.bp-plugin .tli:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 67px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(43,130,217,.4), rgba(62,207,171,.05));
}

.bp-plugin .tly {
  font-size: 9px;
  color: var(--blue);
  font-weight: 700;
  text-align: right;
  padding-top: 2px;
  line-height: 1.4;
}

.bp-plugin .tld-wrap {
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.bp-plugin .tld {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 0 0 3px var(--bg2), 0 0 0 4px rgba(43,130,217,.25);
}

.bp-plugin .tl-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color .2s;
}

.bp-plugin .tl-body:hover { border-color: var(--teal-dim); }

.bp-plugin .tcr {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.bp-plugin .tco {
  font-size: 11px;
  color: var(--ink-t);
  margin-top: 2px;
}

.bp-plugin .tl-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   REGISTRI — OCF, RUI, certificazioni
   ═══════════════════════════════════════════════════════ */
.bp-plugin .reg-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bp-plugin .reg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  transition: border-color .2s;
}

.bp-plugin .reg-card:hover { border-color: var(--teal-dim); }

.bp-plugin .reg-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bp-plugin .reg-ico span {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
}

.bp-plugin .reg-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.bp-plugin .reg-detail {
  font-size: 10px;
  color: var(--ink-t);
  margin-top: 2px;
  line-height: 1.4;
}

.bp-plugin .reg-num {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
  letter-spacing: .03em;
}

/* Colori per stato registro */
.bp-plugin .reg-num--active  { background: rgba(62,207,171,.15);  color: var(--teal); }
.bp-plugin .reg-num--warning { background: rgba(245,166,35,.15);  color: var(--gold); }
.bp-plugin .reg-num--alert   { background: rgba(239,68,68,.15);   color: #EF4444; }

/* ═══════════════════════════════════════════════════════
   SPECIALIZZAZIONI — tag cloud
   ═══════════════════════════════════════════════════════ */
.bp-plugin .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bp-plugin .tag {
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--ink-s);
  transition: all .18s;
}

.bp-plugin .tag:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ═══════════════════════════════════════════════════════
   FOOTER CTA — dark gradient, call to action grande
   ═══════════════════════════════════════════════════════ */
.bp-plugin .footer-cta {
  background: linear-gradient(160deg, #0a0f1e 0%, #111827 100%);
  padding: 30px 18px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.bp-plugin .footer-cta h2 {
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.bp-plugin .footer-cta p {
  font-size: 12px;
  color: var(--ink-t);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER COPYRIGHT
   ═══════════════════════════════════════════════════════ */
.bp-plugin .footer {
  background: var(--bg2);
  padding: 14px 18px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.bp-plugin .footer p {
  font-size: 9px;
  color: rgba(255,255,255,.2);
  line-height: 1.9;
}

.bp-plugin .footer .fw {
  color: var(--teal);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   LAYOUT DESKTOP — hero / score affiancati
   ═══════════════════════════════════════════════════════ */
.bp-plugin .layout-hero { width: 100%; }

/* ═══════════════════════════════════════════════════════
   DISTANZA — badge accessibilità geografica
   ═══════════════════════════════════════════════════════ */
.bp-plugin .dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.bp-plugin .dist-badge--near     { background: rgba(62,207,171,.12);  color: var(--teal); }
.bp-plugin .dist-badge--reachable { background: rgba(245,166,35,.12); color: var(--gold); }
.bp-plugin .dist-badge--remote   { background: rgba(239,68,68,.12);   color: #EF4444; }

/* ═══════════════════════════════════════════════════════
   SCORE CARDS RAPPORTO FORMALE — tabella comparativa
   ═══════════════════════════════════════════════════════ */
.bp-plugin .report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.bp-plugin .report-table th {
  background: rgba(255,255,255,.04);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-t);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.bp-plugin .report-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-s);
  vertical-align: middle;
}

.bp-plugin .report-table tr:last-child td { border-bottom: none; }

.bp-plugin .report-table tr:hover td { background: rgba(255,255,255,.02); }

.bp-plugin .report-table .score-val {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  color: var(--teal);
}

/* ═══════════════════════════════════════════════════════
   LOADING / SKELETON — stato caricamento
   ═══════════════════════════════════════════════════════ */
@keyframes bp-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.bp-plugin .skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.08) 50%,
    rgba(255,255,255,.04) 75%
  );
  background-size: 400px 100%;
  animation: bp-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.bp-plugin .skeleton--line  { height: 12px; margin-bottom: 8px; }
.bp-plugin .skeleton--title { height: 20px; width: 60%; margin-bottom: 12px; }
.bp-plugin .skeleton--avatar { width: 72px; height: 72px; border-radius: 50%; }

/* ═══════════════════════════════════════════════════════
   ANIMAZIONI SCORE — attivate da JS dopo 600ms
   ═══════════════════════════════════════════════════════ */
@keyframes bp-count-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bp-plugin .score-big.animated {
  animation: bp-count-up .4s ease both;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (min-width: 540px) {
  .bp-plugin .hero { padding: 36px 24px 0; }
  .bp-plugin .section,
  .bp-plugin .match-section,
  .bp-plugin .reviews-section { padding: 24px; }
  .bp-plugin .contacts-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 720px) {
  .bp-plugin .layout-hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    max-width: 1040px;
    margin: 0 auto;
  }
  .bp-plugin .score-section {
    border-left: 1px solid var(--border);
    border-bottom: none;
    align-self: stretch;
    justify-content: center;
  }
  .bp-plugin .hero { border-bottom: none; }
}

@media (min-width: 1040px) {
  .bp-plugin .section { padding: 28px 24px; }
  .bp-plugin .info-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .bp-plugin .info-grid { grid-template-columns: 1fr 1fr; }
  .bp-plugin .contacts-grid { grid-template-columns: 1fr; }
  .bp-plugin .tli { grid-template-columns: 42px 14px 1fr; }
  .bp-plugin .bl  { min-width: 64px; font-size: 9px; }
}

/* ═══════════════════════════════════════════════════════
   ACCESSIBILITÀ
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .bp-plugin *,
  .bp-plugin *::before,
  .bp-plugin *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════
   FORM + GUIDA CONTESTUALE IPP — v8.5.1
   Un solo messaggio operativo per stato del percorso.
   ═══════════════════════════════════════════════════════ */
#cft-wrap {
  --bp-cyan: #3fffd0;
  --bp-electric: #3694ff;
  --bp-violet: #9d72ff;
  --bp-coral: #ff667f;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0, rgba(63,255,208,.11), transparent 31%),
    radial-gradient(circle at 100% 22%, rgba(157,114,255,.1), transparent 34%),
    #101a31;
  color: var(--ink);
}

#cft-wrap::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--bp-cyan), var(--bp-electric), var(--bp-violet), var(--bp-coral));
  background-size: 220% 100%;
  animation: bpIppSpectrum 5s linear infinite;
}

#cft-wrap .bp-tool-form-head {
  padding: 30px 28px 20px;
  text-align: center;
}

#cft-wrap .bp-tool-form-head__kicker {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(63,255,208,.34);
  border-radius: 999px;
  background: rgba(63,255,208,.09);
  color: var(--bp-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#cft-wrap .bp-tool-form-head__title {
  margin-top: 13px;
  color: #fff;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
}

#cft-wrap .bp-tool-form-head__sub {
  max-width: 620px;
  margin: 10px auto 0;
  color: #cbd5e5;
  font: 13px/1.65 var(--sans);
}

#cft-wrap .bp-tool-form-body { padding: 20px 28px 28px; }

#cft-wrap .bp-required-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #dce5f3;
  font-size: 11px;
  font-weight: 700;
}

#cft-wrap .bp-required-note span {
  color: var(--bp-coral);
  font-size: 9px;
  filter: drop-shadow(0 0 6px rgba(255,102,127,.7));
}

#cft-wrap .bp-cf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#cft-wrap .bp-cf-field {
  position: relative;
  min-width: 0;
  padding: 16px 16px 15px 58px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
  animation: bpIppFieldIn .45s both;
}

#cft-wrap .bp-cf-field:nth-child(2) { animation-delay: .06s; }
#cft-wrap .bp-cf-field:nth-child(3) { animation-delay: .12s; }
#cft-wrap .bp-cf-field:nth-child(4) { animation-delay: .18s; }

#cft-wrap .bp-cf-field::before {
  content: attr(data-field-number);
  position: absolute;
  top: 15px;
  left: 15px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bp-cyan), var(--bp-electric));
  box-shadow: 0 7px 18px rgba(54,148,255,.25);
  color: #071221;
  font-size: 12px;
  font-weight: 900;
}

#cft-wrap .bp-cf-field:nth-child(2)::before { background: linear-gradient(135deg, var(--bp-electric), var(--bp-violet)); color: #fff; }
#cft-wrap .bp-cf-field:nth-child(3)::before { background: linear-gradient(135deg, #ffd447, var(--bp-coral)); color: #291006; }
#cft-wrap .bp-cf-field:nth-child(4)::before { background: linear-gradient(135deg, var(--bp-violet), #ff73b5); color: #fff; }

#cft-wrap .bp-cf-field:focus-within {
  z-index: 1;
  border-color: var(--bp-cyan);
  background: rgba(63,255,208,.075);
  box-shadow: 0 0 0 3px rgba(63,255,208,.12), 0 14px 30px rgba(0,0,0,.2);
  transform: translateY(-2px);
}

#cft-wrap .bp-cf-field.has-value { border-color: rgba(63,255,208,.42); }

#cft-wrap .bp-cf-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

#cft-wrap .bp-cf-field label strong {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,102,127,.13);
  color: #ff91a4;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#cft-wrap .bp-cf-field--optional label strong {
  background: rgba(157,114,255,.15);
  color: #c6adff;
}

#cft-wrap .bp-field-help {
  min-height: 32px;
  margin: 5px 0 10px;
  color: #aeb9cc;
  font: 10px/1.5 var(--sans);
}

#cft-wrap .bp-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  outline: 0;
  background: #091326;
  color: #fff;
  font: 700 14px/1.2 var(--sans);
  transition: border-color .18s, box-shadow .18s, background .18s;
}

#cft-wrap .bp-input::placeholder { color: #68758a; font-weight: 600; }
#cft-wrap .bp-input:focus {
  border-color: var(--bp-cyan);
  background: #0b1830;
  box-shadow: 0 0 0 3px rgba(63,255,208,.12);
}

#cft-wrap select.bp-input {
  cursor: pointer;
  color-scheme: dark;
}

#cft-wrap .bp-tool-cta {
  position: relative;
  min-height: 58px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(105deg, var(--bp-cyan), var(--bp-electric) 48%, var(--bp-violet));
  background-size: 180% 100%;
  box-shadow: 0 14px 38px rgba(54,148,255,.32), 0 0 0 1px rgba(255,255,255,.13) inset;
  color: #06101f;
  cursor: pointer;
  font: 900 16px/1.15 var(--sans);
  letter-spacing: -.01em;
  animation: bpIppCtaGlow 2.8s ease-in-out infinite;
  transition: transform .18s, filter .18s, box-shadow .18s;
}

#cft-wrap .bp-tool-cta::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -25%;
  width: 22%;
  transform: skewX(-20deg);
  background: rgba(255,255,255,.42);
  animation: bpIppShine 3.4s ease-in-out infinite;
}

#cft-wrap .bp-tool-cta:hover { filter: brightness(1.08); transform: translateY(-2px); }
#cft-wrap .bp-tool-cta:active { transform: translateY(0) scale(.99); }

@keyframes bpIppSpectrum { to { background-position: 220% 0; } }
@keyframes bpIppFieldIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bpIppCtaGlow { 0%,100% { box-shadow: 0 12px 32px rgba(54,148,255,.28); } 50% { box-shadow: 0 16px 44px rgba(63,255,208,.34); } }
@keyframes bpIppShine { 0%,55% { left: -28%; } 80%,100% { left: 118%; } }

#cft-wrap .bp-ipp-guide {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 20px 4px;
  padding: 16px;
  border: 1px solid rgba(62, 207, 171, .24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(62, 207, 171, .09), rgba(43, 130, 217, .07));
}

#cft-wrap .bp-ipp-guide__avatar {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 0 0 5px rgba(62, 207, 171, .08), 0 10px 26px rgba(43, 130, 217, .22);
  color: #061020;
  font: 900 14px/1 var(--sans);
  letter-spacing: -.02em;
  animation: bpIppAvatar 2.8s ease-in-out infinite;
}

@keyframes bpIppAvatar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

#cft-wrap .bp-ipp-guide__avatar::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid #141e35;
  border-radius: 50%;
  background: var(--gold);
}

#cft-wrap .bp-ipp-guide__label {
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#cft-wrap .bp-ipp-guide__title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

#cft-wrap .bp-ipp-guide__text {
  margin: 5px 0 12px;
  color: var(--ink-t);
  font: 12px/1.55 var(--sans);
}

#cft-wrap .bp-ipp-guide__progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

#cft-wrap .bp-ipp-guide__progress span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--ink-t);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

#cft-wrap .bp-ipp-guide__progress b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: var(--ink-t);
  font-size: 9px;
}

#cft-wrap .bp-ipp-guide__progress .is-active { color: var(--ink); }
#cft-wrap .bp-ipp-guide__progress .is-active b {
  border-color: var(--teal);
  background: var(--teal);
  color: #061020;
}
#cft-wrap .bp-ipp-guide__progress .is-complete b {
  border-color: rgba(62, 207, 171, .45);
  color: var(--teal);
}

@media (max-width: 560px) {
  #cft-wrap .bp-tool-form-head { padding: 25px 14px 17px; }
  #cft-wrap .bp-tool-form-head__sub { font-size: 12px; }
  #cft-wrap .bp-tool-form-body { padding: 14px 10px 20px; }
  #cft-wrap .bp-cf-form-grid { grid-template-columns: 1fr; gap: 10px; }
  #cft-wrap .bp-cf-field { padding: 13px 12px 13px 52px; border-radius: 13px; }
  #cft-wrap .bp-cf-field::before { top: 13px; left: 12px; }
  #cft-wrap .bp-field-help { min-height: 0; }
  #cft-wrap .bp-input { min-height: 51px; font-size: 16px; }
  #cft-wrap .bp-ipp-guide {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    margin: 0 12px 2px;
    padding: 14px 12px;
  }
  #cft-wrap .bp-ipp-guide__avatar {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }
  #cft-wrap .bp-ipp-guide__progress {
    grid-template-columns: repeat(4, 1fr);
  }
  #cft-wrap .bp-ipp-guide__progress span {
    flex-direction: column;
    gap: 3px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cft-wrap,
  #cft-wrap *,
  #cft-wrap *::before,
  #cft-wrap *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.bp-plugin :focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════
   © BeastPick® · BeastPeak® · 2026
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   CHECK SOCIAL COMPLEMENTARE — INSTAGRAM  (v8.1.0)
   ───────────────────────────────────────────────────────
   Elemento informativo. Instagram NON è una dimensione IPP
   e non assegna punti: lo stile è volutamente sobrio.
   • scoped: #cft-wrap · .bp-plugin  (nessuna modifica a :root)
   • token esistenti: teal · blue · gold · ink · border
   • nessun colore semaforico, nessun gradiente social
   • nessuna dipendenza dal tema Extendable
   ═══════════════════════════════════════════════════════ */

#cft-wrap .bp-ig-note,
#cft-wrap .cft-ig-note,
.bp-plugin .bp-ig-note,
.bp-plugin .cft-ig-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal-dim);
  border-radius: var(--r-sm);
  background: var(--blue-lt);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-t);
}

#cft-wrap .bp-ig-note strong,
#cft-wrap .cft-ig-note strong,
.bp-plugin .bp-ig-note strong,
.bp-plugin .cft-ig-note strong {
  color: var(--ink-s);
  font-weight: 700;
}

#cft-wrap .cft-ig-note__k,
.bp-plugin .cft-ig-note__k {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Badge "7 dimensioni IPP + controlli complementari" */
#cft-wrap .cft-scope-badge,
.bp-plugin .cft-scope-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--gold-lt);
  border-radius: 999px;
  background: var(--gold-lt);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}

@media (max-width: 480px) {
  #cft-wrap .bp-ig-note,
  #cft-wrap .cft-ig-note,
  .bp-plugin .bp-ig-note,
  .bp-plugin .cft-ig-note {
    font-size: 11px;
    padding: 10px 12px;
  }
  #cft-wrap .cft-scope-badge,
  .bp-plugin .cft-scope-badge {
    font-size: 9px;
    letter-spacing: .06em;
    white-space: normal;
    border-radius: var(--r-sm);
  }
}
