/* =========================================
   1. FONTS & GLOBALI
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap");

:root {
  --bg-dark: #050505;
  --bg-card: #111111;
  --neon-green: #44d62c;
  --text-main: #ffffff;
  --text-muted: #e0e0e0;
}
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Roboto", sans-serif;
  padding-top: 110px; /* Spazio per navbar + breadcrumbs */
}
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn-neon,
.footer-title,
.brand-font {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* HEADER */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #999;
  font-size: 0.75rem;
  padding: 6px 0;
  border-bottom: 1px solid #222;
  z-index: 1050;
}
.navbar {
  top: 28px;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: rgba(0, 0, 0, 0.95) !important;
  border-bottom: 1px solid #333;
  z-index: 1040;
}
.navbar-brand img {
  height: 35px;
  mix-blend-mode: screen;
  margin-top: -5px;
}
.nav-link {
  color: #eee !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-right: 15px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--neon-green) !important;
}
.dropdown-menu-dark {
  background-color: var(--bg-card);
  border: 1px solid #333;
  margin-top: 10px;
}
.dropdown-item {
  color: #ccc;
  font-size: 0.9rem;
  padding: 10px 20px;
}
.dropdown-item:hover {
  background-color: #222;
  color: var(--neon-green);
  padding-left: 25px;
}

/* LINGUE & BREADCRUMBS */
.lang-sep {
  color: #444;
  margin: 0 5px;
  font-size: 0.7rem;
}
.lang-link {
  color: #888;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: bold;
}
.lang-link.active {
  color: var(--neon-green);
  border-bottom: 1px solid var(--neon-green);
}

.smart-breadcrumbs {
  position: fixed;
  top: 86px;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.98);
  border-bottom: 1px solid #222;
  padding: 5px 0;
  z-index: 1030;
  font-size: 0.75rem;
}
.smart-breadcrumbs a {
  color: #888;
  text-decoration: none;
  text-transform: uppercase;
}
.smart-breadcrumbs a:hover {
  color: var(--neon-green);
}
.smart-breadcrumbs .separator {
  color: #444;
  margin: 0 8px;
}
.smart-breadcrumbs .current {
  color: var(--neon-green);
  font-weight: bold;
  text-transform: uppercase;
}

/* In home non ci sono breadcrumbs, quindi riduciamo il padding */
body.home-page {
  padding-top: 90px;
}

/* HERO */
.hero-section {
  position: relative;
  margin-top: -30px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), #050505),
    url("images/dataquanto.jpg");
  background-size: cover;
  background-position: center;
  height: 75vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 7rem;
}
#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s;
}
#hero-video.active {
  opacity: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Hero text fade effect for video */
.hero-content h1,
.hero-content p {
  transition: opacity 0.8s ease-in-out;
  opacity: 1;
}

.hero-content.text-hidden h1,
.hero-content.text-hidden p {
  opacity: 0;
}
.btn-neon {
  background: transparent;
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  font-weight: bold;
  padding: 12px 35px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  text-transform: uppercase;
  font-family: "Orbitron";
}
.btn-neon:hover {
  background: var(--neon-green);
  color: black;
  box-shadow: 0 0 20px var(--neon-green);
}

/* CARDS */
.prize-card {
  cursor: pointer;
  background: #111;
  border: 1px solid #333;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s;
}
.prize-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-green);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.prize-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid #222;
}
.prize-card .card-title {
  color: #fff !important;
  font-size: 1.1rem;
}
.prize-card .card-text {
  color: #ddd !important;
  font-size: 0.9rem;
}

/* PAGE: DRAWS */
.draws-hero {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, #000000 85%),
    url("images/draw.jpeg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--neon-green);
  padding: 40px 0 60px 0;
}
.honesty-box {
  border: 1px solid var(--neon-green);
  background: rgba(0, 20, 0, 0.85);
  padding: 2rem;
  max-width: 900px;
  margin: 1.5rem auto;
  border-radius: 4px;
  text-align: left;
}
.honesty-box h4 {
  color: #ffff00 !important;
  font-weight: bold;
}
.honesty-box p {
  color: #fff !important;
  font-size: 1.05rem;
}
.infinity-number {
  font-family: "Courier New", monospace;
  font-size: 5rem;
  font-weight: bold;
  color: var(--neon-green);
  text-shadow: 0 0 15px var(--neon-green);
}
.countdown-section {
  background: #000;
  padding: 2rem 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  text-align: center;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.count-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 4rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  display: block;
  line-height: 1;
}
.count-label {
  color: var(--neon-green);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
}
.minutes-green, .seconds-green {
  color: var(--neon-green) !important;
}
.registration-counter {
  margin: 10px 0;
}
.reg-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 3rem;
  font-weight: bold;
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(68, 214, 44, 0.5);
}
.protocol-card h4 {
  color: #fff !important;
}
.protocol-card p {
  color: #ddd !important;
}
.protocol-icon {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  background: rgba(255, 255, 255, 0.05);
}

