/* Homepage / Auth — tema scuro ispirato al brand MRY MISTERY */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #e30513;
  --bg: #0a0a0a;
  --bg2: #141414;
  --text: #f2f2f2;
  --muted: #9a9a9a;
}

body.dark-theme {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

html.mry-menu-lock, body.mry-menu-lock {
  overflow: hidden !important;
  touch-action: none;
}

.mry-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5%; background: rgba(10,10,10,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mry-nav img { height: 34px; }
.mry-nav .links { display: flex; align-items: center; gap: 28px; }
.mry-nav .links a { color: var(--text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.mry-nav .links a:hover { color: var(--accent); text-decoration: none; }
.mry-nav .cta { background: var(--accent); color: #fff !important; padding: 9px 20px; border-radius: 30px; }
.mry-nav .cta:hover { background: #ff1a2e; }
.mry-nav .cta.pro-pill { background: #FFDE00; color: #0a0a0a !important; font-family: 'JetBrains Mono', 'Courier New', monospace; letter-spacing: .5px; }
.mry-nav .cta.pro-pill:hover { background: #fff; }

/* Dropdown menu (hover su desktop) */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #141414; border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 10px 0; min-width: 220px; box-shadow: 0 12px 30px rgba(0,0,0,.5); z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 9px 18px; font-size: 13px; text-transform: none; font-weight: 500; color: #ddd; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.06); color: var(--accent); }
.nav-dropdown-menu .nav-dropdown-all { border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; padding-top: 10px; color: var(--accent); font-weight: 700; }

.mry-nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Torna su (posizionato sopra al bottone WhatsApp per non sovrapporsi) */
.back-to-top {
  position: fixed; bottom: 92px; right: 22px; z-index: 199; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); border-color: var(--accent); }

/* Follow us box */
.follow-box { display: flex; gap: 10px; margin: 10px 0 18px; }
.follow-ic {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center;
  justify-content: center; font-weight: 800; color: #fff; font-size: 15px; transition: background .2s;
}
.follow-ic:hover { background: var(--accent); text-decoration: none; }

.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 20px 40px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1c1c1c 0%, #0a0a0a 60%);
}
.banner-slider + .hero { padding-top: 34px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-logo { width: clamp(90px, 16vw, 190px); height: auto; filter: invert(1); margin-bottom: clamp(14px, 3vw, 22px); position: relative; z-index: 1; }
.hero h1 {
  font-family: 'Anton', sans-serif; font-size: clamp(22px, 4.2vw, 46px); text-transform: uppercase;
  letter-spacing: 1.5px; margin: 0 0 14px; position: relative; z-index: 1; line-height: 1.15;
}
.hero h1 span { color: var(--accent); }
.hero p.subtitle { color: var(--muted); font-size: clamp(13px, 1.6vw, 16px); max-width: 520px; margin: 0 auto 30px; position: relative; z-index: 1; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }

/* Banner slider */
.banner-slider { position: relative; width: 100%; height: var(--banner-h-desktop, 500px); max-height: 85vh; overflow: hidden; margin-top: 66px; background: #000; }
.banner-track { position: relative; width: 100%; height: 100%; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-caption { position: absolute; left: 6%; bottom: 12%; z-index: 2; max-width: 460px; }
.banner-caption h2 { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: clamp(20px, 3.2vw, 34px); color: #fff; margin: 0 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.banner-caption p { color: #eee; font-size: 14px; margin: 0 0 16px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.banner-fulllink { position: absolute; inset: 0; z-index: 2; }
.banner-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.banner-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0; transition: all .2s; }
.banner-dot.active { background: var(--accent); width: 22px; border-radius: 5px; }
@media (max-width: 700px) {
  .banner-slider { height: var(--banner-h-mobile, 400px); max-height: 85vh; margin-top: 60px; }
  .banner-caption { left: 6%; right: 6%; bottom: 8%; max-width: none; }
}

.btn-hero {
  padding: 15px 34px; border-radius: 40px; font-weight: 700; text-transform: uppercase; font-size: 13px;
  letter-spacing: 1px; text-decoration: none; display: inline-block; transition: all .2s;
}
.btn-hero-primary { background: var(--accent); color: #fff; }
.btn-hero-primary:hover { background: #ff1a2e; color: #fff; transform: translateY(-2px); }
.btn-hero-outline { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn-hero-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.section { padding: 52px 5%; }
.section + .section { padding-top: 0; }
.section-dark { background: var(--bg2); }
.section-title {
  font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: clamp(26px,4vw,42px);
  letter-spacing: 1px; text-align: center; margin: 0 0 10px;
}
.section-sub { text-align: center; color: var(--muted); margin: 0 0 30px; font-size: 15px; }

.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.role-card {
  background: #111; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 34px 28px;
  transition: all .25s;
}
.role-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.role-card .icon { font-size: 34px; margin-bottom: 16px; }
.role-card h3 { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 20px; margin: 0 0 10px; letter-spacing: .5px; }
.role-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.role-card a { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.cat-card {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; background: #1a1a1a;
  display: flex; align-items: flex-end; text-decoration: none;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .3s; }
.cat-card:hover img { opacity: .8; transform: scale(1.05); }
.cat-card .cat-label {
  position: relative; z-index: 1; padding: 20px; width: 100%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}
.cat-card .cat-label h4 { font-family: 'Anton', sans-serif; text-transform: uppercase; color: #fff; font-size: 20px; margin: 0; letter-spacing: .5px; }
.cat-card .cat-label span { color: var(--muted); font-size: 12px; }

.products-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.pp-card { background: #111; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; }
.pp-card img { width: 100%; height: 180px; object-fit: cover; background: #1a1a1a; }
.pp-card .pp-body { padding: 14px 16px; }
.pp-card .pp-cat { font-size: 10px; text-transform: uppercase; color: var(--accent); letter-spacing: 1px; font-weight: 700; }
.pp-card .pp-name { font-size: 14px; font-weight: 700; margin: 6px 0; }
.pp-card .pp-price { color: var(--muted); font-size: 14px; }

.security-strip { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 20px 5% 0; text-align: center; }
.security-strip .item { max-width: 200px; }
.security-strip .item .ic { font-size: 28px; margin-bottom: 10px; }
.security-strip .item h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px; }
.security-strip .item p { color: var(--muted); font-size: 12.5px; margin: 0; }

.mry-footer { padding: 60px 5% 30px; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 13px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; max-width: 1300px; margin: 0 auto 30px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 14px; font-weight: 800; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-logo { height: 28px; opacity: .85; margin-bottom: 14px; }
.footer-copy { line-height: 1.6; }
.footer-payments-title { color: #ccc; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 6px; }
.footer-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-icons span { background: rgba(255,255,255,.06); padding: 4px 10px; border-radius: 5px; font-size: 11px; color: #bbb; }
.footer-icons .icon-chip { background: #fff; padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; justify-content: center; height: 28px; }
.footer-icons .icon-chip img { height: 17px; width: auto; max-width: 100px; object-fit: contain; display: block; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}

/* Auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-box { background: #111; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 40px; width: 100%; max-width: 400px; text-align: center; }
.auth-box-wide { max-width: 560px; text-align: left; }
.auth-logo { max-width: 180px; margin-bottom: 24px; }
.auth-box label { color: #ccc; }
.auth-box input, .auth-box select { background: #1a1a1a; border: 1px solid #2a2a2a; color: #fff; }
.auth-box input:focus { border-color: var(--accent); outline: none; }
.btn-accent { width: 100%; background: var(--accent); color: #fff; border: 0; padding: 13px; border-radius: 8px; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; cursor: pointer; }
.btn-accent:hover { background: #ff1a2e; }
.auth-alt { color: var(--muted); font-size: 13px; margin-top: 16px; }
.auth-alt a { color: var(--accent); font-weight: 600; }

.type-select { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.type-opt { display: flex; align-items: center; gap: 6px; font-weight: 400 !important; color: #ddd; font-size: 13px; background: #1a1a1a; padding: 8px 14px; border-radius: 8px; border: 1px solid #2a2a2a; cursor: pointer; }
.type-opt input { width: auto !important; }

@media (max-width: 860px) {
  .mry-nav-toggle { display: block; }
  .mry-nav .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0d0d0d;
    flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 24px rgba(0,0,0,.4); padding: 8px 0 24px; z-index: 500;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .mry-nav .links.open { display: flex; }
  .mry-nav .links a { padding: 13px 20px; margin: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .mry-nav .links a.cta { margin: 10px 20px; text-align: center; border-bottom: 0; }
  .nav-dropdown-menu { position: static; display: none; background: rgba(255,255,255,.03); box-shadow: none; border: 0; border-radius: 0; padding: 0; }
  .nav-dropdown.mobile-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding-left: 36px; font-size: 12.5px; }
  .section { padding: 50px 5%; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .back-to-top { bottom: 78px; right: 16px; width: 42px; height: 42px; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 16px 50px; }
  .roles-grid, .cat-grid, .products-preview { grid-template-columns: 1fr; }
}
