/* VIBEST · pagine "Italiani e non a <città>" (03/10/2026).
   Si appoggia a /theme-fumo.css (token, header, logo, interruttore lingua). Tema scuro unico, accento ciano
   con il viola del marchio, verde solo per "gratis". Raggio unico: 18px per riquadri e foto, pillola per i bottoni. */

:root { --r: 18px; --bar-h: 76px; }
body { overflow-x: hidden; }
header { justify-content: center; }
.lang-switch { cursor: pointer; font: inherit; }

/* ---------- HERO: foto delle attività che si alternano, parola che cambia insieme alla foto ---------- */
.hero {
  position: relative; z-index: 1; isolation: isolate;
  min-height: calc(100dvh - 96px);
  display: grid; align-items: end;
  padding: 40px 20px 44px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #0a0614; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s ease, transform 6.5s ease-out;
}
.hero-media img.on { opacity: 1; transform: scale(1); }
/* Velo: scuro in basso a sinistra dove sta il testo, tinta viola leggera per legare le foto al marchio */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5,2,15,0.96) 8%, rgba(5,2,15,0.55) 48%, rgba(5,2,15,0.15) 100%),
    linear-gradient(90deg, rgba(5,2,15,0.75) 0%, rgba(5,2,15,0) 70%),
    linear-gradient(135deg, rgba(122,0,255,0.28), rgba(0,240,255,0.06));
}
.hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; }
.hero-copy { max-width: 640px; }
.kicker {
  font-family: 'Orbitron', sans-serif; font-size: 0.74rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ciano); margin-bottom: 14px; text-shadow: 0 0 12px rgba(0,240,255,0.5);
}
.hero h1 {
  font-family: 'Orbitron', sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(1.85rem, 6.4vw, 3.6rem); line-height: 1.12; letter-spacing: -0.5px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero h1 .l1 { display: block; color: #fff; }
.hero h1 .l2 { display: block; font-size: 0.62em; font-weight: 700; margin-top: 10px; color: #e9e6f5; }
.rot {
  display: inline-block; min-height: 1.2em;
  background: linear-gradient(90deg, #00F0FF, #c084fc 55%, #FF3DA8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(0,240,255,0.35));
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rot.out { opacity: 0; transform: translateY(10px); }
.hero .sub {
  font-size: 1.06rem; line-height: 1.6; color: #dcdae6; margin: 16px 0 24px; max-width: 520px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* ---------- Bottoni store ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px; justify-content: center;
  min-width: 190px; padding: 12px 22px; border-radius: 999px;
  background: rgba(8,4,20,0.88); color: #fff; text-decoration: none;
  border: 1.5px solid rgba(0,240,255,0.55);
  box-shadow: 0 0 22px rgba(0,240,255,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s, border-color 0.2s;
}
.btn-store:hover { text-decoration: none; transform: translateY(-2px); border-color: #00F0FF;
  box-shadow: 0 0 30px rgba(0,240,255,0.45), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-store:active { transform: scale(0.98); }
.btn-store svg { width: 26px; height: 26px; flex-shrink: 0; fill: #fff; }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-store small { font-size: 0.68rem; color: #b9b6c8; letter-spacing: 0.4px; }
.btn-store strong { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.free { font-family: 'Orbitron', sans-serif; font-size: 0.72rem; letter-spacing: 2.4px; text-transform: uppercase;
  color: #2BFF9A; margin-top: 14px; text-shadow: 0 0 12px rgba(43,255,154,0.45); }

/* Il tema delle pagine di testo mette margini e maiuscole a h2/h3/p: qui li governa questo file */
.hero h1, .sec-title, .tile h3, .step h3 { margin: 0; }
.tile p, .step p, .hero p { margin-bottom: 0; }
.sec-title { text-transform: none; }

/* ---------- Sezioni ---------- */
section { position: relative; z-index: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sec-title {
  font-family: 'Orbitron', sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.3px; max-width: 18ch;
}
.sec-sub { color: #c9c6d6; font-size: 1.04rem; line-height: 1.6; margin-top: 12px; max-width: 56ch; }

/* Bento: 8 attività, 8 celle. Desktop 4×3 con musica grande ed escursioni alta. */
.skills { padding: 88px 0 40px; }
.bento {
  margin-top: 34px; display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px;
  grid-template-areas:
    "mus mus esc pad"
    "mus mus dro eve"
    "dis cuc tat fot";
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.08); background: #0d0818;
  display: flex; align-items: flex-end; padding: 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.tile::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,2,15,0.92) 0%, rgba(5,2,15,0.25) 55%, rgba(5,2,15,0.05) 100%); }
.tile:hover { border-color: rgba(0,240,255,0.55); box-shadow: 0 0 28px rgba(0,240,255,0.18); }
.tile:hover img { transform: scale(1.06); }
.tile div { position: relative; z-index: 1; }
.tile h3 { font-family: 'Orbitron', sans-serif; font-size: 1.05rem; font-weight: 700; color: #fff; }
.tile p { font-size: 0.92rem; color: #d2cfe0; line-height: 1.4; margin-top: 4px; }
.t-mus { grid-area: mus; } .t-mus h3 { font-size: 1.6rem; }
.t-esc { grid-area: esc; } .t-pad { grid-area: pad; } .t-eve { grid-area: eve; } .t-dro { grid-area: dro; }
/* Foto di persone vere: inquadrate sul soggetto */
.t-dro img, .hero-media img[src*="droni"] { object-position: 50% 12%; }
.t-tat img, .hero-media img[src*="tatuaggi"] { object-position: 60% 35%; }
.t-dis { grid-area: dis; } .t-cuc { grid-area: cuc; } .t-tat { grid-area: tat; } .t-fot { grid-area: fot; }

/* Nastro delle abilità: l'unico elemento che scorre da solo, fa vedere la larghezza dell'app */
.ribbon { padding: 30px 0 10px; overflow: hidden; }
.ribbon-track { display: flex; gap: 12px; width: max-content; animation: scorri 60s linear infinite; }
.ribbon-track span {
  font-size: 0.95rem; color: #e6e3f2; white-space: nowrap;
  border: 1px solid rgba(192,132,252,0.35); background: rgba(122,0,255,0.08);
  border-radius: 999px; padding: 9px 16px;
}
@keyframes scorri { to { transform: translateX(-50%); } }

/* Come funziona: linea verticale con tre passi, il verbo è il titolo */
.how { padding: 86px 0 40px; }
.steps { margin-top: 34px; position: relative; display: grid; gap: 30px; max-width: 760px; }
.steps::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #00F0FF, #7A00FF 60%, rgba(122,0,255,0)); }
.step { position: relative; padding-left: 54px; }
.step::before { content: ''; position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: #05020f; border: 2px solid #00F0FF; box-shadow: 0 0 14px rgba(0,240,255,0.6); }
.step h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: #fff; font-weight: 700; }
.step p { color: #cfcbdd; margin-top: 6px; line-height: 1.6; max-width: 58ch; }

/* Accanto ai passi: tre foto sovrapposte e inclinate, solo da schermo largo */
.how-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.collage { position: relative; height: 440px; }
.collage img { position: absolute; width: 58%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.collage img:nth-child(1) { left: 0; top: 30px; transform: rotate(-7deg); }
.collage img:nth-child(2) { left: 22%; top: 0; transform: rotate(3deg); z-index: 1; border-color: rgba(0,240,255,0.5);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(0,240,255,0.2); }
.collage img:nth-child(3) { right: 0; top: 70px; transform: rotate(9deg); }

/* Chiusura */
.final { padding: 96px 0 140px; text-align: center; }
.final .sec-title { margin: 0 auto; max-width: 22ch; }
.final .sec-sub { margin: 12px auto 28px; }
.final .stores { justify-content: center; }
.others { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.others a { color: #d9d6e6; text-decoration: none; font-size: 0.9rem; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12); }
.others a:hover { border-color: rgba(0,240,255,0.6); color: #fff; }

/* Barra fissa: i due store restano sempre a portata di pollice quando i bottoni dell'hero escono di vista */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,2,15,0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,240,255,0.25);
  display: flex; gap: 10px; justify-content: center; align-items: center;
  transform: translateY(110%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.bar.on { transform: none; }
.bar .lbl { font-family: 'Orbitron', sans-serif; font-size: 0.7rem; letter-spacing: 2px; color: #2BFF9A;
  text-transform: uppercase; margin-right: 6px; }
.bar .btn-store { min-width: 0; padding: 9px 16px; }
.bar .btn-store small { display: none; }
.bar .btn-store strong { font-size: 0.86rem; }
.bar .btn-store svg { width: 20px; height: 20px; }

footer { position: relative; z-index: 1; }

/* Comparsa allo scroll: solo per chi non ha chiesto meno movimento */
.rv { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero-media img { transition: none; transform: none; }
}

/* La città trovata entra con un piccolo lampo */
.hero .l1.arriva { animation: arriva 0.7s cubic-bezier(0.16,1,0.3,1); }
@keyframes arriva { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Richiesta di consenso alla posizione (pagina Italia): foglio dal basso su telefono, riquadro al centro su computer */
.geo { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(5,2,15,0); transition: background 0.3s; }
.geo.on { background: rgba(5,2,15,0.62); }
.geo[hidden] { display: none; }
.geo-card { width: 100%; max-width: 420px; text-align: center; padding: 26px 22px 20px; border-radius: 22px;
  background: rgba(14,8,28,0.96); border: 1px solid rgba(0,240,255,0.35);
  box-shadow: 0 0 40px rgba(0,240,255,0.15), 0 30px 80px rgba(0,0,0,0.6);
  transform: translateY(30px); opacity: 0; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.3s; }
.geo.on .geo-card { transform: none; opacity: 1; }
.geo-card h2 { font-family: 'Orbitron', sans-serif; font-size: 1.15rem; line-height: 1.3; color: #fff;
  text-transform: none; letter-spacing: 0; margin: 14px 0 10px; text-shadow: none; }
.geo-card p { font-size: 0.95rem; line-height: 1.55; color: #d4d1e2; margin: 0 0 18px; }
.geo-card .geo-nota { font-size: 0.78rem; color: #9b98ad; margin: 12px 0 0; }
.geo-si, .geo-no { display: block; width: 100%; border-radius: 999px; font: inherit; cursor: pointer; padding: 13px 18px; }
.geo-si { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.95rem; color: #05020f; border: 0;
  background: linear-gradient(90deg, #00F0FF, #8be9ff); box-shadow: 0 0 24px rgba(0,240,255,0.45); }
.geo-si:active, .geo-no:active { transform: scale(0.98); }
.geo-no { margin-top: 10px; background: transparent; color: #cfcbdd; border: 1px solid rgba(255,255,255,0.18); }
/* Radar: tre cerchi che si allargano, dice "posizione" senza icone */
.geo-radar { position: relative; width: 58px; height: 58px; margin: 0 auto; }
.geo-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0,240,255,0.8); }
.geo-radar span:first-child { inset: 22px; background: #00F0FF; border: 0; box-shadow: 0 0 14px #00F0FF; }
@media (prefers-reduced-motion: no-preference) {
  .geo-radar span:nth-child(2), .geo-radar span:nth-child(3) { animation: radar 2s ease-out infinite; }
  .geo-radar span:nth-child(3) { animation-delay: 1s; }
}
@keyframes radar { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@media (min-width: 700px) { .geo { align-items: center; } }

/* Banner per la webview di Instagram quando lo store non si apre */
.inapp { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; max-width: 520px;
  background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.45); color: #fff; font-size: 0.92rem; line-height: 1.5; }
html.inapp-on .inapp { display: block; }

/* ---------- Telefono ---------- */
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px;
    grid-template-areas: "mus mus" "mus mus" "esc pad" "dro eve" "dis cuc" "tat fot"; }
  .t-mus h3 { font-size: 1.3rem; }
  .how-grid { grid-template-columns: 1fr; }
  .collage { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 28px 16px 30px; min-height: calc(100dvh - 88px); }
  .stores { gap: 10px; }
  .stores .btn-store { flex: 1 1 0; min-width: 0; padding: 11px 12px; }
  .btn-store strong { font-size: 0.9rem; }
  .wrap { padding: 0 16px; }
  .skills { padding-top: 64px; }
  .tile { padding: 14px; }
  .tile h3 { font-size: 0.92rem; }
  .tile p { font-size: 0.8rem; }
  .bar .lbl { display: none; }
  .bar .btn-store { flex: 1 1 0; }
}
