  <style>
/* Posizionamento: regola l'altezza della tua navbar */
:root { --nav-h: 80px; }

/* Barra */
.risk-bar{
  position: fixed; top: var(--nav-h); left: 0; width: 100%; z-index: 40;
  background: #0b0d12;             /* bg-black */
  color: #facc15;               /* text-yellow-400 */
  border-top: 1px solid #eab308;/* border-yellow-500 */
  padding: 8px 0;               /* py-2 */
  overflow: hidden;
  font: 500 14px/1.4 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial;
}

/* Testo scorrevole */
.risk-marquee{
  display:inline-block;
  padding: 0 24px;              /* px-6 */
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

@keyframes marquee{
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}
:root{
  --nav-h: 72px;   /* tua navbar */
  --risk-h: 36px;  /* altezza stimata ticker (testo+padding) */
}

/* spingi il contenuto sotto nav + ticker */
main{ padding-top: calc(var(--nav-h) + var(--risk-h)); }

/* link di ancoraggio corretti quando clicchi dal menu */
section{ scroll-margin-top: calc(var(--nav-h) + var(--risk-h) + 12px); }


    :root{
      --bg: #0b0d12; /* dark base */
      --surface: #111522;
      --text: #e6e8ef;
      --muted: #a3acc2;
      --brand: #26c281; /* green */
      --brand-2: #3ca3ff; /* blue */
      --error: #ff6b6b;
      --shadow: 0 10px 30px rgba(0,0,0,.35);
      --radius: 16px;
    }
    :root.light{
      --bg: #f7f9fc;
      --surface: #ffffff;
      --text: #0e1320;
      --muted: #4a5568;
      --brand: #0bbf72;
      --brand-2: #157aff;
      --error: #e03131;
      --shadow: 0 10px 30px rgba(2,6,23,.12);
    }
    html,body{height:100%}
    *{box-sizing:border-box}
    body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial; background:var(--bg); color:var(--text); line-height:1.6;}

/* sostituisci la regola della navbar */
.site-navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70; /* sopra a tutto */
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  min-height: var(--nav-h);
}

/* se avevi 'header{ position:sticky ... }' eliminalo o lascialo inutilizzato */


    /* Layout */
    .container{width:min(1200px, 92%); margin-inline:auto}
    header{position:sticky; top:0; z-index:50; backdrop-filter:saturate(140%) blur(8px); background:color-mix(in oklab, var(--bg) 84%, transparent); border-bottom:1px solid color-mix(in oklab, var(--text) 12%, transparent)}
    .nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
    .brand{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.2px}
    .brand__logo{width:36px;height:36px;border-radius:10px; background:linear-gradient(135deg,var(--brand),var(--brand-2)); box-shadow:var(--shadow)}
    .nav__links{display:flex; gap:40px; align-items:center}
    .nav__links a{color:var(--text); text-decoration:none; opacity:.9}
    .nav__cta{padding:10px 14px; border-radius:10px; background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; text-decoration:none; font-weight:600; box-shadow:var(--shadow)}
    .theme-toggle{border:1px solid color-mix(in oklab, var(--text) 20%, transparent); background:transparent; color:var(--text); border-radius:10px; padding:8px 10px; cursor:pointer}

    /* Mobile Nav */
    .hamb{display:none}
    @media (max-width: 880px){
      .nav__links{display:none}
      .hamb{display:block; border:1px solid color-mix(in oklab, var(--text) 20%, transparent); background:transparent; color:var(--text); border-radius:10px; padding:8px 10px}
      .mobile-menu{position:fixed; inset:64px 0 auto 0; background:var(--surface); border-bottom:1px solid color-mix(in oklab, var(--text) 12%, transparent); display:none}
      .mobile-menu.open{display:block}
      .mobile-menu a{display:block; padding:16px 24px; color:var(--text); text-decoration:none; border-top:1px solid color-mix(in oklab, var(--text) 8%, transparent)}
    }

    /* HERO */
    .hero{padding:72px 0 40px; display:grid; grid-template-columns:1.1fr .9fr; gap:36px; align-items:center}
    .hero .eyebrow{display:inline-flex; align-items:center; gap:10px; padding:6px 10px; border-radius:999px; font-size:12px; color:var(--muted); border:1px solid color-mix(in oklab, var(--text) 18%, transparent)}
    .hero h1{font-size: clamp(32px, 4.6vw, 58px); line-height:1.1; margin:14px 0}
    .hero p{font-size: clamp(15px, 1.4vw, 18px); color:var(--muted)}
    .hero .actions{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}
    .btn{display:inline-flex; align-items:center; gap:10px; padding:12px 16px; border-radius:12px; text-decoration:none; border:1px solid color-mix(in oklab, var(--text) 18%, transparent); color:var(--text)}
    .btn--primary{background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; border:none; box-shadow:var(--shadow)}
    .hero-card{background:radial-gradient(1200px 600px at 10% 10%, color-mix(in oklab, var(--brand) 24%, transparent), transparent), var(--surface); border:1px solid color-mix(in oklab, var(--text) 10%, transparent); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow)}
    .mini-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:14px}
    .kpi{background:color-mix(in oklab, var(--surface) 88%, #000 12%); border:1px solid color-mix(in oklab, var(--text) 10%, transparent); border-radius:12px; padding:14px; text-align:center}
    .kpi .num{font-size:20px; font-weight:800}
    @media (max-width: 980px){.hero{grid-template-columns:1fr; padding-top:44px}}

    /* SEZIONI */
    section{padding:56px 0}
    .section-title{font-size: clamp(22px, 2.8vw, 34px); margin:0 0 10px}
    .section-sub{color:var(--muted); margin:0 0 26px}

    /* Services */
    .grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
    .card{background:var(--surface); border:1px solid color-mix(in oklab, var(--text) 10%, transparent); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:12px}
    .chip{display:inline-flex; align-items:center; gap:8px; border:1px solid color-mix(in oklab, var(--text) 18%, transparent); border-radius:999px; padding:6px 10px; color:var(--muted); font-size:12px}
    .card p{color:var(--muted); margin:0}
    .card a{margin-top:auto; text-decoration:none}
    @media (max-width: 980px){.grid{grid-template-columns:1fr}}

    /* Chart card */
    .chart-card{display:grid; grid-template-columns:1.1fr .9fr; gap:20px}
    .chart-box{background:var(--surface); border:1px solid color-mix(in oklab, var(--text) 10%, transparent); border-radius:var(--radius); padding:14px}
    .chart-legend{display:flex; gap:12px; align-items:center; color:var(--muted); font-size:12px; margin-top:8px}
    @media (max-width: 980px){.chart-card{grid-template-columns:1fr}}

    /* FAQ */
    .faq{max-width:900px}
    details{background:var(--surface); border:1px solid color-mix(in oklab, var(--text) 10%, transparent); border-radius:12px; padding:14px 16px}
    details+details{margin-top:12px}
    summary{cursor:pointer; font-weight:600}
    summary::-webkit-details-marker{display:none}

  
    /* Animations */
    .reveal{opacity:0; transform:translateY(12px); transition:opacity .5s ease, transform .5s ease}
    .reveal.show{opacity:1; transform:none}



    /* Sezione FAQ con sfondo bianco */
.faq-section {
  background: #fff;
  color: #0b0d12;
  padding: 80px 0;
  margin-top: 60px; /* spazio dalla sezione sopra */
}

.faq-section details {
  background: #f9fafb; /* leggero grigio per contrasto */
  color: #0b0d12;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px 16px;
}

.faq-section details+details {
  margin-top: 12px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
}
/* FAQ righe */
.faq-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Link a destra */
.faq-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.faq-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Altezza più grande */
.candlestick-separator {
  width: 100vw;
  height: 260px;       /* ⬅️ Aumentata da 200 a 260 (puoi alzare di più se vuoi) */
  background: var(--bg);
  overflow: hidden;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.candlestick-separator canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

/* Sezione Benvenuto */
.welcome-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #0b0d12;
}

/* Canvas particelle */
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Filtro sfumato sopra le particelle */
.welcome-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,.3), rgba(0,0,0,.8));
  z-index: 1;
}

/* Contenuto */
.welcome-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.welcome-title {
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.welcome-title span {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s ease infinite alternate;
}

@keyframes gradientMove {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.welcome-sub {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 36px;
  color: #a3acc2;
}


#candlesSeparator2 {
  width: 100%;
  height: 200px;
  display: block;
  background: transparent;
}

/* Rimuove lo scroll orizzontale */
html, body {
  overflow-x: hidden;
}

/* Selettore per il separatore candele */
.candlestick-separator {
  width: 100%;      /* invece di 100vw */
  max-width: 100%;  /* impedisce sforamento */
  overflow: hidden; /* nasconde eventuali sbordi */
}

/* BIOGRAFIA */

.bio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.bio-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  max-width: 460px;
  position: relative;
}

.bio-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  transform: translate(14px, 14px);
  z-index: -1;
  opacity: 0.6;
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
  border-radius: var(--radius);
}

