/* =========================================================
   BRUTAL LUX / EDITORIAL (COMPLETAMENTE DIVERSO)
   - sfondo "paper" + tipografia enorme
   - linee nette + griglie + dettagli foil
   - zero neon, zero glass, zero vibrazioni da "club template"
========================================================= */

:root{
  --paper: #f6f3ed;
  --paper2:#efe9df;
  --ink:   #0d0f14;
  --ink2:  rgba(13,15,20,.72);
  --line:  rgba(13,15,20,.14);
  --line2: rgba(13,15,20,.10);

  --foil1: #b08a3a;  /* oro caldo */
  --foil2: #d2b26b;  /* oro chiaro */
  --accent:#0b61ff;  /* blu editoriale (solo per focus/cta secondarie) */

  --radius: 14px;
  --radius2: 22px;

  --shadow: 0 18px 40px rgba(13,15,20,.10);
  --shadow2: 0 10px 24px rgba(13,15,20,.08);

  --max: 1180px;
}

/* -------------------- reset -------------------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(800px 800px at 20% 20%, rgba(176,138,58,.10), transparent 60%),
    radial-gradient(900px 700px at 80% 10%, rgba(11,97,255,.06), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper2));
}

a{ color: inherit; text-decoration: none; }
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* -------------------- layout -------------------- */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 86px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* -------------------- topbar (editorial) -------------------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246,243,237,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line2);
}

.topbar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
}

.brand-dot{
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--foil2), var(--foil1));
  box-shadow: 0 0 0 1px rgba(13,15,20,.18);
}

.brand-name{ opacity: .95; }

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  background: rgba(13,15,20,.03);
  transition: background .18s ease, transform .12s ease, border-color .18s ease;
}

.nav-link:hover{
  transform: translateY(-1px);
  background: rgba(13,15,20,.06);
  border-color: rgba(13,15,20,.08);
}

.nav-link.ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--ink2);
}

.nav-link.ghost:hover{
  background: rgba(13,15,20,.03);
  color: var(--ink);
}

/* -------------------- channel banner (non "neon") -------------------- */
.channel-banner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line2);
  font-size: 13px;
  color: var(--ink2);
  background:
    linear-gradient(90deg, rgba(176,138,58,.10), rgba(176,138,58,.00) 55%),
    rgba(246,243,237,.92);
}
.channel-banner strong{
  color: var(--ink);
  border-bottom: 2px solid rgba(176,138,58,.55);
}

/* -------------------- hero (big editorial) -------------------- */
.hero, .tickets-hero{
  margin: 30px 0 30px;
}

.hero-inner{
  padding: 28px 22px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(13,15,20,.04) 0px,
      rgba(13,15,20,.04) 1px,
      transparent 1px,
      transparent 18px
    ),
    rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}

.h-title{
  margin: 0 0 12px;
  font-size: clamp(38px, 6.2vw, 78px);
  line-height: .96;
  letter-spacing: -.03em;
  font-weight: 950;
}

.h-lead{
  margin: 0;
  max-width: 76ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink2);
}

.footer-note{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(13,15,20,.55);
  letter-spacing: .02em;
}

/* -------------------- buttons (brutal, solid) -------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(13,15,20,.18);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow2);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(13,15,20,.16);
}

.btn:active{
  transform: translateY(0px);
  box-shadow: 0 10px 20px rgba(13,15,20,.10);
}

.btn.big{
  padding: 15px 20px;
  font-size: 14px;
  border-radius: 14px;
}

.btn.ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.btn.ghost:hover{
  background: rgba(13,15,20,.04);
}

/* -------------------- cards -------------------- */
.card, .event-card, .ticket-card, .checkout-card, .qr-card{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow2);
}

.card-inner,
.event-card-inner,
.ticket-card-inner,
.checkout-card,
.qr-card-inner{
  padding: 18px;
}

/* -------------------- pills/tags -------------------- */
.pill{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13,15,20,.03);
  color: var(--ink2);
  font-size: 12px;
  font-weight: 750;
}

.pill.ghost{
  background: transparent;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13,15,20,.03);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tag.ok{
  border-color: rgba(49,138,82,.25);
  background: rgba(49,138,82,.10);
}
.tag.bad{
  border-color: rgba(190,47,68,.25);
  background: rgba(190,47,68,.10);
}

/* -------------------- forms -------------------- */
.alert{
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13,15,20,.03);
}
.alert.error{
  border-color: rgba(190,47,68,.25);
  background: rgba(190,47,68,.08);
}

.label{
  display:block;
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(13,15,20,.70);
}

.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(13,15,20,.18);
  background: rgba(255,255,255,.75);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus{
  border-color: rgba(11,97,255,.55);
  box-shadow: 0 0 0 4px rgba(11,97,255,.12);
}

/* -------------------- utilities -------------------- */
.mut{ color: var(--ink2); }
.small{ font-size: 13px; }
.tiny{ font-size: 11px; }

@media (max-width: 560px){
  .h-title{ letter-spacing: -.02em; }
  .btn{ width: 100%; }
  .nav{ width:100%; justify-content:flex-end; }
}

/* ======================================================
   iOS / Apple-like Language Selector
====================================================== */

.lang-ios{
  position: relative;
  outline: none;
}

/* ---------- Pill ---------- */
.lang-ios-pill{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3efe7;
  border: 2px solid #1f6fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.lang-ios-flag{
  font-size: 18px;
}

.lang-ios-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.lang-ios-name{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .04em;
}

.lang-ios-sub{
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

.lang-ios-chevron{
  width: 10px;
  height: 10px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform .2s ease;
}

.lang-ios:focus-within .lang-ios-chevron{
  transform: rotate(225deg);
}

/* ---------- Dropdown ---------- */
.lang-ios-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 340px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
  padding: 14px;
  display: none;
  z-index: 60;
}

.lang-ios:focus-within .lang-ios-menu{
  display: block;
}

/* ---------- Header ---------- */
.lang-ios-head{
  padding: 12px 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.lang-ios-title{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .18em;
}

.lang-ios-desc{
  margin-top: 6px;
  font-size: 14px;
  color: rgba(0,0,0,.55);
}

/* ---------- Items ---------- */
.lang-ios-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  margin-top: 10px;
  background: #f6f3ed;
  transition: transform .12s ease, box-shadow .12s ease;
}

.lang-ios-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.lang-ios-item-flag{
  font-size: 22px;
}

.lang-ios-item-text{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lang-ios-item-name{
  font-size: 18px;
  font-weight: 800;
}

.lang-ios-item-sub{
  font-size: 14px;
  color: rgba(0,0,0,.55);
  margin-top: 2px;
}

/* ---------- Radio ---------- */
.lang-ios-radio{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #000;
}

.lang-ios-item.active{
  background: #f3efe7;
  border: 2px solid rgba(176,138,58,.55);
}

.lang-ios-item.active .lang-ios-radio{
  border-color: #1f6fff;
  background: #1f6fff;
  color: #fff;
}

/* ---------- Mobile ---------- */
@media (max-width: 520px){
  .lang-ios-menu{
    width: 92vw;
    right: -10px;
  }
}