:root {
  --bg-dark: #0a051b;
  --bg-card: #ffffff;
  --bg-header: #12092e;
  --bg-purple-banner: #1c0f45;
  --bg-sub-bar: #160c38;
  --text-main: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --accent-cyan: #00f2fe;
  --accent-purple: #4f46e5;
  --btn-purple: #1b103c;
  --btn-purple-hover: #2a1a5e;
  --badge-bg: #f1f5f9;
  --border-color: #261654;
  --card-border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
}

/* Header Navbar */
header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.2rem;
}

.nav-menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--accent-cyan);
}

.btn-submit {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem 1.5rem 1rem;
}

.hero .category-tag {
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.hero h1 span {
  color: var(--accent-cyan);
}

.hero p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.hero-features span i {
  color: var(--accent-cyan);
  margin-right: 0.3rem;
}

/* Sub-Bar Metodi */
.sub-bar {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem auto;
  background-color: var(--bg-sub-bar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.sub-bar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #e2e8f0;
  font-size: 0.8rem;
  text-decoration: none;
}

.sub-bar-item i {
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.sub-bar-item .sub-title {
  font-weight: 600;
  display: block;
}

.sub-bar-item .sub-desc {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Grid Carte */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 0.9rem;
  color: var(--text-dark);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

/* Immagine Logo Rettangolare 125x82 px */
.card-thumb {
  width: 125px;
  height: 82px;
  background-color: #f8fafc;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-title-zone {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.card-title-zone h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.badges {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-blue {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-pink {
  background-color: #fce7f3;
  color: #be185d;
}

.badge-green {
  background-color: #dcfce7;
  color: #15803d;
}

/* Descrizione e Feature Lista */
.card-body {
  font-size: 0.75rem;
  color: #475569;
  margin-bottom: 0.8rem;
}

.card-subtitle {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.card-features {
  list-style: none;
}

.card-features li {
  margin-bottom: 0.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.2;
}

.card-features li i {
  color: #3b82f6;
  font-size: 0.65rem;
  margin-top: 0.2rem;
}

.proof-tag {
  display: inline-block;
  font-size: 0.65rem;
  color: #16a34a;
  background-color: #f0fdf4;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* Footer Scheda */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.6rem;
  gap: 0.5rem;
}

.withdraw-to {
  font-size: 0.65rem;
  color: #64748b;
}

.withdraw-to strong {
  display: block;
  color: #0f172a;
  font-size: 0.7rem;
}

.btn-earn {
  background-color: var(--btn-purple);
  color: #ffffff;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s;
}

.btn-earn:hover {
  background-color: var(--btn-purple-hover);
}

/* Banner Intermedio */
.middle-banner {
  background-color: var(--bg-purple-banner);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: left;
  padding: 2rem 1rem;
  margin: 2.5rem auto;
  max-width: 1200px;
}

.middle-banner h2 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.middle-banner h2 span {
  color: var(--accent-cyan);
}

.middle-banner p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.middle-banner .banner-tags {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.middle-banner .banner-tags span i {
  color: var(--accent-cyan);
  margin-right: 0.3rem;
}

/* Pulsante per il Banner Intermedio */
.banner-action {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00f2fe 0%, #0099ff 100%);
  color: #0a051b;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

/* Footer Sfondo */
footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: #ffffff;
}

.spacer {
  height: 30px; /* Regola l'altezza dello spazio desiderato */
  width: 100%;  /* Occupa tutta la larghezza */
}

/* Responsive */
/* Pulsante Hamburger nascondere su Desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.mobile-btn-container {
  display: none;
}

/* Gestione Mobile */
@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .desktop-btn {
    display: none;
  }

  .mobile-btn-container {
    display: block;
    margin-top: 0.5rem;
  }

  .nav-menu {
    display: none; /* Nascosto di default su mobile */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    display: flex; /* Visibile quando si clicca l'hamburger */
  }

  .nav-menu a {
    font-size: 1rem;
    display: block;
  }

  .sub-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================
   STILI PER PAGINA ARTICOLO / PRIVACY POLICY
   ========================================== */

/* Contenitore Pagina */
.page-container {
  max-width: 900px;
  margin: 2.5rem auto 4.0rem auto;
  padding: 0 1rem;
}

/* Card principale del contenuto */
.content-box {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Tipografia Titoli */
.content-box h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.content-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.4rem;
}

.content-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

/* Paragrafi e Testo */
.content-box p {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.content-box .meta-info {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* Link */
.content-box a {
  color: #0284c7;
  text-decoration: underline;
  font-weight: 600;
}

.content-box a:hover {
  color: #0369a1;
}

/* Elenchi Puntati e Numerati */
.content-box ul, 
.content-box ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #334155;
  font-size: 0.95rem;
}

.content-box li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Separatore */
.separator {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 1.8rem 0;
}

/* Gestione Immagini */
.content-image.full-width img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}


.content-image {
  margin: 1.8rem 0;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.image-caption {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.4rem;
}

/* Box Informativo Avviso */
.callout-box {
  background-color: #f0f9ff;
  border-left: 4px solid var(--accent-cyan);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.8rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: #0c4a6e;
  font-size: 0.9rem;
}

.callout-box i {
  font-size: 1.2rem;
  color: #0284c7;
  margin-top: 0.1rem;
}

/* Responsive Articolo */
@media (max-width: 768px) {
  .content-box {
    padding: 1.5rem 1rem;
  }
  .content-box h1 {
    font-size: 1.5rem;
  }
  .content-box h2 {
    font-size: 1.2rem;
  }
}
a {
    color: #FFF;
}

.btn-banner-articoli {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00f2fe 0%, #0099ff 100%)!important;
    color: #0a051b!important;
    text-decoration: none!important;
    font-weight: 800!important;
    font-size: 0.85rem;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}
