/* ═══════════════════════════════════════════════════════════════

2a ── HEADER PRINCIPALE (sticky)

═══════════════════════════════════════════════════════════════ */

/* ═══ Old Portal Header CSS removed — now in shared/omnia-header-v2.css ═══ */
/* ── Logo ── */

.logo-s { display: flex; align-items: center; gap: 0.75rem; }

.logo-i { width: 38px; height: 38px; border-radius: 8px; }

.logo {

font-family: var(--fd);

font-size: 1.8rem;

font-weight: 600;

background: linear-gradient(135deg, var(--g), var(--cy));

-webkit-background-clip: text;

-webkit-text-fill-color: transparent;

line-height: 1;

}

.logo-sub {

font-family: var(--fd);

font-size: 0.80rem;

font-weight: 600;

color: var(--tm);

text-transform: uppercase;

letter-spacing: 2px;

}

/* ── Header right controls ── */

.hdr-r { display: flex; align-items: center; gap: 1rem; }

/* ── Bottone Preferiti ── */

.fav-b {

display: flex;

align-items: center;

gap: 0.4rem;

padding: 0.5rem 1rem;

border-radius: 7px;

background: rgba(245, 158, 11, 0.1);

border: 1px solid rgba(245, 158, 11, 0.25);

color: var(--o);

font-size: 0.92rem;

font-weight: 600;

cursor: pointer;

font-family: var(--fb);

transition: all 0.3s;

}

.fav-b:hover { background: rgba(245, 158, 11, 0.2); }

.fav-cnt {

font-family: var(--fm);

background: rgba(245, 158, 11, 0.2);

padding: 0.15rem 0.4rem;

border-radius: 3px;

font-size: 0.84rem;

}

/* ── Indicatore Live ── */

.live {

display: flex;

align-items: center;

gap: 0.4rem;

font-size: 0.84rem;

font-weight: 600;

color: var(--tm);

text-transform: uppercase;

letter-spacing: 1px;

}

.pd {

width: 7px; height: 7px;

background: var(--g);

border-radius: 50%;

animation: pu 2s infinite;

}

.upd { font-family: var(--fm); font-size: 0.84rem; color: var(--ts); }

/* ═══════════════════════════════════════════════════════════════

2b ── TICKER SCORREVOLE

═══════════════════════════════════════════════════════════════ */

.tkr {

background: var(--bg2);

border-bottom: 1px solid var(--br);

overflow: hidden;

height: 34px;

position: sticky;

top: 0;

z-index: 100;

}

.tkr-t {

display: flex;

gap: 1.4rem;

animation: scr 90s linear infinite;

width: fit-content;

align-items: center;

height: 34px;

}

.tkr-i {

display: flex;

align-items: center;

gap: 0.35rem;

white-space: nowrap;

padding: 0 0.4rem;

}

