/* =====================================================
   FLAME HERO SYSTEM
   All overrides via compound selectors — zero !important
===================================================== */

/* ── BASE: dark-hero layout + components ──
   Service pages repeat this in their inline <style>.
   Pages without inline styles (chi-siamo, contatti) rely solely on these. */
section.dark-hero {
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
section.dark-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  pointer-events: none;
}
.dh-ticker {
  overflow: hidden;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.05);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.dh-ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: mheroTicker 28s linear infinite;
  padding: 9px 0;
}
.dh-ticker-track span {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  padding: 0 1.1rem;
}
.dh-dot { color: #0085ca; opacity: .6; padding: 0; }
.dh-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7.5rem 2.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .dh-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.dh-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.32);
  margin-bottom: 1.25rem;
}
.dh-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0085ca;
  box-shadow: 0 0 6px rgba(0,133,202,.6);
  flex-shrink: 0;
}
.dh-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,133,202,.12);
  border: 1px solid rgba(0,133,202,.28);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: #5cc8ff;
  margin-bottom: 1.5rem;
}
.dh-h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .95;
  margin-bottom: 1.75rem;
}
.dh-h1 span { color: #fff; display: block; }
.dh-h1 em { font-style: normal; color: #0085ca; display: block; }
.dh-feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dh-feat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
}
.dh-feat-list li::before {
  content: '';
  display: block;
  width: 16px; height: 16px; min-width: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230085ca' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.dh-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.dh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0085ca;
  color: #fff;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.dh-btn-primary:hover { background: #0070aa; transform: translateY(-1px); }
.dh-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.65);
  border-radius: 10px;
  padding: 13px 24px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  background: transparent;
}
.dh-btn-ghost:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.dh-trust-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.dh-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.dh-trust-item strong { color: rgba(255,255,255,.7); }
.dh-trust-sep { color: rgba(255,255,255,.15); }

/* ── SHARED: sg-visual (person photo + floating badges) ── */
.sg-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  align-self: flex-end;
}
.sg-person-wrap {
  position: relative;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  height: 440px;
  border: 1px solid rgba(255,255,255,.07);
  border-bottom: none;
}
.sg-person-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sg-person-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, #0e2038 0%, transparent 100%);
  z-index: 1;
}

/* Floating card A — top left (white metric) */
.sg-float-a {
  position: absolute;
  top: 1.75rem;
  left: -1.75rem;
  background: #fff;
  border-radius: 14px;
  padding: .875rem 1.125rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.sg-float-a-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #34d399;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.sg-float-a-label {
  font-size: .7rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1px;
}
.sg-float-a-val {
  font-size: .9375rem;
  font-weight: 800;
  color: #0f172a;
}

/* Floating card B — bottom right (dark stat) */
.sg-float-b {
  position: absolute;
  bottom: 3.5rem;
  right: -1.5rem;
  background: rgba(13,24,39,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: .875rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  backdrop-filter: blur(10px);
  z-index: 5;
  min-width: 120px;
}
.sg-float-b-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
}
.sg-float-b-key {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── SHARED: sg-feats strip (4-column below hero) ── */
.sg-feats {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.04);
  position: relative;
  z-index: 2;
}
.sg-feats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 800px) {
  .sg-feats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sg-feats-inner { grid-template-columns: 1fr 1fr; }
}
.sg-feat {
  padding: 1.25rem .875rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid rgba(255,255,255,.05);
}
.sg-feat:last-child { border-right: none; }
.sg-feat-icon {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 8px;
  background: rgba(0,133,202,.1);
  border: 1px solid rgba(0,133,202,.2);
  display: flex; align-items: center; justify-content: center;
  color: #5cc8ff;
  flex-shrink: 0;
}
.sg-feat-text strong {
  color: rgba(255,255,255,.85);
  display: block;
  font-size: .8125rem;
  font-weight: 600;
}
.sg-feat-text span {
  color: rgba(255,255,255,.38);
  font-size: .75rem;
}

/* Responsive: visual */
@media (max-width: 900px) {
  .sg-visual { max-width: 100%; }
  .sg-person-wrap { height: 320px; }
  .sg-float-a { left: 1rem; }
  .sg-float-b { right: 1rem; }
}


/* ══════════════════════════════════════════════════
   SERVICE PAGES — dark-hero overrides
   section.dark-hero (0,1,1) beats inline .dark-hero (0,1,0)
   .dark-hero .dh-* (0,2,x) beats inline .dh-* (0,1,x)
══════════════════════════════════════════════════ */

section.dark-hero {
  background: linear-gradient(160deg, #0d1827 0%, #0e2038 55%, #091629 100%);
}
section.dark-hero::before {
  width: 750px;
  height: 600px;
  background: radial-gradient(ellipse at 20% 30%, rgba(0,133,202,.18) 0%, transparent 60%);
}

/* hide the scrolling ticker */
.dark-hero .dh-ticker { display: none; }

/* green badge instead of blue */
.dark-hero .dh-badge {
  background: rgba(52,211,153,.08);
  border-color: rgba(52,211,153,.3);
  color: #34d399;
}

/* H1 — all white regardless of em/span colors in inline style */
.dark-hero .dh-h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.07;
}
.dark-hero .dh-h1 span,
.dark-hero .dh-h1 em { color: #fff; }

/* primary CTA: white button on dark bg */
.dark-hero .dh-btn-primary {
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}
.dark-hero .dh-btn-primary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ghost CTA: subtler */
.dark-hero .dh-btn-ghost { color: rgba(255,255,255,.55); }

/* layout: right column flushes to bottom */
.dark-hero .dh-inner {
  align-items: flex-end;
  padding-bottom: 0;
}
.dark-hero .dh-inner .dh-left-col { padding-bottom: 4.5rem; }


/* ══════════════════════════════════════════════════
   VPS PAGE — vps-dark-hero overrides
   section.vps-dark-hero (0,1,1) beats .vps-dark-hero (0,1,0)
   .vps-dark-hero .vps-* (0,2,x) beats .vps-* (0,1,x)
══════════════════════════════════════════════════ */

section.vps-dark-hero {
  background: linear-gradient(160deg, #0d1827 0%, #0e2038 55%, #091629 100%);
}

.vps-dark-hero .vps-hero-ticker { display: none; }

.vps-dark-hero .vps-offer-badge {
  background: rgba(52,211,153,.08);
  border-color: rgba(52,211,153,.3);
  color: #34d399;
}

.vps-dark-hero .vps-hero-h1 span,
.vps-dark-hero .vps-hero-h1 em { color: #fff; }

.vps-dark-hero .vps-btn-primary {
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}
.vps-dark-hero .vps-btn-primary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.vps-dark-hero .vps-btn-ghost { color: rgba(255,255,255,.55); }


/* ── Simplified SiteGround-style hero ── */
.dh-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 2rem;
}
.dh-price-simple {
  margin-top: 1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.35);
}
.dh-price-simple strong {
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

