/* =========================================================
   DomusBet – Footer desktop (1e) + elementi flottanti
   Estratto dal mockup "DomusBet - Header e Footer"
   ========================================================= */

.elementi-footer:has(.cg-footer12){
	max-height: unset;
}

.cg-footer12 {
  --cg-footer12-bg: #15171B;
  --cg-footer12-surface: #1E2026;
  --cg-footer12-border: #2A2D34;
  --cg-footer12-text: #C9CBD1;
  --cg-footer12-muted: #9A9DA6;
  --cg-footer12-dim: #71747D;
  --cg-footer12-red: #E5484D;
  --cg-footer12-brand: #C8102E;
  --cg-footer12-white: #fff;

  position: relative;
  overflow: hidden;
  background: var(--cg-footer12-bg);
  color: var(--cg-footer12-text);
}
.cg-footer12 *,
.cg-footer12 *::before,
.cg-footer12 *::after { box-sizing: border-box; }
.cg-footer12 a { color: inherit; text-decoration: none; }

/* contenitore centrato (nel mockup il footer è largo 1440px) */
.cg-footer12__inner { max-width: 1440px; margin: 0 auto; }

/* ---------- Parte alta: brand + colonne link ---------- */
.cg-footer12__top {
  padding: 56px 64px 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
}

.cg-footer12__brand { display: flex; flex-direction: column; gap: 22px; }

.cg-footer12__logo {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
}
.cg-footer12__logo-text {
  font-weight: 800;
  font-size: 40px;
  line-height: 0.9;
  color: var(--cg-footer12-white);
}
.cg-footer12__logo-text em { color: var(--cg-footer12-red); font-style: italic; }
.cg-footer12__flag {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
}
.cg-footer12__flag span:nth-child(1) { background: #009246; }
.cg-footer12__flag span:nth-child(2) { background: #fff; }
.cg-footer12__flag span:nth-child(3) { background: #CE2B37; }

.cg-footer12__claim {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cg-footer12-muted);
  text-wrap: pretty;
}

/* box app */
.cg-footer12__app {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--cg-footer12-surface);
  border: 1px solid var(--cg-footer12-border);
}
.cg-footer12__app-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: var(--cg-footer12-white);
}
.cg-footer12__app-icon em { color: var(--cg-footer12-red); font-style: normal; }
.cg-footer12__app-body { display: flex; flex-direction: column; gap: 8px; }
.cg-footer12__app-title { font-weight: 700; font-size: 14px; color: var(--cg-footer12-white); }
.cg-footer12__stores { display: flex; gap: 6px; }
.cg-footer12__store {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--cg-footer12-white);
  color: var(--cg-footer12-bg) !important;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  transition: background .15s;
}
.cg-footer12__store:hover { background: #E4E4E7; }

/* telegram */
.cg-footer12__social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--cg-footer12-white) !important;
}
.cg-footer12__social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #229ED9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* colonne link */
.cg-footer12__cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
}
.cg-footer12__col { display: flex; flex-direction: column; gap: 14px; }
.cg-footer12__col-title {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--cg-footer12-white);
}
.cg-footer12__links { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.cg-footer12__links a { font-size: 14px; color: var(--cg-footer12-muted); transition: color .15s; }
.cg-footer12__links a:hover { color: var(--cg-footer12-white); }

/* ---------- Sicurezza e responsabilità ---------- */
.cg-footer12__trust {
  margin: 0 64px;
  padding: 16px 0;
  border-top: 1px solid var(--cg-footer12-border);
  display: flex;
  align-items: center;
  gap: 28px;
}
.cg-footer12__trust-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--cg-footer12-white);
}
.cg-footer12__badges { display: flex; gap: 10px; align-items: center; }
.cg-footer12__badge {
  height: 52px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--cg-footer12-surface);
  border: 1px solid var(--cg-footer12-border);
  display: flex;
  align-items: center;
  font-weight: 800;
}
.cg-footer12__badge img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.cg-footer12__badge--adm { color: #1B3C8C; font-size: 18px; letter-spacing: 0.04em; }
.cg-footer12__badge--agcm { color: var(--cg-footer12-bg); gap: 8px; font-size: 15px; }
.cg-footer12__badge--agcm b { color: #009246; font-weight: 800; }
.cg-footer12__badge--agcm small { font-size: 10px; font-weight: 600; line-height: 1.1; color: #52545C; }
.cg-footer12__badge--18 {
  width: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 2.5px solid var(--cg-footer12-red);
  color: var(--cg-footer12-white);
  justify-content: center;
  font-size: 14px;
}

/* avviso */
.cg-footer12__warning {
  margin: 0 64px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--cg-footer12-surface);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--cg-footer12-white);
}
.cg-footer12__warning::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cg-footer12-red);
  flex-shrink: 0;
}

/* ---------- Metodi di pagamento ---------- */
.cg-footer12__payments-bar { margin-top: 18px; background: var(--cg-footer12-surface); }
.cg-footer12__payments {
  padding: 16px 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cg-footer12__payments-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cg-footer12-dim);
  margin-right: 8px;
}
.cg-footer12__pay {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--cg-footer12-white);
  color: var(--cg-footer12-bg);
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 13px;
  text-transform: capitalize;
}

/* ---------- Legal ---------- */
.cg-footer12__legal-bar { border-top: 1px solid var(--cg-footer12-border); }
.cg-footer12__legal {
  padding: 12px 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--cg-footer12-dim);
}
.cg-footer12__legal-text { flex: 1; text-wrap: pretty; }

/* =========================================================
   Elementi flottanti (fixed bottom-right)
   ========================================================= */
/* posizionamento gestito da .elementi-footer / .tasti-bottom (exa.css) */
.cg-footer12-float {
  gap: 12px;
  padding: 0 24px 12px;
}
.cg-footer12-float button { cursor: pointer; border: 0; transition: background .15s, color .15s; }
.cg-footer12-float__top {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #15171B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .3);
}
.cg-footer12-float__top:hover { background: #15171B; color: #fff; }
.cg-footer12-float__chat,
.cg-footer12-float__button {
  height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 26px;
  background: var(--footer-btn-bg-color);
  color: var(--footer-btn-text-color);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .3);
}
.cg-footer12-float__chat:hover,
.cg-footer12-float__button:hover { filter: brightness(.85); }
.cg-footer12-float__button,
.cg-footer12-float__button:hover { color: var(--footer-btn-text-color); text-decoration: none; }
.cg-footer12-float__button .cg-footer-desktop-icon { width: 20px; height: 20px; flex-shrink: 0; }
.cg-footer12-float__button .cg-footer-desktop-icon:not([style]) { display: none; }
.cg-footer12-float__button .cg-footer-desktop-text { margin: 0; }
.cg-footer12-float__online { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }