:root{
  --blue:#2563eb;--blue-dark:#1d4ed8;--ink:#0f172a;--muted:#58627a;--line:#d9e2f1;
  --red:#ef4444;--orange:#f97316;--yellow:#eab308;--green:#16a34a;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:linear-gradient(180deg,#eef6ff 0%,#f8fbff 100%)}
.page{max-width:1280px;margin:0 auto;padding:34px 22px 60px}
.hero,.panel{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:28px;box-shadow:0 18px 45px rgba(15,23,42,.08)}
.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:38px;margin-bottom:26px}
.eyebrow{color:#1455ff;font-weight:800;letter-spacing:.04em;font-size:14px}
h1{font-size:64px;line-height:.95;margin:16px 0 12px;letter-spacing:-.04em}
.hero p{font-size:20px;line-height:1.35;color:var(--muted);max-width:780px;margin:0}
.primary-pill,.main-btn,.secondary-btn{border:0;cursor:pointer;font-weight:800;transition:.18s ease}
.primary-pill{background:var(--blue);color:white;border-radius:999px;padding:18px 34px;font-size:20px;box-shadow:0 20px 38px rgba(37,99,235,.25);white-space:nowrap}
.primary-pill:hover,.main-btn:hover{background:var(--blue-dark);transform:translateY(-1px)}
.panel{padding:28px}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:20px}
.panel h2{font-size:30px;margin:0 0 8px}
.panel-head p{margin:0;color:var(--muted);font-size:17px;line-height:1.4}
.formula-box{background:#e6f1ff;border-radius:20px;padding:20px 26px;color:#12396b;font-size:18px;min-width:240px}
.input-card{border:1px solid var(--line);border-radius:26px;padding:22px;background:#fbfdff}
.g-table-head,.g-row{display:grid;grid-template-columns:1.65fr .9fr .7fr .85fr .95fr 48px;gap:10px;align-items:center}
.g-table-head{color:#4a5870;font-weight:800;margin:0 0 10px;padding:0 2px;font-size:14px}
.g-row{margin-bottom:10px;position:relative}
.g-row input{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 14px;font-size:16px;background:#fff}
.g-row input.manual{background:#fffaf0}
.g-row.needs-manual input.manual{border-color:#f59e0b;background:#fff7ed}
.g-row.auto-ok input.g-symbol{border-color:#22c55e}
.g-row.auto-error input.g-symbol{border-color:#ef4444}
.g-row-status{grid-column:1 / -1;margin:-2px 54px 6px 4px;font-size:13px;color:#64748b}
.g-row-status.checking{color:#1d4ed8}
.g-row-status.ok{color:#166534}
.g-row-status.manual{color:#9a3412}
.g-row-status.error{color:#991b1b}
.remove-btn{width:48px;height:48px;border-radius:16px;border:0;color:#a11919;background:#ffe0e0;font-size:25px;font-weight:900;cursor:pointer}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.secondary-btn{background:#eaf2ff;color:#1648c8;border-radius:16px;padding:15px 22px;font-size:18px}
.main-btn{background:var(--blue);color:#fff;border-radius:16px;padding:15px 24px;font-size:18px}
.note{margin:18px 0 0;color:var(--muted);font-size:16px;line-height:1.4}
.status{margin-top:18px;padding:16px 18px;border-radius:18px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.results{margin-top:24px}
.summary{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:stretch}
.score-card,.metrics-card,.detail-card,.benchmark-card,.comment-card{background:white;border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:0 10px 25px rgba(15,23,42,.05)}
.score-card{text-align:center}.score-label{font-weight:800;color:#385071}
.big-score{font-size:88px;line-height:1;font-weight:950;color:var(--blue)}.big-score span{font-size:28px;color:#536079}
.score-bar{margin-top:18px;height:18px;background:#e8eef8;border-radius:999px;overflow:hidden}.score-bar span{display:block;height:100%;background:linear-gradient(90deg,#60a5fa,#2563eb)}
.score-caption{margin:14px 0 0;color:#64748b;font-size:15px}
.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric{background:#f4f8ff;border-radius:18px;padding:16px}.metric small{display:block;color:#63708a;font-weight:700;margin-bottom:7px}.metric strong{font-size:24px}
.reliability{margin-top:18px}.reliability-title{display:flex;justify-content:space-between;gap:12px;color:#334155;font-size:15px;margin-bottom:8px}.reliability-bar{height:18px;background:#e8eef8;border-radius:999px;overflow:hidden}.reliability-bar span{display:block;height:100%}
.reliability-bar.red span{background:var(--red)}.reliability-bar.orange span{background:var(--orange)}.reliability-bar.yellow span{background:var(--yellow)}.reliability-bar.lightgreen span{background:#84cc16}.reliability-bar.green span{background:var(--green)}
.reliability-blocks{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:12px 0 0}.reliability-blocks i{display:block;height:12px;border-radius:999px;background:#e8eef8}.reliability-blocks.red i.active{background:var(--red)}.reliability-blocks.orange i.active{background:var(--orange)}.reliability-blocks.yellow i.active{background:var(--yellow)}.reliability-blocks.lightgreen i.active{background:#84cc16}.reliability-blocks.green i.active{background:var(--green)}
.detail-card,.benchmark-card,.comment-card{margin-top:20px}.detail-card h3,.benchmark-card h3,.comment-card h3{margin:0 0 16px}.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;overflow:hidden;border-radius:16px}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid #e9eef6;vertical-align:middle}th{color:#475569;font-size:14px}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
.badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#eef4ff;color:#1d4ed8;font-weight:800;font-size:12px}.source-badge{display:inline-block;margin-left:4px;padding:4px 8px;border-radius:999px;background:#fef3c7;color:#92400e;font-weight:800;font-size:11px}
.g-mini{display:inline-block;min-width:42px;text-align:center;padding:6px 9px;border-radius:999px;font-weight:900}.g-high{background:#dcfce7;color:#166534}.g-mid{background:#fef9c3;color:#854d0e}.g-low{background:#fee2e2;color:#991b1b}
.warning{margin-top:14px;color:#64748b;font-size:15px}.benchmark-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.bench-box{background:#f8fbff;border:1px solid #e3ebf6;border-radius:22px;padding:18px}.bench-box h4{margin:0 0 12px;color:#1e293b}.bench-score{font-size:48px;font-weight:950;color:var(--blue);line-height:1}.bench-score span{font-size:18px;color:#64748b}.compare-note{margin-top:14px;background:#eef6ff;border-left:5px solid var(--blue);border-radius:16px;padding:15px 16px;color:#334155}.comment-card{background:linear-gradient(180deg,#ffffff,#f7fbff)}.comment-card p{margin:0;font-size:18px;line-height:1.45;color:#334155}
.hidden{display:none!important}
@media(max-width:1050px){.g-table-head{display:none}.g-row{grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:18px;padding:12px;background:white}.g-row input:first-child{grid-column:1 / -1}.remove-btn{width:100%;grid-column:1 / -1}.g-row-status{grid-column:1 / -1;margin:4px}}
@media(max-width:900px){.hero,.panel-head,.summary,.benchmark-grid{display:block}.primary-pill{margin-top:22px;width:100%}h1{font-size:54px}.formula-box{margin-top:18px;min-width:0}.metrics-grid{grid-template-columns:1fr 1fr}.score-card{margin-bottom:18px}.bench-box{margin-bottom:14px}table{font-size:14px}}
@media(max-width:540px){.page{padding:16px 10px 40px}.hero,.panel{border-radius:20px;padding:22px}h1{font-size:46px}.hero p,.panel-head p{font-size:16px}.metrics-grid{grid-template-columns:1fr}.g-row{grid-template-columns:1fr}}


/* Landing Indice G - 16/08/2026 */

:root{--navy:#071827;--gold:#e6b84c;--cream:#f7f4ec;--paper:#fff;--ink:#0f172a;--muted:#5c6677;--line:#dce3ea;--green:#26734d}
body{background:#f4f6f7!important}
.page{max-width:1180px!important;padding:24px 20px 60px!important}
.market-hero{min-height:520px;position:relative;overflow:hidden;border-radius:28px;background:
radial-gradient(circle at 72% 62%,rgba(255,255,255,.16) 0 2%,transparent 3%),
linear-gradient(100deg,rgba(3,16,27,.98) 0%,rgba(5,25,39,.93) 45%,rgba(20,46,55,.72) 100%),
linear-gradient(180deg,#183746,#071827);color:#fff;padding:34px 42px;box-shadow:0 22px 50px rgba(7,24,39,.22)}
.market-hero:after{content:"";position:absolute;right:-5%;bottom:-30px;width:56%;height:55%;opacity:.28;background:
radial-gradient(ellipse at 20% 70%,#fff 0 2%,transparent 2.5%),
radial-gradient(ellipse at 38% 55%,#fff 0 2.5%,transparent 3%),
radial-gradient(ellipse at 58% 68%,#fff 0 2%,transparent 2.5%),
linear-gradient(8deg,transparent 0 46%,rgba(255,255,255,.25) 47% 49%,transparent 50%)}
.brand{font-weight:950;letter-spacing:.14em}.brand span{font-weight:500;letter-spacing:0;color:#c7d2da;font-size:12px;margin-left:8px}
.hero-copy{position:relative;z-index:2;max-width:650px}.kicker{margin-top:76px;color:var(--gold);font-weight:850;letter-spacing:.12em;font-size:13px}
.market-hero h1{font-size:76px;line-height:.88;margin:14px 0 20px;letter-spacing:-.055em}
.market-hero p{font-size:20px;line-height:1.48;color:#dbe4e9;max-width:610px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.gold-btn,.ghost-btn,.dark-btn{display:inline-block;text-decoration:none;font-weight:850;border-radius:12px;padding:14px 19px}.gold-btn{background:var(--gold);color:#16212b}.ghost-btn{border:1px solid rgba(255,255,255,.38);color:#fff}.dark-btn{background:var(--navy);color:#fff}
.hero-note{position:absolute;right:30px;bottom:24px;color:#d4dde2;font-size:13px;z-index:2}
.intro,.portfolio,.history{display:grid;grid-template-columns:1fr 1fr;gap:46px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:26px;padding:38px;margin-top:22px}
.section-label{font-size:12px;letter-spacing:.12em;font-weight:900;color:#9a7217;margin-bottom:8px}
.intro h2,.live-card h2,.method h2,.portfolio h2,.history h2,.tool-intro h2{font-size:36px;line-height:1.06;margin:4px 0 14px;letter-spacing:-.035em}
.intro p,.portfolio p,.history p,.tool-intro p{color:var(--muted);font-size:17px;line-height:1.55}
.fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fact{background:#f5f7f8;border-radius:18px;padding:20px}.fact strong{display:block;font-size:25px;color:var(--navy)}.fact span{display:block;color:#6b7280;margin-top:4px}
.live-card,.method,.personal-tool{background:#fff;border:1px solid var(--line);border-radius:26px;padding:38px;margin-top:22px}.live-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.live-head p{color:var(--muted)}.text-link{color:#8b6511;font-weight:850;text-decoration:none}
.ranking-placeholder{display:grid;grid-template-columns:58px 1fr auto;gap:18px;align-items:center;margin-top:22px;background:#f6f8f9;border-radius:18px;padding:18px}.rank-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#e6efe9;color:var(--green);font-weight:950;font-size:25px}.ranking-placeholder span{display:block;color:#687386;margin-top:4px}
.method{background:#f8faf9}.method-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px}.method article{background:#fff;border:1px solid #e1e7e4;border-radius:18px;padding:20px}.method article b{color:#b98a23}.method article h3{margin:12px 0 7px}.method article p,.method-note{color:var(--muted);line-height:1.5}.method-note{margin:20px 0 0;font-size:14px}
.rule-box{display:grid;grid-template-columns:1fr;gap:10px}.rule-box div{background:#f5f7f8;border-radius:17px;padding:16px 20px}.rule-box strong{font-size:22px;display:block}.rule-box span{color:#6b7280}.inline{margin-top:10px}
.history{background:var(--navy);color:#fff}.history p{color:#cbd5dc}.history-badge{border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:25px}.history-badge strong{display:block;color:var(--gold);font-size:26px}.history-badge span{display:block;color:#cbd5dc;margin-top:8px}
.personal-tool{text-align:center}.tool-intro{max-width:760px;margin:auto}.primary-pill{margin-top:12px}
.panel{margin-top:22px!important}
footer{display:flex;justify-content:space-between;gap:20px;color:#697386;font-size:13px;padding:26px 6px 0}
@media(max-width:850px){.intro,.portfolio,.history{grid-template-columns:1fr}.method-grid{grid-template-columns:1fr 1fr}.market-hero h1{font-size:58px}.live-head{display:block}.ranking-placeholder{grid-template-columns:52px 1fr}.ranking-placeholder .dark-btn{grid-column:1/-1;text-align:center}footer{display:block}footer span{display:block;margin-top:8px}}
@media(max-width:540px){.market-hero{padding:26px 22px}.market-hero h1{font-size:48px}.kicker{margin-top:50px}.intro,.live-card,.method,.portfolio,.history,.personal-tool{padding:25px}.fact-grid,.method-grid{grid-template-columns:1fr}.intro h2,.live-card h2,.method h2,.portfolio h2,.history h2,.tool-intro h2{font-size:31px}}

/* Dati live Indice G */
.top5-status{margin-top:18px;padding:14px 16px;border-radius:14px;background:#f5f7f8;color:#667085;font-size:14px}
.top5-status.error{background:#fff4f1;color:#9b2c1f}
.top5-table{margin-top:14px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}
.top5-row{display:grid;grid-template-columns:58px minmax(0,1fr) 110px;gap:14px;align-items:center;padding:15px 18px;border-bottom:1px solid #edf1f4}
.top5-row:last-child{border-bottom:0}
.top5-rank{font-size:13px;font-weight:900;color:#9a7217}
.top5-company strong{display:block;font-size:16px;color:var(--navy)}
.top5-company span{display:block;margin-top:3px;color:#6b7280;font-size:12px}
.top5-score{text-align:right}
.top5-score strong{display:block;font-size:24px;color:var(--green)}
.top5-score span{display:block;font-size:11px;color:#7b8491;text-transform:uppercase;letter-spacing:.06em}
@media(max-width:540px){.top5-row{grid-template-columns:42px minmax(0,1fr) 72px;padding:13px 12px}.top5-score strong{font-size:20px}}

/* Top 5 V2.1: posizione e simbolo società */
.top5-header,.top5-row{display:grid;grid-template-columns:54px 42px minmax(0,1fr) 110px;gap:12px;align-items:center}
.top5-header{padding:9px 18px;background:#f7f9fa;border-bottom:1px solid #e8edf1;color:#7a8491;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.top5-row{padding:13px 18px}
.top5-rank{font-size:15px;font-weight:950;color:#182331}
.company-mark{width:34px;height:34px;border-radius:9px;background:#f1f4f5;border:1px solid #e1e7ea;display:grid;place-items:center;overflow:hidden}
.company-mark img{width:26px;height:26px;object-fit:contain}
.company-fallback{display:none;width:100%;height:100%;place-items:center;font-weight:950;color:#183247;background:#edf2f4}
.company-fallback.visible{display:grid}
@media(max-width:540px){
 .top5-header,.top5-row{grid-template-columns:34px 34px minmax(0,1fr) 66px;gap:8px;padding-left:10px;padding-right:10px}
 .company-mark{width:30px;height:30px}
 .company-mark img{width:23px;height:23px}
}


/* Top 5 V3: G oggi, Ieri e Movimento */
.top5-header,.top5-row{grid-template-columns:54px 42px minmax(0,1fr) 82px 70px 92px!important}
.top5-yesterday,.top5-movement{text-align:right;font-weight:850;font-variant-numeric:tabular-nums}
.top5-yesterday{color:#475569}
.top5-movement{font-size:14px}
.move-up{color:#16a34a}.move-down{color:#dc2626}.move-flat{color:#64748b}
@media(max-width:700px){
  .top5-header,.top5-row{grid-template-columns:32px 32px minmax(0,1fr) 58px 48px 62px!important;gap:7px!important;padding-left:9px!important;padding-right:9px!important}
  .top5-header{font-size:8px!important;letter-spacing:.02em!important}
  .top5-company strong{font-size:13px!important}.top5-company span{font-size:10px!important}
  .top5-score strong{font-size:18px!important}.top5-score span{display:none!important}
  .top5-yesterday,.top5-movement{font-size:12px!important}
}


/* =========================================================
   TESTATA V2 — FERMATI. GUARDA. / cigni
   ========================================================= */
.market-hero.market-hero-v2{
  min-height:500px;
  position:relative;
  overflow:hidden;
  border-radius:28px;
  background:#061827;
  color:#fff;
  padding:34px 42px;
  box-shadow:0 22px 50px rgba(7,24,39,.22);
}
.market-hero-v2 .hero-photo{
  position:absolute;
  z-index:0;
  top:0;
  right:0;
  width:67%;
  height:100%;
  background-image:url("hero_cigni.png");
  background-size:cover;
  background-position:center center;
  filter:saturate(.88) contrast(1.04) brightness(.88);
}
.market-hero-v2 .hero-shade{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,
      rgba(4,20,32,1) 0%,
      rgba(4,20,32,.98) 27%,
      rgba(4,20,32,.88) 42%,
      rgba(4,20,32,.38) 63%,
      rgba(4,20,32,.08) 100%),
    linear-gradient(0deg,rgba(2,14,24,.38),transparent 45%);
}
.market-hero-v2 .hero-copy{position:relative;z-index:3;max-width:590px}
.market-hero-v2 .brand{position:relative;z-index:3}
.market-hero-v2 .kicker{margin-top:74px;color:var(--gold)}
.market-hero-v2 h1{
  font-size:78px;line-height:.88;margin:14px 0 22px;letter-spacing:-.055em;
  text-shadow:0 2px 18px rgba(0,0,0,.18);
}
.market-hero-v2 .hero-lead{
  font-size:22px;line-height:1.42;color:#fff;max-width:490px;margin:0;
}
.market-hero-v2 .hero-lead strong{color:#fff;font-weight:800}
.market-hero-v2 .hero-actions{margin-top:28px}
.market-hero-v2 .hero-live{
  position:absolute;z-index:4;right:30px;bottom:25px;display:flex;align-items:center;
  gap:11px;color:#fff;font-size:13px;font-weight:700;text-shadow:0 1px 5px rgba(0,0,0,.45);
}
.market-hero-v2 .hero-live-item{display:inline-flex;align-items:center;gap:6px}
.market-hero-v2 .hero-live-item b{color:var(--gold);font-size:17px}
.market-hero-v2 .hero-live-sep{color:rgba(255,255,255,.72)}
.market-hero-v2 .hero-note{
  left:42px;right:auto;bottom:23px;color:#cbd6dc;font-size:11px;opacity:.82;
}
.market-hero-v2:after{display:none!important}

@media(max-width:900px){
  .market-hero.market-hero-v2{min-height:540px;padding:28px 28px 86px}
  .market-hero-v2 .hero-photo{width:100%;opacity:.52;background-position:62% center}
  .market-hero-v2 .hero-shade{
    background:linear-gradient(90deg,rgba(4,20,32,.98) 0%,rgba(4,20,32,.91) 48%,rgba(4,20,32,.38) 100%),
               linear-gradient(0deg,rgba(4,20,32,.70),transparent 60%);
  }
  .market-hero-v2 .hero-copy{max-width:620px}
  .market-hero-v2 h1{font-size:64px}
  .market-hero-v2 .hero-live{left:28px;right:auto;bottom:42px;flex-wrap:wrap}
  .market-hero-v2 .hero-note{left:28px;bottom:18px}
}
@media(max-width:540px){
  .market-hero.market-hero-v2{min-height:570px;padding:24px 22px 105px}
  .market-hero-v2 .hero-photo{opacity:.42;background-position:67% center}
  .market-hero-v2 .kicker{margin-top:48px}
  .market-hero-v2 h1{font-size:50px}
  .market-hero-v2 .hero-lead{font-size:18px}
  .market-hero-v2 .hero-live{left:22px;bottom:49px;font-size:11px;gap:7px}
  .market-hero-v2 .hero-note{left:22px;bottom:20px}
}

/* =========================================================
   TESTATA V3 — immagine protagonista + navigazione + stato
   ========================================================= */
.market-hero.market-hero-v2{min-height:500px;padding:28px 34px 34px}
.market-hero-v2 .hero-photo{width:100%;background-position:center 54%;filter:saturate(.92) contrast(1.04) brightness(.84)}
.market-hero-v2 .hero-shade{background:linear-gradient(90deg,rgba(4,20,32,.96) 0%,rgba(4,20,32,.88) 34%,rgba(4,20,32,.36) 62%,rgba(4,20,32,.12) 100%),linear-gradient(0deg,rgba(2,14,24,.58),transparent 58%)}
.market-hero-v2 .hero-topbar{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:22px}
.market-hero-v2 .brand{font-size:17px}.market-hero-v2 .brand span{text-transform:uppercase;font-size:9px;color:#d7e0e5}
.market-hero-v2 .hero-nav{display:flex;align-items:center;gap:22px;font-size:10px;font-weight:850;letter-spacing:.06em}
.market-hero-v2 .hero-nav a{color:#fff;text-decoration:none;opacity:.86;padding:7px 0;border-bottom:2px solid transparent}
.market-hero-v2 .hero-nav a.active,.market-hero-v2 .hero-nav a:hover{color:var(--gold);border-color:var(--gold);opacity:1}
.market-hero-v2 .hero-copy{max-width:515px;margin-top:62px}.market-hero-v2 .kicker{margin-top:0}
.market-hero-v2 h1{font-size:72px;margin:12px 0 15px}.market-hero-v2 .hero-lead{font-size:20px;line-height:1.32}.market-hero-v2 .hero-lead strong{color:var(--gold)}
.market-hero-v2 .hero-sub{font-size:14px;line-height:1.45;max-width:420px;color:#e1e8ec;margin:12px 0 0}
.market-hero-v2 .hero-status{position:absolute;z-index:5;right:25px;bottom:24px;width:218px;padding:14px 16px;border-radius:14px;background:rgba(4,20,32,.76);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(5px);display:grid;gap:7px;font-size:11px;color:#edf3f6}
.market-hero-v2 .hero-status-title{font-size:9px;color:var(--gold);font-weight:900;letter-spacing:.08em}.market-hero-v2 .hero-status strong{font-size:14px;color:#fff}.market-hero-v2 .hero-status span{display:block}.market-hero-v2 .hero-status b{color:#fff}.market-hero-v2 .hero-note,.market-hero-v2 .hero-live{display:none!important}
@media(max-width:900px){.market-hero-v2 .hero-nav{display:none}.market-hero-v2 .hero-copy{margin-top:56px}.market-hero-v2 .hero-status{right:24px;bottom:22px}.market-hero-v2 h1{font-size:62px}}
@media(max-width:620px){.market-hero.market-hero-v2{min-height:610px;padding:24px 22px 150px}.market-hero-v2 .hero-copy{margin-top:46px}.market-hero-v2 h1{font-size:50px}.market-hero-v2 .hero-status{left:22px;right:22px;bottom:20px;width:auto}.market-hero-v2 .hero-photo{background-position:62% center}.market-hero-v2 .hero-sub{font-size:13px}}


/* =========================================================
   TESTATA V3.1 — rifinitura immagine e stato
   ========================================================= */
.market-hero.market-hero-v2{
  min-height:530px;
}
.market-hero-v2 .hero-photo{
  background-position:center 52%;
  filter:saturate(.96) contrast(1.03) brightness(.94);
}
.market-hero-v2 .hero-status{
  background:rgba(4,20,32,.82);
}
.market-hero-v2 .hero-status strong{
  color:var(--gold);
  font-size:17px;
  line-height:1.15;
}
@media(max-width:900px){
  .market-hero.market-hero-v2{min-height:560px}
}
@media(max-width:620px){
  .market-hero.market-hero-v2{min-height:630px}
}


/* =========================================================
   TESTATA V3.2 — immagine provvisoria più luminosa
   In attesa del video definitivo
   ========================================================= */
.market-hero-v2 .hero-photo{
  filter:saturate(1.00) contrast(1.01) brightness(1.16) !important;
}
.market-hero-v2 .hero-shade{
  background:
    linear-gradient(90deg,
      rgba(4,20,32,1) 0%,
      rgba(4,20,32,.97) 24%,
      rgba(4,20,32,.78) 39%,
      rgba(4,20,32,.26) 58%,
      rgba(4,20,32,.02) 100%),
    linear-gradient(0deg,rgba(2,14,24,.18),transparent 42%) !important;
}
@media(max-width:900px){
  .market-hero-v2 .hero-photo{
    opacity:.78 !important;
  }
  .market-hero-v2 .hero-shade{
    background:
      linear-gradient(90deg,rgba(4,20,32,.96) 0%,rgba(4,20,32,.82) 46%,rgba(4,20,32,.22) 100%),
      linear-gradient(0deg,rgba(4,20,32,.34),transparent 58%) !important;
  }
}
@media(max-width:540px){
  .market-hero-v2 .hero-photo{
    opacity:.70 !important;
  }
}

/* =========================================================
   TESTATA V4.1 — player Repubblica meglio integrato
   - elimina la fascia vuota inferiore
   - video "cover" con lieve ritaglio laterale
   - sfumatura più progressiva tra testo e video
   ========================================================= */
.market-hero.market-hero-v2{
  min-height:500px !important;
}

.market-hero-v2 .hero-video{
  position:absolute;
  z-index:0;
  top:0;
  right:0;
  width:67%;
  height:100%;
  overflow:hidden;
  background:#071827;
}

/* Il player Repubblica è 16:9: lo allarghiamo per coprire
   tutta l'altezza del riquadro e tagliamo solo ai lati. */
.market-hero-v2 .hero-video iframe{
  position:absolute;
  top:50%;
  left:50%;
  width:122%;
  height:100%;
  min-width:0;
  min-height:100%;
  transform:translate(-50%,-50%);
  border:0;
}

/* Passaggio sinistra/destra più morbido. */
.market-hero-v2 .hero-shade{
  pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(4,20,32,1) 0%,
      rgba(4,20,32,.99) 23%,
      rgba(4,20,32,.94) 32%,
      rgba(4,20,32,.76) 42%,
      rgba(4,20,32,.45) 52%,
      rgba(4,20,32,.18) 61%,
      rgba(4,20,32,.04) 70%,
      rgba(4,20,32,0) 100%) !important;
}

/* Un po' più di respiro nella parte alta, senza aumentare
   l'ingombro complessivo della testata. */
.market-hero-v2 .hero-copy{
  margin-top:54px;
}

@media(max-width:900px){
  .market-hero.market-hero-v2{min-height:540px !important}
  .market-hero-v2 .hero-video{width:100%}
  .market-hero-v2 .hero-video iframe{
    width:150%;
    height:100%;
    left:62%;
  }
  .market-hero-v2 .hero-shade{
    background:
      linear-gradient(90deg,
        rgba(4,20,32,.98) 0%,
        rgba(4,20,32,.92) 43%,
        rgba(4,20,32,.58) 62%,
        rgba(4,20,32,.20) 82%,
        rgba(4,20,32,.05) 100%) !important;
  }
}

@media(max-width:620px){
  .market-hero.market-hero-v2{min-height:610px !important}
  .market-hero-v2 .hero-video{opacity:.72}
  .market-hero-v2 .hero-video iframe{
    width:185%;
    left:68%;
  }
  .market-hero-v2 .hero-copy{margin-top:44px}
}


/* =========================================================
   LANDING V5 — struttura compatta ispirata alla proposta iniziale
   ========================================================= */
.methodology-compact{
  margin-top:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  box-shadow:0 10px 28px rgba(5,25,40,.035);
}
.compact-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:16px;
}
.compact-head h2{
  margin:3px 0 0;
  font-size:25px;
  line-height:1.08;
  letter-spacing:-.025em;
}
.methodology-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr) 1.18fr;
  gap:10px;
  align-items:stretch;
}
.factor-card{
  display:flex;
  gap:10px;
  align-items:flex-start;
  min-width:0;
  padding:14px;
  border:1px solid #e1e8ed;
  border-radius:14px;
  background:#fbfcfd;
}
.factor-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#edf5f1;
  color:#17764f;
  font-size:19px;
  font-weight:900;
}
.factor-card h3{margin:0 0 5px;font-size:14px}
.factor-card p{margin:0;color:#667684;font-size:10px;line-height:1.35}
.factor-card strong{display:block;margin-top:7px;font-size:15px;color:#0a2235}
.formula-compact{
  border-radius:14px;
  padding:14px 15px;
  background:#eef6fb;
  color:#0a2235;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.formula-compact span{font-size:12px;font-weight:900;color:#607181}
.formula-compact strong{font-size:15px;line-height:1.35;margin:4px 0 7px}
.formula-compact small{font-size:9px;line-height:1.35;color:#657582}
.methodology-foot{
  margin:13px 0 0;
  color:#75828c;
  font-size:10px;
}

.action-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:16px;
}
.action-card{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
  min-height:170px;
  padding:18px;
  border-radius:16px;
  border:1px solid #dce4e9;
  background:#fff;
}
.action-card:nth-child(1){background:#f4faf6}
.action-card:nth-child(2){background:#f2f7fb}
.action-card:nth-child(3){background:#fff8e9}
.action-icon{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:#fff;border:1px solid rgba(10,34,53,.08);
  font-size:22px;font-weight:900;color:#0a7a58;
}
.action-portafoglio .action-icon{color:#164b88}
.action-storico .action-icon{color:#a06d00}
.action-card h3{margin:3px 0 7px;font-size:18px;line-height:1.12}
.action-card p{margin:0 0 11px;color:#63717e;font-size:11px;line-height:1.45}
.action-card a{
  font-size:10px;font-weight:900;text-decoration:none;color:#0a6b50;
}
.action-portafoglio a{color:#174e8e}
.action-storico a{color:#986b00}

.trust-news{
  display:grid;
  grid-template-columns:1.25fr .95fr;
  gap:12px;
  margin-top:16px;
}
.trust-block,.newsletter-block{
  border:1px solid #dce4e9;
  border-radius:16px;
  background:#fff;
  padding:20px;
}
.trust-block h2,.newsletter-block h2{
  margin:3px 0 13px;
  font-size:21px;
  letter-spacing:-.02em;
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.trust-grid>div{
  border-right:1px solid #e8edf0;
  padding:2px 10px;
}
.trust-grid>div:last-child{border-right:0}
.trust-grid strong{display:block;font-size:19px;color:#0b6b52}
.trust-grid span{display:block;margin-top:5px;font-size:11px;font-weight:850}
.trust-grid small{display:block;margin-top:3px;color:#71808c;font-size:9px;line-height:1.35}
.newsletter-block{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  background:#f8fafb;
}
.newsletter-icon{
  width:40px;height:40px;border-radius:10px;
  display:grid;place-items:center;
  background:#eaf1f7;color:#193c5b;font-size:20px;
}
.newsletter-block p{margin:0 0 12px;color:#687784;font-size:11px;line-height:1.45}
.newsletter-btn{
  display:inline-block;
  text-decoration:none;
  padding:9px 13px;
  border-radius:9px;
  background:#1b8b56;
  color:#fff;
  font-size:10px;
  font-weight:900;
}
footer{
  margin-top:16px;
  padding-top:16px!important;
  border-top:1px solid #dce4e9;
}

@media(max-width:900px){
  .methodology-grid{grid-template-columns:1fr 1fr}
  .formula-compact{grid-column:1/-1}
  .action-grid{grid-template-columns:1fr}
  .trust-news{grid-template-columns:1fr}
}
@media(max-width:620px){
  .compact-head{display:block}
  .compact-head .text-link{display:inline-block;margin-top:8px}
  .methodology-grid{grid-template-columns:1fr}
  .formula-compact{grid-column:auto}
  .trust-grid{grid-template-columns:1fr 1fr}
  .trust-grid>div{border-right:0;border-bottom:1px solid #e8edf0;padding:8px}
}


/* =========================================================
   LANDING V5.1 — fascia finale scura come bozza originaria
   ========================================================= */
.site-footer-dark{
  margin-top:14px;
  padding:18px 20px !important;
  border:0 !important;
  border-radius:0 0 18px 18px;
  background:#071827;
  color:#fff;
  display:grid;
  grid-template-columns:.9fr 1.6fr .85fr;
  gap:24px;
  align-items:start;
  font-size:11px;
}

.site-footer-dark .footer-brand strong{
  display:block;
  font-size:18px;
  letter-spacing:.12em;
}
.site-footer-dark .footer-brand span{
  display:block;
  margin-top:2px;
  color:#d3dde4;
  font-size:10px;
}
.site-footer-dark .footer-brand small{
  display:block;
  margin-top:12px;
  color:#e6b84c;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.site-footer-dark .footer-disclaimer strong,
.site-footer-dark .footer-follow strong{
  display:block;
  margin-bottom:5px;
  color:#fff;
  font-size:10px;
}
.site-footer-dark .footer-disclaimer p{
  margin:0;
  color:#b8c5ce;
  line-height:1.45;
  font-size:9px;
}

.site-footer-dark .footer-follow{
  text-align:right;
}
.footer-socials{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin:6px 0 8px;
}
.footer-socials a{
  width:24px;
  height:24px;
  border-radius:6px;
  display:grid;
  place-items:center;
  text-decoration:none;
  background:#102b3e;
  color:#fff;
  font-weight:900;
  font-size:11px;
}
.footer-socials a:hover{
  background:#e6b84c;
  color:#071827;
}
.site-footer-dark .footer-follow small{
  color:#91a1ad;
  font-size:8px;
}

/* fascia precedente più vicina alla bozza */
.trust-news{
  margin-bottom:0;
}
.trust-block,.newsletter-block{
  min-height:140px;
}
.newsletter-btn{
  background:#35a853;
}

@media(max-width:760px){
  .site-footer-dark{
    grid-template-columns:1fr;
    gap:14px;
  }
  .site-footer-dark .footer-follow{text-align:left}
  .footer-socials{justify-content:flex-start}
}


/* =========================================================
   PORTAFOGLIO G — simboli società accanto ai titoli
   19/08/2026
   ========================================================= */
.g-port-company{
  position:relative;
  padding-left:38px;
  min-height:30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.g-port-logo{
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  object-fit:contain;
  border-radius:7px;
  background:#fff;
  border:1px solid #e4eaee;
  padding:2px;
}
.g-port-logo-fallback{
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border-radius:7px;
  display:grid;
  place-items:center;
  background:#edf2f4;
  border:1px solid #e1e7ea;
  color:#183247;
  font-size:11px;
  font-weight:950;
}
@media(max-width:520px){
  .g-port-company{padding-left:34px}
  .g-port-logo,.g-port-logo-fallback{width:25px;height:25px}
}


/* =========================================================
   NEWSLETTER SETTIMANALE — iscrizione diretta dalla landing
   ========================================================= */
.newsletter-copy{min-width:0}
.newsletter-form{margin-top:10px}
.newsletter-form-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.newsletter-form-row input[type="email"]{
  width:100%;
  min-width:0;
  height:38px;
  border:1px solid #d7e1e8;
  border-radius:8px;
  padding:0 11px;
  background:#fff;
  color:#0a2235;
  font:inherit;
  font-size:11px;
  outline:none;
}
.newsletter-form-row input[type="email"]:focus{
  border-color:#2f9c5a;
  box-shadow:0 0 0 3px rgba(47,156,90,.12);
}
.newsletter-form-row button{
  height:38px;
  border:0;
  border-radius:8px;
  padding:0 14px;
  background:#35a853;
  color:#fff;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.newsletter-form-row button:hover{filter:brightness(.95)}
.newsletter-consent{
  display:flex;
  gap:7px;
  align-items:flex-start;
  margin-top:8px;
  color:#71808c;
  font-size:8px;
  line-height:1.35;
}
.newsletter-consent input{margin:1px 0 0;flex:0 0 auto}
.newsletter-hp{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
}
.newsletter-message{
  margin-top:9px;
  padding:8px 10px;
  border-radius:8px;
  font-size:9px;
  line-height:1.35;
}
.newsletter-message.ok{background:#eaf8ef;color:#176b3b}
.newsletter-message.error{background:#fff0ed;color:#9b2c1f}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
@media(max-width:520px){
  .newsletter-form-row{grid-template-columns:1fr}
  .newsletter-form-row button{width:100%}
}
