/* =========================
   Runnix — Global base
   ========================= */
:root{
  --bg:#f5f5f7;
  --text:#1d1d1f;
  --muted:rgba(0,0,0,.62);
  --border:rgba(0,0,0,.08);
  --shadow:0 10px 30px rgba(0,0,0,.06);
  --radius:24px;
  --maxw:1200px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Zalando Sans SemiExpanded', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 20px;
}

/* =========================
   HEADER
   ========================= */
.header{
  width:100%;
  background:var(--bg);
  border-bottom:1px solid rgba(0,0,0,0.06);
}

.container.nav{
  max-width:980px;
  margin:0 auto;
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  font-weight:700;
  color:var(--text);
}

.brand img{
  width:40px;
  height:40px;
  object-fit:contain;
}

.center-links{
  display:flex;
  gap:16px;
  align-items:center;
}

.center-links a{
  font-size:14px;
  color:var(--text);
  opacity:.85;
  transition:opacity .2s ease;
}

.center-links a:hover{ opacity:1; }

.right-cta{
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}

.btn-app{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 30px;
  border-radius:999px;
  background:#1d1d1f;
  color:#fff;
  font-size:14px;
  font-weight:700;
}

/* =========================
   HAMBURGER (mobile only)
   ========================= */
.nav-toggle{
  display:none;              /* desktop non si vede */
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.14);
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.nav-toggle:hover{
  border-color:rgba(0,0,0,0.22);
}

.nav-toggle__icon{
  width:18px;
  height:2px;
  background:#1d1d1f;
  border-radius:999px;
  position:relative;
  display:block;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:#1d1d1f;
  border-radius:999px;
}
.nav-toggle__icon::before{ top:-6px; }
.nav-toggle__icon::after{ top:6px; }

/* brand */
.brand__logo{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}
.brand__text{ font-weight:700; }

/* =========================
   Drawer mobile
   ========================= */
.mobile-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.40);
  z-index:999;
  opacity:0;
  transition:opacity .22s ease;
  pointer-events:none; /* IMPORTANT: non blocca click quando chiuso */
}

.mobile-menu{
  position:fixed;
  top:0;
  left:0;
  height:100dvh;
  width:min(360px, 88vw);
  background:#fff;
  z-index:1000;
  transform:translateX(-100%);
  transition:transform .22s ease;
  border-right:1px solid rgba(0,0,0,0.06);
  padding:18px 18px 22px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.mobile-menu__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.mobile-menu__title{
  font-weight:900;
  color:#1d1d1f;
}

.mobile-menu__close{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  cursor:pointer;
  font-size:16px;
  line-height:1;
}

.mobile-menu__links{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding-top:6px;
}

.mobile-menu__links a{
  font-size:16px;
  font-weight:900;
  color:#1d1d1f;
  padding:12px 10px;
  border-radius:12px;
  opacity:.92;
}

.mobile-menu__links a:hover{
  background:rgba(0,0,0,0.04);
  opacity:1;
}

/* open state (JS mette body.menu-open) */
body.menu-open .mobile-menu{ transform:translateX(0); }
body.menu-open .mobile-menu-overlay{
  opacity:1;
  pointer-events:auto;
}

/* =========================
   Mobile layout header
   ========================= */
@media (max-width:980px){
  .center-links{ display:none; }
  .nav-toggle{ display:inline-flex; }

  .container.nav{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
    gap:10px;
  }

  .nav-toggle{ justify-self:start; }
  .brand{ justify-self:center; }
  .right-cta{ justify-self:end; }

  /* Mobile: nascondi logo, lascia solo scritta */
  .brand__logo{ display:none; }
}

/* desktop: overlay/drawer non servono */
@media (min-width:981px){
  .mobile-menu,
  .mobile-menu-overlay{
    display:none !important;
  }
}

/* ===== Mobile menu divider ===== */
.mobile-menu__divider{
  width:100%;
  height:1px;
  background:rgba(0,0,0,0.08);
  margin:12px 0 14px;
}

/* ===== Mobile menu CTA ===== */
/* ===== Mobile menu CTA ===== */
.mobile-menu__cta{
  padding-top:4px;
}

/* CTA mobile: outline */
.btn-app--mobile{
  width:100%;
  justify-content:center;
  font-size:15px;
  padding:12px 16px;

  background:transparent;          /* vuoto */
  color:#1d1d1f;                   /* testo nero */
  border:1.5px solid #1d1d1f;      /* stroke nero */
  border-radius:999px;
}

/* hover: leggero feedback, senza stravolgere */
.btn-app--mobile:hover{
  background:rgba(0,0,0,0.04);     /* velo leggero */
  color:#1d1d1f;
  border-color:#1d1d1f;
}



/* =========================
   FOOTER RNX (namespaced)
   ========================= */
.rnx-footer{
  background:#000;
  border-top:1px solid rgba(255,255,255,.06);
  color:#c9ced3;
  padding:90px 0 50px;
}

.rnx-footer__inner{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:28px;
  align-items:start;
}

.rnx-footer__col{ text-align:left; }

.rnx-footer__brandcol{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding-right:8px;
}

.rnx-footer__logo{
  width:34px;
  height:34px;
  display:block;
}

.rnx-footer__title{
  font-size:15px;
  font-weight:600;
  margin:0 0 10px;
  color:#fff;
}

.rnx-footer__links{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.rnx-footer__links a{
  color:#D5D9DE;
  font-size:14px;
  font-weight:400;
  opacity:.95;
  transition:color .2s ease, opacity .2s ease;
}

.rnx-footer__links a:hover{
  color:#B0E655;
  opacity:1;
}

.rnx-footer__stores,
.rnx-footer__social{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}

.rnx-footer__iconbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  line-height:0;
  opacity:.92;
  transition:opacity .2s ease, transform .2s ease;
}

.rnx-footer__iconbtn:hover{
  opacity:1;
  transform:translateY(-1px);
}

.rnx-footer__stores img{
  height:34px;
  width:auto;
  display:block;
}

.rnx-footer__social img{
  height:40px;
  width:auto;
  display:block;
}

.rnx-footer__bottom{
  width:100%;
  max-width:1200px;
  margin:50px auto 0;
  padding:20px 20px 0;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.06);
  font-size:13px;
  color:#AEB4BB;
}

@media (max-width:1020px){
  .rnx-footer__inner{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:640px){
  .rnx-footer{
    padding:70px 0 40px;
  }
  .rnx-footer__inner{
    grid-template-columns:1fr;
  }
  .rnx-footer__bottom{
    margin-top:40px;
  }
}