/* PAGE: ABOUT & TRUST */
.about-hero {
  padding: 120px 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.9)), 
              url('images/about-main-position.jpeg'); 
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #333;
  position: relative;
}
.trust-hero {
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #333;
  position: relative;
}
.tech-office-img {
  width: 100%;
  border: none;
  filter: contrast(1.1) brightness(0.9);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* About page specific styles */
.breadcrumb-area { 
  background-color: #000; 
  border-bottom: 1px solid #222; 
  padding: 15px 0; 
  margin-top: 28px; 
}
.breadcrumb-item a { 
  color: #888; 
  text-decoration: none; 
  transition: color 0.3s; 
}
.breadcrumb-item a:hover { 
  color: var(--neon-green); 
}
.breadcrumb-item.active { 
  color: var(--neon-green); 
  font-weight: bold; 
}
.breadcrumb-item + .breadcrumb-item::before { 
  color: #444; 
}

.tech-card {
  background: #151515; 
  border: 1px solid #333; 
  padding: 2rem; 
  border-radius: 8px; 
  height: 100%;
  transition: transform 0.3s;
}
.tech-card:hover { 
  transform: translateY(-5px); 
  border-color: var(--neon-green); 
}
.tech-icon { 
  font-size: 2.5rem; 
  color: var(--neon-green); 
  margin-bottom: 1rem; 
}
.tech-card h4 { 
  color: white; 
  font-family: 'Orbitron', sans-serif; 
  font-size: 1.1rem; 
}
.tech-card p { 
  color: #aaa; 
  font-size: 0.9rem; 
  line-height: 1.6; 
}

.numbers-section {
  background: linear-gradient(90deg, #0a0a0a, #1a1a1a);
  border-top: 1px solid #333; 
  border-bottom: 1px solid #333;
  padding: 4rem 0;
}
.stat-number {
  font-family: 'Orbitron', sans-serif; 
  font-size: 2.5rem; 
  color: white; 
  font-weight: bold;
  text-shadow: 0 0 15px rgba(68, 214, 44, 0.5);
}
.stat-label { 
  color: var(--neon-green); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  font-size: 0.8rem; 
}

.hq-card {
  background: #111; 
  border: 1px solid #444; 
  padding: 2rem; 
  border-radius: 12px;
  max-width: 600px; 
  margin: 0 auto; 
  text-align: center;
}
.hq-text {
  color: #ddd;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.hq-sub {
  color: #999;
  font-size: 0.85rem;
}

.section-overline {
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}
.check-list-item {
  display: flex;
  align-items: start;
  margin-bottom: 2rem;
  background: #111;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #333;
}
.check-icon {
  font-size: 2rem;
  margin-right: 1.5rem;
  color: var(--neon-green);
}
.check-content h5 {
  color: #fff;
  font-weight: bold;
}
.check-content p {
  color: #ccc;
}

/* PAGE: HOW IT WORKS */
.step-card {
  background: linear-gradient(145deg, #151515, #0a0a0a);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 3rem 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.step-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-5px);
}
.step-number {
  position: absolute;
  top: -25px;
  right: 10px;
  font-size: 10rem;
  color: rgba(30, 30, 30, 1);
  -webkit-text-stroke: 2px rgba(68, 214, 44, 0.5);
  opacity: 1;
  z-index: 0;
}
.step-card:hover .step-number {
  -webkit-text-stroke: 0px;
  color: var(--neon-green);
  opacity: 0.15;
  transform: scale(1.1);
}
.step-content {
  position: relative;
  z-index: 2;
}
.step-card h3 {
  color: #ffffff !important;
  margin-bottom: 15px;
}
.step-card p {
  color: #f0f0f0 !important;
}

/* FOOTER */
footer {
  background: #080808;
  border-top: 1px solid #333;
  color: #aaa;
  font-size: 0.9rem;
}
.footer-title {
  color: white;
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--neon-green);
  padding-left: 10px;
}
.footer-link {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer-link:hover {
  color: var(--neon-green);
}
.btn-unsubscribe {
  display: inline-block;
  background: transparent;
  border: 2px solid #ff3333;
  color: #ff3333;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  margin-top: 0.5rem;
}
.btn-unsubscribe:hover {
  background: #ff3333;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
  transform: translateY(-1px);
}
.trust-bar {
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 1.5rem 0;
  margin: 1.5rem 0 2rem 0;
  background: rgba(255, 255, 255, 0.02);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.trust-icon {
  font-size: 2rem;
  color: var(--neon-green);
}
.trust-text h6 {
  color: white;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.2;
}
.trust-text small {
  color: #888;
  font-size: 0.7rem;
  display: block;
}
/* LANDING PAGE STYLES */
.landing-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-container-with-nav {
  position: relative;
  height: calc(100vh - 80px);
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
.bg-media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: background 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.form-box {
  position: relative;
  z-index: 10;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--neon-green);
  border-radius: 12px;
  padding: 1.8rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.5s ease;
  margin-top: -1rem;
}
.landing-container.focus-mode .overlay-dark {
  background: rgba(0, 0, 0, 0.92);
}
.landing-container.focus-mode .form-box {
  background: rgba(18, 18, 18, 1);
  box-shadow: 0 0 60px rgba(68, 214, 44, 0.3);
}

@media (max-width: 768px) {
  .trust-item {
    margin-bottom: 1.5rem;
    justify-content: center;
    text-align: left;
  }
  .count-number {
    font-size: 2.5rem;
  }
  .countdown-timer {
    gap: 15px;
  }
  .form-box {
    margin: 1rem;
    padding: 1.5rem;
    margin-top: -0.5rem;
  }
  .mini-menu {
    display: none;
  }
  .mini-nav {
    padding: 0.3rem 0;
  }
  /* Hide video on mobile homepage - keep only background image */
  #hero-video {
    display: none !important;
  }
}

/* =========================================
   LEGAL PAGES STYLES (PRIVACY, TERMS, ETC)
   ========================================= */
.legal-container {
    max-width: 1000px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    overflow: hidden;
}

.legal-header {
    text-align: center;
    padding: 3rem 2rem;
    border-bottom: 2px solid var(--neon-green);
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,255,136,0.08));
}

.legal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 1.3;
}

