/* =============================================================
   RABONA CHILD — MAIN CSS
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --bg-main:      #0f1923;
  --bg-card:      #1a2632;
  --bg-header:    #111d28;
  --bg-footer:    #0d1720;
  --yellow:       #d4f000;
  --yellow-hover: #bfdb00;
  --text-primary:   #ffffff;
  --text-secondary: #8a9bb0;
  --text-muted:     #5a6a7a;
  --border:       #1e2e3d;
  --header-h:     64px;
  --font: 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

a { text-decoration: none; color: inherit; }

/* =============================================================
   HEADER
   ============================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.site-header__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 16px;
  text-decoration: none;
}
.site-header__logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.site-header__logo-text {
  font-size: 17px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Nav desktop */
.site-header__nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-list > li > a {
  display: block;
  padding: 8px 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 4px;
  white-space: nowrap;
  transition: color .15s, background .15s;
  line-height: 1;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-page-ancestor > a {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
.nav-list > li { position: relative; }
.nav-list > li > ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  list-style: none;
  padding: 6px 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-list > li:hover > ul { display: block; }
.nav-list > li > ul > li > a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-list > li > ul > li > a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* Right block */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Buttons */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  height: 36px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-header--accedi {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-header--accedi:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.btn-header--registrati {
  background: var(--yellow);
  color: #0f1923;
  border-color: var(--yellow);
}
.btn-header--registrati:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
}

/* Burger */
.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 9px;
  flex-shrink: 0;
}
.site-header__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  z-index: 999;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.mobile-menu.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu__inner { padding: 12px 20px 48px; }

.mobile-nav-list { list-style: none; }
.mobile-nav-list > li > a {
  display: block;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
  text-decoration: none;
}
.mobile-nav-list > li > a:hover,
.mobile-nav-list > li.current-menu-item > a { color: var(--text-primary); }
.mobile-nav-list > li > ul { list-style: none; padding-left: 16px; }
.mobile-nav-list > li > ul > li > a {
  display: block;
  padding: 11px 4px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color .15s;
}
.mobile-nav-list > li > ul > li > a:hover { color: var(--text-secondary); }

.mobile-menu__actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
}
.mobile-menu__actions .btn-header {
  flex: 1;
  height: 46px;
  font-size: 15px;
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

/* Top bar */
.footer-topbar { border-bottom: 1px solid var(--border); padding: 14px 0; }
.footer-topbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-topbar__left { display: flex; align-items: center; gap: 10px; }
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background .15s;
}
.footer-lang:hover { background: rgba(255,255,255,0.08); }
.footer-lang__flag { font-size: 15px; line-height: 1; }
.footer-livechat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background .15s;
}
.footer-livechat:hover { background: rgba(255,255,255,0.08); }
.footer-topbar__right { display: flex; align-items: center; gap: 8px; }
.footer-social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.footer-social:hover { color: var(--text-primary); background: rgba(255,255,255,0.09); }

/* Nav columns */
.footer-nav { padding: 36px 0 28px; border-bottom: 1px solid var(--border); }
.footer-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px 14px;
}
.footer-col__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-primary);
  margin-bottom: 12px;
  white-space: nowrap;
}
.footer-col__list { list-style: none; }
.footer-col__list li a {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  padding: 4px 0;
  line-height: 1.4;
  transition: color .15s;
  text-decoration: none;
}
.footer-col__list li a:hover { color: var(--text-secondary); }

/* Payments */
.footer-payments { padding: 20px 0; border-bottom: 1px solid var(--border); }
.footer-payments__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-payments__label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); flex-shrink: 0;
}
.footer-payments__logos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payment-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px; font-weight: 700;
  color: var(--text-secondary); white-space: nowrap;
}

/* Bottom */
.footer-bottom { padding: 28px 0; }
.footer-bottom__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center;
}
.footer-age__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  font-size: 13px; font-weight: 900; color: var(--text-muted);
}
.footer-bottom__text {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.7; max-width: 680px;
}
.footer-bottom__text a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom__text a:hover { color: var(--text-primary); }
.footer-bottom__copy { font-size: 12px; color: var(--text-muted); }

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1200px) {
  .footer-nav__inner { grid-template-columns: repeat(4, 1fr); }
  .nav-list > li > a { padding: 8px 6px; font-size: 11.5px; }
}

@media (max-width: 900px) {
  .footer-nav__inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile header */
  .site-header__nav     { display: none; }
  .site-header__actions { display: none; }
  .site-header__burger  { display: flex; }
  .site-header__inner   { justify-content: space-between; }
  .site-header__logo    { margin-right: 0; }
  .site-header__right   { margin-left: auto; }

  .footer-nav__inner { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}

@media (max-width: 480px) {
  .site-header__inner   { padding: 0 14px; }
  .footer-nav__inner    { grid-template-columns: 1fr 1fr; }
  .footer-bottom__text  { font-size: 12px; }
}
