/* Tour Buddy — sito pubblico (tourbuddy.cloud). Il portale è su /app. */
:root {
  --bg: #0E0B0A; --bg2: #161210; --card: rgba(28, 23, 20, .72); --line: #2E2622; --line2: #261F1C;
  --text: #FFF4EC; --text2: #CDBFB5; --muted: #9A8C82; --dim: #3F3530;
  --accent: #FF6A2B; --accent-bg: #3A1A0C; --accent-line: #5C2A12;
  --teal: #2DD4BF; --blue: #5EB0FF; --red: #FF4D6D; --yellow: #FFD23F;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --pad: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background-color: var(--bg); color: var(--text);
  background-image: radial-gradient(#211B18 1px, transparent 1px); background-size: 24px 24px;
  font-family: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
img, svg { display: block; }
.wrap { max-width: 1440px; margin: 0 auto; }
.mono { font-family: var(--mono); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex-shrink: 0; }
.dot.teal { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.dot.blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* bottoni */
.btn { height: 44px; padding: 0 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn:hover { color: var(--text); border-color: var(--dim); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: 0 0 0 1px rgba(255,106,43,.35), 0 0 24px rgba(255,106,43,.22); }
.btn.primary:hover { color: var(--bg); filter: brightness(1.06); }
.btn.lg { height: 54px; border-radius: 27px; font-size: 16px; padding: 0 24px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* header */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line2); background: rgba(14,11,10,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 var(--pad); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 20px; letter-spacing: -.03em; }
.brand:hover { color: var(--text); }
.pills { display: flex; gap: 6px; padding: 4px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg2); }
.pills a { height: 36px; padding: 0 16px; border-radius: 18px; display: flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--text2); text-decoration: none; }
.pills a:hover { color: var(--text); background: #221C19; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 44px; padding: 0; }
.mnav { display: none; }

/* hero */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 72px var(--pad) 80px; }
.hero-text { display: flex; flex-direction: column; gap: 26px; max-width: 600px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px;
  border: 1px solid var(--accent-line); background: var(--accent-bg); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.badge .dot { width: 6px; height: 6px; }
h1 { margin: 0; font-weight: 600; font-size: 72px; line-height: 1.02; letter-spacing: -.05em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text2); }
.cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.facts { display: flex; gap: 22px; padding-top: 6px; flex-wrap: wrap; }
.facts span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }

.stage { position: relative; width: 640px; height: 560px; flex-shrink: 0; }
.glow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,106,43,.16), transparent); pointer-events: none; }
.stage .glow { left: 40px; top: 20px; width: 560px; height: 520px; }
.ev-card { position: absolute; left: 0; top: 40px; width: 440px; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.ev-title { display: flex; flex-direction: column; gap: 4px; }
.ev-title b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.ev-title span { font-size: 13px; color: var(--text2); }
.count { display: flex; align-items: flex-end; gap: 12px; }
.count div { display: flex; flex-direction: column; gap: 4px; }
.count b { font-family: var(--mono); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.count i { font-family: var(--mono); font-style: normal; font-size: 34px; color: var(--dim); }
.phases { display: flex; gap: 8px; }
.phases span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.phases span.on { background: var(--accent); box-shadow: 0 0 10px rgba(255,106,43,.5); }
.phase-l { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.staff-card { position: absolute; right: 0; top: 230px; width: 300px; padding: 18px; background: rgba(27,23,21,.95); box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04); }
.staff-card .row-between { padding-bottom: 8px; }
.person { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 0; border-top: 1px solid var(--line2); }
.av { width: 26px; height: 26px; border-radius: 13px; color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; box-shadow: 0 0 0 2px #1C1714; flex-shrink: 0; }
.person .who { display: flex; flex-direction: column; flex-grow: 1; }
.person .who b { font-size: 12px; font-weight: 600; }
.person .who span { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.tg { width: 40px; height: 24px; border-radius: 12px; background: var(--accent); border: 1px solid var(--accent); position: relative; flex-shrink: 0; box-shadow: 0 0 12px rgba(255,106,43,.35); }
.tg::after { content: ''; position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 8px; background: var(--bg); }
.tg.off { background: var(--bg2); border-color: var(--line); box-shadow: none; }
.tg.off::after { left: 3px; background: var(--muted); }
.file-card { position: absolute; left: 60px; top: 410px; width: 250px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; background: rgba(27,23,21,.95); box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.file-card b { display: block; font-size: 13px; font-weight: 600; }
.ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ic.lg { width: 48px; height: 48px; border-radius: 14px; }

/* striscia */
.strip { border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: var(--bg2); }
.strip .wrap { padding: 18px var(--pad); display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: center; }
.strip span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--text2); }
.strip span::before { content: ''; width: 5px; height: 5px; border-radius: 3px; background: var(--accent); }

/* sezioni */
.sec { padding: 110px var(--pad); display: flex; flex-direction: column; gap: 48px; }
.sec.tight { padding-top: 40px; }
.sec.nt { padding-top: 0; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
h2 { margin: 0; font-weight: 600; font-size: 48px; line-height: 1.05; letter-spacing: -.04em; }
.head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text2); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 230px; }
.feat h3, .step h3, .who-card h3, .why h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.feat p, .step p, .who-card p, .why p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text2); }
.s7 { grid-column: span 7; } .s6 { grid-column: span 6; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; }
.mini-tl { margin-top: auto; position: relative; height: 54px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); overflow: hidden; }
.mini-tl span { position: absolute; top: 10px; height: 34px; border-radius: 8px; background: #0F2238; border: 1px solid var(--blue); }
.mini-tl span.ev { background: var(--accent-bg); border-color: var(--accent); box-shadow: 0 0 14px rgba(255,106,43,.3); }
.mini-tl i { position: absolute; left: 40%; top: 0; bottom: 0; width: 2px; background: var(--red); box-shadow: 0 0 8px var(--red); }

.steps { display: flex; align-items: stretch; }
.step { flex: 1; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-size: 20px; }
.step .n { font-family: var(--mono); font-size: 40px; letter-spacing: -.04em; color: var(--dim); }
.step:first-child .n { color: var(--accent); }
.step-line { align-self: center; width: 28px; height: 2px; background: var(--line); flex-shrink: 0; }

.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.who-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.who-card h3 { font-size: 24px; }
.who-card .dot { width: 10px; height: 10px; }

.why-sec { padding: 0 var(--pad) 110px; display: flex; gap: 64px; align-items: center; }
.why-sec > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.why { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line2); }
.why .n { font-family: var(--mono); font-size: 13px; color: var(--accent); width: 28px; padding-top: 4px; flex-shrink: 0; }
.why div { display: flex; flex-direction: column; gap: 6px; }
.why h3 { font-size: 20px; }
.phone-wrap { width: 440px; display: flex; justify-content: center; position: relative; flex-shrink: 0; }
.phone-wrap .glow { width: 420px; height: 420px; top: 90px; background: radial-gradient(closest-side, rgba(255,106,43,.14), transparent); }
.phone { position: relative; width: 300px; height: 600px; border-radius: 44px; border: 1px solid var(--dim); background: var(--bg); padding: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 8px var(--bg2); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phone .notch { align-self: center; width: 90px; height: 22px; border-radius: 11px; background: var(--bg2); }
.phone .hi { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.phone .card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.phone .count b { font-size: 28px; } .phone .count i { font-size: 22px; } .phone .count { gap: 6px; }
.phone .card.list { padding: 12px 14px; gap: 0; }
.phone .card.list .person:first-child { border-top: 0; }
.tabbar { margin-top: auto; height: 48px; border-radius: 24px; background: rgba(27,23,21,.9); border: 1px solid var(--line); display: flex; align-items: center; padding: 4px; gap: 4px; }
.tabbar span { flex: 1; }
.tabbar span:first-child { height: 40px; border-radius: 20px; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

/* faq */
.faq-sec { padding: 0 var(--pad) 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; }
.faq > div { border-top: 1px solid var(--line2); }
.faq > div:last-child { border-bottom: 1px solid var(--line2); }
.faq button { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 18px; font-weight: 600; text-align: left; padding: 10px 0; cursor: pointer; }
.faq button span { width: 32px; height: 32px; border-radius: 16px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); font-size: 18px; font-weight: 400; }
.faq button[aria-expanded=true] span { color: var(--accent); }
.faq p { margin: 0; padding: 0 48px 22px 0; font-size: 15px; line-height: 1.6; color: var(--text2); }
.faq p[hidden] { display: none; }

/* richiesta accesso */
.req { margin: 0 var(--pad) 90px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 48px; position: relative; overflow: hidden; }
.req .glow { right: -120px; top: -160px; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(255,106,43,.18), transparent); }
.req .head { max-width: 560px; position: relative; }
.req h2 { font-size: 44px; }
.req .head p { font-size: 17px; }
.req form { display: flex; flex-direction: column; gap: 10px; width: 440px; position: relative; }
.req label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text2); }
.req input { height: 54px; padding: 0 18px; border-radius: 27px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-size: 16px; font-weight: 400; }
.req input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,43,.2); }
.req .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.req .small { font-size: 13px; color: var(--muted); }
.req .small a { font-weight: 600; }
.req .note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.req .note a { color: var(--text2); }
.msg { border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.msg.ok { background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.4); color: var(--text); }
.msg.err { background: rgba(255,77,109,.1); border: 1px solid rgba(255,77,109,.4); color: var(--text); }
.done { display: flex; flex-direction: column; gap: 12px; width: 440px; position: relative; }
.done b { font-size: 22px; letter-spacing: -.02em; }
.done p { margin: 0; color: var(--text2); line-height: 1.55; }