.tkr-l { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.tkr-flag { display: inline-block; vertical-align: middle; object-fit: cover; width: 18px; height: 14px; max-width: 22px; max-height: 16px; border-radius: 2px; flex-shrink: 0; }
.tkr-icon { display: inline-block; vertical-align: middle; }
.tkr-exch { font-size: 0.65rem; color: var(--tm); margin-left: 4px; }

.tkr-s { font-family: var(--fm); font-weight: 700; font-size: 0.74rem; }

.tkr-p { font-family: var(--fm); font-size: 0.74rem; font-weight: 600; }

.tkr-ch {

font-family: var(--fm);

font-size: 0.84rem;

font-weight: 700;

padding: 0.15rem 0.4rem;

border-radius: 3px;

}

.tkr-ch.up { color: var(--g); background: var(--gd); }

.tkr-ch.dn { color: var(--r); background: var(--rd); }

/* ═══════════════════════════════════════════════════════════════

2c ── CONTAINER PRINCIPALE

═══════════════════════════════════════════════════════════════ */

.ctn {

max-width: 1660px;

margin: 0 auto;

padding: 1.25rem 1.5rem;

width: 100%;

}

/* ═══════════════════════════════════════════════════════════════

2d ── SEZIONE HERO

═══════════════════════════════════════════════════════════════ */

.hero {

position: relative;

padding: 2.5rem 0 1.5rem;

margin-bottom: 1.5rem;

}

.hero-bg {

position: absolute;

inset: 0;

background: linear-gradient(

135deg,

rgba(0,255,136,0.03),

rgba(59,130,246,0.04),

rgba(168,85,247,0.02)

);

border-radius: 20px;

border: 1px solid var(--br);

}

.hero-c { position: relative; z-index: 1; text-align: center; }

/* ── Badge hero ── */

.hero-badge {

display: inline-flex;

align-items: center;

gap: 0.4rem;

padding: 0.35rem 0.9rem;

border-radius: 16px;

background: var(--gd);

border: 1px solid rgba(0,255,136,0.2);

font-size: 0.84rem;

font-weight: 700;

color: var(--g);

text-transform: uppercase;

letter-spacing: 1px;

margin-bottom: 0.75rem;

}

/* ── Titolo hero ── */

.hero h1 {

font-family: var(--fd);

font-size: 3.3rem;

font-weight: 500;

letter-spacing: -2px;

line-height: 1.1;

margin-bottom: 0.5rem;

}

.hero h1 .gt {

background: linear-gradient(135deg, var(--g), var(--cy), var(--b));

-webkit-background-clip: text;

-webkit-text-fill-color: transparent;

}

/* ── Sottotitolo hero ── */

.hero p {

font-size: 1.20rem;

color: var(--ts);

max-width: 580px;

margin: 0 auto 1.25rem;

}

/* ── Statistiche hero ── */

.hero-st {

display: flex;

justify-content: center;

gap: 2.5rem;

flex-wrap: wrap;

}

.hero-s { text-align: center; }

.hero-sv { font-family: var(--fm); font-size: 1.5rem; font-weight: 700; }

.hero-sl {

font-size: 0.80rem;

color: var(--tm);

text-transform: uppercase;

letter-spacing: 1px;

font-weight: 600;

}

/* ═══════════════════════════════════════════════════════════════

2e ── CARD METRICHE (Fear & Greed, Market Cap, ecc.)

═══════════════════════════════════════════════════════════════ */

.met-g {

display: grid;

grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

gap: 0.75rem;

margin-bottom: 1.5rem;

}

.met-c {

background: var(--card);

border: 1px solid var(--br);

border-radius: 12px;

padding: 1.2rem;

transition: all 0.3s;

position: relative;

overflow: hidden;

}

.met-c::before {

content: '';

position: absolute;

top: 0; left: 0; right: 0;

height: 2px;

background: linear-gradient(90deg, transparent, var(--g), transparent);

opacity: 0;

transition: opacity 0.3s;

}

.met-c:hover {

border-color: var(--brb);

transform: translateY(-2px);

box-shadow: 0 10px 30px rgba(0,0,0,0.3);

}

.met-c:hover::before { opacity: 1; }

.met-l {

font-size: 0.84rem;

font-weight: 700;

color: var(--tm);

text-transform: uppercase;

letter-spacing: 1px;

margin-bottom: 0.4rem;

}

.met-v {

font-family: var(--fm);

font-size: 1.7rem;

font-weight: 700;

line-height: 1;

margin-bottom: 0.2rem;

}

.met-ch { font-family: var(--fm); font-size: 0.92rem; font-weight: 600; }

.met-ch.up { color: var(--g); }

.met-ch.dn { color: var(--r); }

/* ── Gauge Fear & Greed ── */

.gauge { margin-top: 0.5rem; }

.gauge-b {

height: 9px;

border-radius: 99px;

background: linear-gradient(90deg, var(--r), var(--o), var(--y), #a3e635, var(--g));

position: relative;

margin-bottom: 0.4rem;

}

.gauge-i {

position: absolute;

top: 50%;

transform: translate(-50%, -50%);

width: 15px; height: 15px;

background: white;

border: 3px solid var(--bg);

border-radius: 50%;

box-shadow: 0 0 8px rgba(255,255,255,0.5);

transition: left 0.6s;

}

.gauge-la {

display: flex;

justify-content: space-between;

font-size: 0.80rem;

font-weight: 600;

color: var(--tm);

}

/* ── TICKER scroll animation ── */
@keyframes scr {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