.bio-content {
  text-align: left;
}

.bio-eyebrow {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
}

.bio-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin: 12px 0 20px;
  color: var(--text);
}

.bio-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 640px;
}

.bio-points {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.bio-points li {
  font-size: 17px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.bio-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bio-content {
    text-align: center;
  }
  .bio-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .bio-actions {
    justify-content: center;
  }
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Auth buttons */
.nav__auth {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-auth {
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .25s ease;
  border: 1px solid color-mix(in oklab, var(--text) 20%, transparent);
  color: var(--text);
  background: transparent;
}

.btn-auth:hover {
  background: color-mix(in oklab, var(--surface) 80%, transparent);
}

.btn-auth--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  box-shadow: var(--shadow);
}

.btn-auth--primary:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* Link navbar */
.nav__links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.6px;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* Effetto colore al passaggio */
.nav__links a:hover {
  color: var(--brand-2);
}

/* Sottolineatura animata */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.brand__logo-img {
  height: 40px;   /* altezza regolabile */
  width: auto;    /* mantiene le proporzioni */
  border-radius: 8px; /* opzionale: angoli arrotondati */
}
/* Contenitore brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Logo immagine */
.brand__logo-img {
  height: 46px;  /* puoi regolare */
  width: auto;
  border-radius: 8px; /* opzionale */
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* Testo brand */
.brand__text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Seconda parola con peso minore */
.brand__text span {
  font-weight: 600;
  font-size: 16px;
  display: block; /* va a capo sotto */
  letter-spacing: 0.5px;
}

/* Footer brand */
footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

footer .brand__logo-img {
  height: 40px; /* leggermente più piccolo */
  width: auto;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

footer .brand__text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  line-height: 1.1;
}

footer .brand__text span {
  font-weight: 600;
  font-size: 14px;
  display: block;
  letter-spacing: 0.5px;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-socials a img {
  height: 28px;
  width: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-socials a img:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

/* Animazioni bio */
.bio-section .bio-image,
.bio-section .bio-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.bio-section.show .bio-image {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.bio-section.show .bio-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* Effetto lista punti */
.bio-points li {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.bio-section.show .bio-points li {
  opacity: 1;
  transform: translateX(0);
}
.bio-section.show .bio-points li:nth-child(1){ transition-delay: .4s; }
.bio-section.show .bio-points li:nth-child(2){ transition-delay: .6s; }
.bio-section.show .bio-points li:nth-child(3){ transition-delay: .8s; }

/* Titolo */
.bio-title {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 900;
  margin: 12px 0 20px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.bio-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  margin-top: 12px;
  border-radius: 2px;
}

/* Foto con tilt */
.bio-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
  max-width: 460px;
  position: relative;
  transition: transform .6s ease;
}
.bio-image:hover {
  transform: scale(1.03) rotate3d(1, 1, 0, 4deg);
}

/* Testo */
.bio-sub {
  font-size: 19px;
  line-height: 1.75;
  color: #cfd3e1;
  max-width: 640px;
}

/* Lista */
.bio-points {
  list-style: none;
  margin: 28px 0;
  padding-left: 0;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--brand), var(--brand-2)) 1;
}
.bio-points li {
  font-size: 17px;
  margin: 14px 0;
  padding-left: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bio-points li svg {
  width: 18px;
  height: 18px;
  fill: var(--brand);
}

/* Bottoni */
.bio-actions .btn {
  transition: all 0.3s ease;
}
.bio-actions .btn:hover {
  box-shadow: 0 0 18px rgba(38,194,129,0.5);
  transform: translateY(-2px);
}

.bio-section {
  padding: 120px 0;
  background: var(--bg); /* sfondo uniforme */
}


/* HERO con sfondo animato */
.hero-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: var(--text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b0d12, #111b2a, #0b0d12);
  background-size: 400% 400%;
  animation: gradientFlow 18s ease infinite;
  z-index: -1;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
@media(max-width: 980px){
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Testo */
.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.2;
  margin: 16px 0 20px;
  text-shadow: 0 0 25px rgba(60,163,255,.25);
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* KPI */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 30px;
}
.kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp .9s forwards;
}
.kpi:nth-child(1){ animation-delay:.8s; }
.kpi:nth-child(2){ animation-delay:1.1s; }
.kpi:nth-child(3){ animation-delay:1.4s; }
.kpi .num { font-size: 22px; font-weight: 700; }

/* Card grafico */
.hero-card {
  background: rgba(20,26,38,0.9);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  transform: translateY(40px);
  opacity: 0;
  animation: fadeUp 1s forwards 1.6s;
}

/* Animazioni */
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
.hero-title, .hero-sub, .actions {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s forwards;
}
.hero-title { animation-delay: .2s; }
.hero-sub { animation-delay: .5s; }
.actions { animation-delay: .7s; }

/* === Pulsanti === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.35s ease;
  border: 1px solid color-mix(in oklab, var(--text) 18%, transparent);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(38, 194, 129, 0.5), 0 0 28px rgba(60, 163, 255, 0.5);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 25px rgba(38, 194, 129, 0.6), 0 0 40px rgba(60, 163, 255, 0.6);
}

/* Effetto "riflesso" sui pulsanti */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}

.btn:hover::after {
  left: 130%;
}

/* === Hero card (grafico) === */
.hero-card {
  background: radial-gradient(
      1200px 600px at 10% 10%,
      color-mix(in oklab, var(--brand) 24%, transparent),
      transparent
    ),
    var(--surface);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Glow con gradienti al passaggio */
.hero-card:hover {
  transform: translateY(-6px) scale(1.02);
  border: 1px solid rgba(60, 163, 255, 0.6);
  box-shadow: 0 0 35px rgba(38, 194, 129, 0.5),
              0 0 55px rgba(60, 163, 255, 0.6);
}

/* Riflesso animato come nei bottoni */
.hero-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}

.hero-card:hover::after {
  left: 130%;
}

/* HERO con sfondo animato */
.hero-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: var(--text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b0d12, #111b2a, #0b0d12);
  background-size: 400% 400%;
  animation: gradientFlow 18s ease infinite;
  z-index: -1;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Layout Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
@media(max-width: 980px){
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* SERVIZI con stesso sfondo Hero */
.services-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: var(--text);
}

.services-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b0d12, #111b2a, #0b0d12);
  background-size: 400% 400%;
  animation: gradientFlow 18s ease infinite;
  z-index: -1;
}

/* Cards servizi con glow */
.services-section .card {
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.services-section .card:hover {
  transform: translateY(-6px);
  border: 1px solid transparent;
  box-shadow: 0 0 25px rgba(38,194,129,0.6), 0 0 35px rgba(60,163,255,0.5);
  background: linear-gradient(135deg, rgba(38,194,129,0.08), rgba(60,163,255,0.08)) var(--surface);
}

/* Wrapper unico per Hero + Servizi */
.bg-wrapper {
  position: relative;
  overflow: hidden;
}

.bg-animated {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b0d12, #111b2a, #0b0d12);
  background-size: 400% 400%;
  animation: gradientFlow 18s ease infinite;
  z-index: -1;
}

.equity-card {
  background: #0b0d12;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  width: 600px;
  height: 470px; /* regola l’altezza */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#equityChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* SEZIONI container reveal */
.container.reveal {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.container.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Titoli con gradiente animato */
.container.reveal .section-title {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sottotitolo */
.container.reveal .section-sub {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}
.container.reveal.show .section-sub {
  opacity: 1;
  transform: translateY(0);
}

/* Layout card con testo + grafico/immagine */
.chart-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 980px) {
  .chart-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Box grafico/immagine */
.chart-box,
.equity-card,
.portrait {
  background: var(--surface);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
}
.container.reveal.show .chart-box,
.container.reveal.show .equity-card,
.container.reveal.show .portrait {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.chart-box:hover,
.equity-card:hover,
.portrait:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(38,194,129,0.35),
              0 28px 60px rgba(60,163,255,0.3);
}

/* Glow riflesso */
.chart-box::after,
.equity-card::after,
.portrait::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}
.chart-box:hover::after,
.equity-card:hover::after,
.portrait:hover::after {
  left: 120%;
}

/* Immagini */
.portrait img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.portrait img:hover {
  transform: scale(1.04) rotate3d(1,1,0,3deg);
  box-shadow: 0 18px 40px rgba(38,194,129,0.35),
              0 24px 50px rgba(60,163,255,0.25);
}

/* Legenda */
.chart-legend {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  opacity: 0.85;
}

/* === Statistiche Copytrading === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.stat-box {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(38,194,129,0.3);
}
.stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 16px;
  color: var(--muted);
}

/* FAQ list layout */
.faq-list details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-question {
  flex: 1; /* occupa tutto lo spazio disponibile */
}

/* Pulsante link FAQ */
.faq-link {
  font-size: 14px;
  font-weight: 500;
  color: #3ca3ff;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #3ca3ff;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.faq-link:hover {
  background: #3ca3ff;
  color: #fff;
}

/* Icona + / - */
.icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #26c281, #3ca3ff);
  position: relative;
  flex-shrink: 0;
}
.icon::before, .icon::after {
  content: "";
  position: absolute;
  background: #fff;
  transition: transform 0.3s ease;
}
.icon::before {
  top: 50%; left: 4px; right: 4px; height: 2px;
  transform: translateY(-50%);
}
.icon::after {
  left: 50%; top: 4px; bottom: 4px; width: 2px;
  transform: translateX(-50%);
}
details[open] summary .icon::after {
  transform: scaleY(0);
}

/* Sezione separatore */
.separator-section {
  background: #fff;        /* sfondo bianco */
  padding: 10px 0;
}

.separator-light {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.separator-section.reveal.show .separator-light {
  opacity: 1;
  transform: translateY(0);
}

.separator-light::before,
.separator-light::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, #aaa, transparent);
}

.separator-light span {
  margin: 0 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0b0d12;   /* testo scuro */
  text-transform: uppercase;
}

/* === FOOTER PROFESSIONAL === */
footer {
  padding: 70px 0 30px;
  background: #0b0d12; /* sfondo scuro */
  color: #cfd3e1;
  position: relative;
  overflow: hidden;
}

/* Glow sfumato nello sfondo */
footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
              rgba(60,163,255,0.15),
              transparent 70%);
  animation: rotateGlow 25s linear infinite;
  z-index: 0;
}
@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Layout */
.footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .footgrid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Brand */
footer .brand {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
footer .brand__logo-img {
  height: 50px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
  transition: transform .4s ease, box-shadow .4s ease;
}
footer .brand__logo-img:hover {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 10px 28px rgba(60,163,255,0.45);
}
footer .brand__text {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sezioni titolo */
.footgrid strong {
  font-size: 15px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 14px;
  position: relative;
  color: #fff;
}
.footgrid strong::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

/* Link */
.footgrid a {
  color: #cfd3e1;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s ease;
}
.footgrid a:hover {
  color: var(--brand-2);
  opacity: 1;
  transform: translateX(4px);
}

/* Social */
.footer-socials {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.footer-socials a img {
  height: 28px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.35s ease;
}
.footer-socials a img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.25) rotate(8deg);
}

/* Copyright */
footer p {
  font-size: 14px;
  opacity: 0.65;
  margin: 0;
}

/* Animazioni di reveal */
footer .brand,
footer p,
footer .footgrid strong,
footer .footgrid ul li,
.footer-socials a {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}
footer .brand { animation-delay: 0.2s; }
footer p { animation-delay: 0.4s; }
footer .footgrid strong { animation-delay: 0.6s; }
footer .footgrid ul li:nth-child(1) { animation-delay: 0.8s; }
footer .footgrid ul li:nth-child(2) { animation-delay: 1s; }
footer .footgrid ul li:nth-child(3) { animation-delay: 1.2s; }
.footer-socials a:nth-child(1) { animation-delay: 1.4s; }
.footer-socials a:nth-child(2) { animation-delay: 1.6s; }
.footer-socials a:nth-child(3) { animation-delay: 1.8s; }
.footer-socials a:nth-child(4) { animation-delay: 2s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== Stile avanzato per i link nel footer ===== */
footer .footgrid a {
  position: relative;
  color: #cfd3e1;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Underline animato */
footer .footgrid a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transition: width 0.35s ease;
}

/* Hover effect */
footer .footgrid a:hover {
  color: var(--brand-2);
  transform: translateX(2px);
}
footer .footgrid a:hover::after {
  width: 100%;
}

/* Per i link nella sezione legale/menu, regola l'opacità iniziale */
footer .footgrid ul li a {
  opacity: 0.85;
}
footer .footgrid ul li a:hover {
  opacity: 1;
}

/* Versione “leggera” per link già attivi */
footer .footgrid a.active, footer .footgrid a.active:hover {
  color: var(--brand);
}

#candlesSeparator3 {
  margin-bottom: 0px;   /* distanza dalla sezione sotto */
  margin-top: 0px;      /* distanza dalla sezione sopra */
}


/* Fade-up animazione */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(40px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Hover bottone */
#contatti a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(38,194,129,0.4), 0 0 40px rgba(60,163,255,0.4);
}

/* Riflesso animato */
#contatti a::after {
  content:"";
  position:absolute;
  top:0; left:-70%;
  width:50%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform:skewX(-25deg);
  transition:all .6s ease;
}

#contatti a:hover::after {
  left:130%;
}


</style>