.legal-subtitle {
    color: var(--neon-green);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.legal-note {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
}

.legal-content {
    padding: 3rem 4rem;
    color: #bbb;
    line-height: 1.9;
    font-size: 0.95rem;
    font-weight: 300;
}

.legal-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: #f8f9fa;
    font-size: 1.3rem;
    margin: 3rem 0 2rem 0;
    border-left: 4px solid var(--neon-green);
    padding: 0.8rem 0 0.8rem 20px;
    background: rgba(0,255,136,0.05);
    border-radius: 0 8px 8px 0;
    font-weight: 400;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--neon-green);
    font-size: 1.1rem;
    margin: 2.5rem 0 1.2rem 0;
    font-weight: 500;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,255,136,0.2);
}

.legal-content p {
    margin-bottom: 1.8rem;
    text-align: justify;
    padding-left: 1rem;
}

.legal-content ul, .legal-content ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.legal-content li {
    margin-bottom: 0.8rem;
    color: #ccc;
}

.legal-content strong {
    color: #f8f9fa;
    font-weight: 500;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.legal-table th {
    background: rgba(0,255,136,0.12);
    border: 1px solid #444;
    padding: 1rem 1.2rem;
    text-align: left;
    color: var(--neon-green);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.legal-table td {
    border: 1px solid #444;
    padding: 1rem 1.2rem;
    color: #ccc;
    vertical-align: top;
    line-height: 1.6;
    font-size: 0.9rem;
}

.legal-footer {
    margin-top: 3rem;
    padding: 2rem 0 1rem 0;
    border-top: 1px solid rgba(0,255,136,0.2);
}

@media (max-width: 768px) {
    .legal-container {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .legal-header {
        padding: 2rem 1rem;
    }
    
    .legal-title {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .legal-content h2 {
        font-size: 1.1rem;
        padding-left: 15px;
        margin: 2rem 0 1.5rem 0;
    }
    
    .legal-content p {
        padding-left: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .legal-table {
        font-size: 0.8rem;
        margin: 1.5rem 0;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }
}
