:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#666;
  --line:#e6e6e6;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 14px;
  --container: 1200px;
}

*{ box-sizing:border-box; }
html{
  font-size: 14px;   /* 👈 PRIMA ERA ~16px */
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  line-height: 1.5;
}

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.container-fluid{
  width: 100%;
  padding: 0 24px;   /* spazio laterale stile Topps */
  margin: 0;
}

/* più respiro su schermi grandi */
@media (min-width: 1200px){
  .container-fluid{
    padding: 0 32px;
  }
}


/* HEADER */
.site-header{
  border-bottom:1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

/* LOGO */
.brand{ display:flex; align-items:center; }
.logo{ display:flex; align-items:center; text-decoration:none; }
.logo-img{
  height: 77px;   /* prova 44-56 */
  width: auto;
  display:block;
}

/* LOGO C&Cs */
.logo-badge-img{
  height: 50px;   /* più piccolo, stile sigillo */
  width: auto;
}

.page-title{
  margin-top: 28px;
  font-size: clamp(32px, 4vw, 48px);
}

/* MENU */
.main-nav{ flex: 1; } /* fa “respirare” e centra visivamente */
.nav-menu{
  list-style:none;
  display:flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items:center;
}
.nav-menu a{
  text-decoration:none;
  color:#111;
  font-weight:700;
}

/* AZIONI DESTRA */
.header-actions{
  display: flex;
  align-items: center;
  gap: 12px;

  /* 🔽 QUESTA È LA CHIAVE */
  margin-right: 48px;   /* prova 32–64px */
}
.search{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #e6e6e6;
  border-radius:999px;
  padding: 8px 12px;
  min-width: 320px;
  background:#fff;
}
.search input{
  border:0;
  outline:0;
  width:100%;
  font-size:14px;
}
.link{
  text-decoration:none;
  color:#111;
  font-weight:800;
}


/* BARRA "UEFA/NBA..." -> SERIE 1 */
.league-bar{
  border-bottom:1px solid var(--line);
  background:#fff;
}
.league-pills{
  display:flex;
  gap:10px;
  padding: 10px 0;
  overflow:auto;
}
/* PILL */
.league-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border: 1px solid #e6e6e6;   /* grigio chiaro */
  border-radius:12px;
  text-decoration:none;
  color:#111;
  background:#fff;
  font-weight:800;
  font-size: 0.85rem;
}
.league-pill .league-icon{
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  display: block;
}
/* ICONA BITCOIN */
.league-icon{
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.league-pill.active{
  border-color:#111;
}
/* =========================
   HERO (Topps-like, pulito)
   ========================= */

.hero-full{
  width: 100%;
  padding: 0 16px;
  margin-top: 12px;
}

@media (min-width: 1200px){
  .hero-full{ padding: 0 24px; }
}

.hero-frame{
  width: 100%;
  height: 520px;              /* altezza “banner” */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  background: #f4f4f4;        /* colore delle “bande” */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img{
  width: 100%;
  height: 100%;
  object-fit: contain;        /* ✅ sempre immagine completa */
  display: block;
}

@media (max-width: 900px){
  .hero-frame{ height: 360px; }
}

/* TITOLO SOTTO */
.title-strip{ padding: 16px 0 20px; }
h1{
  margin:0;
  font-size: 54px;
  letter-spacing: -0.6px;
}

/* FOOTER (come allegato) */
.site-footer{
  border-top:1px solid var(--line);
  background:#fff;
  padding: 18px 0;
}
.footer-line{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  font-weight:700;
  color:#111;
}
.footer-link{
  color:#111;
  text-decoration:none;
  font-weight:700;
}
.footer-link:hover{
  text-decoration:underline;
}

/* RESPONSIVE */
@media (max-width: 720px){
  .nav-toggle{ display:inline-flex; }
  .nav-menu{
    display:none;
    position:absolute;
    top: 46px;
    left: 0;
    right: 0;
    flex-direction:column;
    background:#fff;
    border:1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav-menu.show{ display:flex; }
  .search{ min-width: 180px; }
  h1{ font-size: 38px; }
  .hero-placeholder{ height: 300px; }
}

/* PRIVACY MODAL - Topps-like */
.privacy-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}

.privacy-modal{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  width: min(420px, calc(100vw - 36px));
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.privacy-card{
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  border: 1px solid #eee;
}

.privacy-card h2{
  margin: 0 0 10px;
  font-size: 18px;
}

.privacy-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.privacy-globe{ font-size: 18px; }

.privacy-select{
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.privacy-text{
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.35;
  color: #222;
}
.privacy-text a{ color: #111; text-decoration: underline; }

.privacy-actions{
  display: grid;
  gap: 10px;
}

.privacy-btn{
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.privacy-btn.primary{
  background: #111;
  color: #fff;
  border-color: #111;
}

.privacy-btn.danger{
  background: #fff;
  color: #111;
}

.prefs-panel{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.prefs-title{
  font-weight: 800;
  margin-bottom: 10px;
}

.prefs-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.prefs-desc{
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.prefs-actions{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cookie-banner{
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  z-index: 9999;
  font-size: 14px;
}

.cookie-actions{
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cookie-actions button{
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
}

.cookie-actions button:hover{
  background: #eee;
}



/* COOKIE MODAL */
.privacy-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:9998;
}

.privacy-modal{
  position:fixed;
  left:24px;
  bottom:24px;
  width:min(420px, calc(100vw - 48px));
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  box-shadow:0 14px 50px rgba(0,0,0,.18);
  padding:18px;
  z-index:9999;
}

.privacy-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.privacy-lang{
  border:1px solid #ddd;
  border-radius:10px;
  padding:6px 10px;
  background:#fff;
}

.privacy-text{
  color:#222;
  line-height:1.35;
  margin: 8px 0 14px;
  font-size:14px;
}

.privacy-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.btn-primary, .btn-secondary{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}

.btn-primary{
  border-color:#111;
}

.prefs-panel{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #eee;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.prefs-actions{ margin-top:6px; }

[hidden]{ display:none !important; }



/* === MEGA MENU stile Topps (semplificato) === */

.main-nav{
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-item{ position: relative; }
.nav-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  color: #111;
  padding: 10px 10px;
  border-radius: 10px;
}
.nav-link:hover{ background: rgba(0,0,0,.04); }

.nav-caret{ font-size: 12px; opacity: .7; }

/* pannello */
.mega{
  position: absolute;
  left: 0;
  top: 100%;                 /* ✅ niente gap */
  margin-top: 8px;           /* se vuoi spazio VISIVO, ok */
  width: min(980px, calc(100vw - 40px));
  background: #0b0b0b;
  color: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9999;
}

/* ✅ ponte invisibile: evita che si chiuda mentre scendi col mouse */
.mega::before{
  content:"";
  position:absolute;
  top:-12px;     /* altezza ponte */
  left:0;
  right:0;
  height:12px;
}


.mega-title{
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 10px;
}

.mega-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;  /* grosso come Topps */
  font-weight: 700;
}
.mega-link:hover{
  background: rgba(255,255,255,.08);
}

.mega-icon{
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* apertura su hover (desktop) */
.has-mega:hover .mega,
.has-mega:focus-within .mega{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* mobile: niente hover, useremo click via JS */
@media (max-width: 900px){
  .mega{
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px;
    width: auto;
  }
}


.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.logo-link:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

/* === CaioCards Cookie (override: sempre cliccabile, sopra a tutto) === */
#privacyOverlay.privacy-overlay{ z-index: 20000 !important; pointer-events: auto; }
#privacyModal.privacy-modal{ z-index: 20001 !important; pointer-events: auto; }
#cookieBanner.cookie-banner{ z-index: 20001 !important; }

html.cc-modal-open, body.cc-modal-open{
  overflow: hidden;
}

.mega--wide{ min-width: 920px; }
.mega-3col{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 44px; }

@media (max-width: 980px){
  .mega--wide{ min-width:auto; width: calc(100vw - 24px); }
  .mega-3col{ grid-template-columns: 1fr; gap: 18px; }
}

/* Parallel styling */
.cl-item[data-code^="PAR"]{
  border-color: rgba(120,200,255,.35);
  background: rgba(120,200,255,.08);
}

.cl-item[data-code^="PAR"] .cl-code{
  color: rgb(120,200,255);
}

.s-card:hover .s-img img{
  transform: scale(1.05);
}
.s-img img{
  transition: transform .18s ease;
}