/* footer */
.foot .wrap { padding: 40px var(--pad); border-top: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .brand { font-size: 17px; }
.foot nav { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.foot nav a { color: var(--text2); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .copy { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* pagine legali */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 24px 90px; }
.legal h1 { font-size: 48px; margin-bottom: 8px; }
.legal .upd { color: var(--muted); font-family: var(--mono); font-size: 12px; margin-bottom: 32px; }
.legal h2 { font-size: 24px; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text2); line-height: 1.7; font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal .draft { border: 1px dashed var(--accent-line); background: var(--accent-bg); color: var(--text); border-radius: 14px; padding: 14px 18px; font-size: 14px; line-height: 1.55; }
.legal mark { background: rgba(255,210,63,.18); color: var(--yellow); padding: 0 4px; border-radius: 4px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line2); padding: 10px 8px; color: var(--text2); vertical-align: top; }
.legal th { color: var(--text); }
.nf { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 40px 24px; }
.nf b { font-family: var(--mono); font-size: 64px; color: var(--accent); }

/* responsive */
@media (max-width: 1280px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .stage { align-self: center; }
  .why-sec { flex-direction: column; }
}
@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .pills { display: none; }
  .menu-btn { display: inline-flex; }
  .mnav.open { display: flex; flex-direction: column; padding: 8px var(--pad) 18px; gap: 2px; border-top: 1px solid var(--line2); }
  .mnav a { min-height: 48px; display: flex; align-items: center; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line2); }
  .mnav a.btn { border-bottom: 0; margin-top: 12px; color: var(--bg); justify-content: center; }
  .s7, .s6, .s5, .s4, .s3 { grid-column: span 6; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-line { display: none; }
  .faq-sec { grid-template-columns: 1fr; gap: 24px; }
  .req { flex-direction: column; align-items: stretch; padding: 40px; }
  .req form, .done { width: 100%; }
}
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .top .wrap { height: 64px; }
  .top-actions .btn.primary.hide-s { display: none; }
  .brand { font-size: 18px; }
  .hero { padding-top: 36px; padding-bottom: 56px; gap: 28px; }
  .hero-text { gap: 20px; }
  h1 { font-size: 44px; line-height: 1.04; }
  .lead { font-size: 16px; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; }
  .cta .btn { width: 100%; }
  .stage { width: 100%; height: auto; }
  .stage .glow, .staff-card, .file-card { display: none; }
  .ev-card { position: static; width: 100%; padding: 18px; }
  .phases, .phase-l { display: none; }
  .count b { font-size: 34px; } .count i { font-size: 26px; }
  .ev-title b { font-size: 20px; }
  .strip { display: none; }
  .sec { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .sec.tight { padding-top: 16px; }
  .sec.nt, .why-sec, .faq-sec { padding-bottom: 64px; }
  h2 { font-size: 32px; }
  .head p { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .s7, .s6, .s5, .s4, .s3 { grid-column: auto; }
  .feat { min-height: 0; padding: 22px; }
  .feat h3 { font-size: 20px; }
  .mini-tl { margin-top: 8px; }
  .steps { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .why-sec { gap: 32px; }
  .phone-wrap { display: none; }
  .faq button { font-size: 16px; }
  .faq p { padding-right: 0; }
  .req { padding: 28px 20px; margin-bottom: 56px; }
  .req h2 { font-size: 30px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .legal h1 { font-size: 34px; }
  .legal { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
