/**
 * VRC On Tour — shared vertical + hub scenario scaffolding (www.vrcitaly.it)
 * Brand: #E8E8E8 · #333440 · #B7B5E4 · nero/bianco
 */

.otv-shell {
  --otv-ink: #050509;
  --otv-panel: #333440;
  --otv-line: rgba(232, 232, 232, 0.14);
  --otv-muted: rgba(232, 232, 232, 0.72);
  --otv-pop: #b7b5e4;
  --otv-primary: #e8e8e8;
  --otv-secondary: #333440;
  --otv-cyan: #b7b5e4;
  --otv-violet: #b7b5e4;
  color: var(--otv-primary);
  background: var(--otv-ink);
}

.page-ontour-hub.otv-shell .site-header,
.page-ontour-hub .site-header {
  background: #e8e8e8;
}

/* —— Hub: 4 scenari (dark, foto protagoniste, non SaaS) —— */
.otx-hero__rail a {
  color: inherit;
  text-decoration: none;
}

.otx-hero__rail a:hover,
.otx-hero__rail a:focus-visible {
  color: #b7b5e4;
  outline: none;
}

.otx-scenarios {
  padding: clamp(4rem, 9vw, 7rem) 1.25rem;
  background: #050509;
  border-top: 1px solid rgba(232, 232, 232, 0.08);
}

.otx-scenarios__inner {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.otx-scenarios .otx-section-head {
  width: min(100%, 42rem);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.otx-scenarios .otx-section-head h2 {
  font-family: var(--font-bold);
  color: #e8e8e8;
  text-transform: none;
}

.otx-scenarios .otx-section-head > p:last-child {
  margin-inline: auto;
  font-family: var(--font-body);
  color: rgba(232, 232, 232, 0.68);
}

.otx-scenarios__track {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .otx-scenarios__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .otx-scenarios__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.otx-scenarios__dots {
  display: none;
}

@media (max-width: 699px) {
  .otx-scenarios__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(86vw, 22rem);
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    padding-inline: 1.25rem;
    margin-inline: -1.25rem;
    scrollbar-width: none;
  }

  .otx-scenarios__track::-webkit-scrollbar {
    display: none;
  }

  .otx-scenario-card {
    scroll-snap-align: start;
  }

  .otx-scenarios__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.15rem;
  }

  .otx-scenarios__dots button {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(232, 232, 232, 0.28);
    cursor: pointer;
  }

  .otx-scenarios__dots button.is-active {
    background: #b7b5e4;
  }
}

.otx-scenario-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #b7b5e4;
  color: #333440 !important;
  font-family: var(--font-medium);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.otx-scenario-card__cta span {
  color: #333440 !important;
}

.otx-scenario-card:hover .otx-scenario-card__cta,
.otx-scenario-card:focus-visible .otx-scenario-card__cta {
  background: #e8e8e8;
  color: #333440 !important;
}

.otx-scenario-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(16rem, 42vw) auto;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  color: #e8e8e8;
  overflow: hidden;
  transition: transform 0.35s ease;
}

@media (min-width: 1100px) {
  .otx-scenario-card {
    grid-template-rows: minmax(22rem, 28vw) auto;
  }
}

.otx-scenario-card:hover,
.otx-scenario-card:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.otx-scenario-card__media {
  position: relative;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 0;
  background: #333440;
}

.otx-scenario-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 9, 0.55) 100%);
  pointer-events: none;
}

.otx-scenario-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0, 1);
}

.otx-scenario-card:hover .otx-scenario-card__media img,
.otx-scenario-card:focus-visible .otx-scenario-card__media img {
  transform: scale(1.04);
}

.otx-scenario-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 0 0.25rem;
}

.otx-scenario-card__kicker {
  margin: 0;
  font-family: var(--font-medium);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7b5e4;
}

.otx-scenario-card h3 {
  margin: 0;
  font-family: var(--font-medium);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #e8e8e8;
}

.otx-scenario-card p {
  margin: 0;
  font-family: var(--font-body);
  color: rgba(232, 232, 232, 0.7);
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1;
}

/* —— Hub FAQ (light, editoriale) —— */
.otx-faq {
  padding: clamp(1.25rem, 3vw, 2rem) 1.25rem clamp(4.5rem, 9vw, 7rem);
  background: #e8e8e8;
  border-top: 0;
  color: #333440;
}

.otx-faq__inner {
  width: min(760px, 100%);
  margin-inline: auto;
}

.otx-faq .otx-section-head {
  text-align: center;
  margin: 0 auto 1.75rem;
}

.otx-faq .otx-kicker {
  color: #b7b5e4;
}

.otx-faq .otx-section-head h2 {
  color: #333440;
  text-transform: none;
}

.otx-faq .otx-section-head > p:last-child {
  margin-inline: 0;
  font-family: var(--font-body);
  color: rgba(51, 52, 64, 0.7);
}

.otx-faq__list {
  margin: 0;
  display: grid;
  gap: 0;
}

.otx-faq__item {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  border-bottom: 1px solid rgba(51, 52, 64, 0.16);
}

.otx-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.75rem 1.15rem 0;
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 1.05rem;
  color: #333440;
  position: relative;
}

.otx-faq__item summary::-webkit-details-marker {
  display: none;
}

.otx-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #b7b5e4;
  font-family: var(--font-medium);
  font-size: 1.25rem;
}

.otx-faq__item[open] summary::after {
  content: "–";
}

.otx-faq__item[open] summary {
  color: #333440;
}

.otx-faq__item p {
  margin: 0 0 1.15rem;
  padding-right: 1.5rem;
  font-family: var(--font-body);
  color: rgba(51, 52, 64, 0.78);
  line-height: 1.55;
}

/* —— Vertical page system —— */
.otv {
  overflow-x: clip;
}

.otv-hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  padding: 7.5rem 1.25rem 3.5rem;
}

.otv-hero__media,
.otv-hero__veil {
  position: absolute;
  inset: 0;
}

.otv-hero__media img,
.otv-hero__media video,
.otv-hero__media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.otv-hero__media picture {
  position: absolute;
  inset: 0;
}

.otv-hero__media video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.otv-hero__veil {
  background:
    linear-gradient(180deg, rgba(5, 5, 9, 0.22) 0%, rgba(5, 5, 9, 0.4) 42%, rgba(5, 5, 9, 0.72) 100%),
    radial-gradient(ellipse at 20% 10%, rgba(124, 60, 255, 0.22), transparent 50%);
}

.otv-hero__inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.otv-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.otv-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.otv-breadcrumb a:hover,
.otv-breadcrumb a:focus-visible {
  color: #fff;
}

.otv-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--otv-cyan);
}

.otv-hero__title {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.otv-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.45;
}

.otv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.otv-section {
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.otv-section__inner {
  width: min(1100px, 100%);
  margin-inline: auto;
}

.otv-section__head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.otv-section__head h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.otv-section__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.otv-placeholder {
  border: 1px dashed rgba(98, 243, 223, 0.35);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(98, 243, 223, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.otv-placeholder strong {
  color: var(--otv-cyan);
  font-weight: 650;
}

.otv-grid {
  display: grid;
  gap: 1rem;
}

.otv-grid--2 {
  grid-template-columns: 1fr;
}

.otv-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .otv-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .otv-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.otv-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
}

.otv-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.otv-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.45;
}

.otv-media-slot {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #12121a;
  aspect-ratio: 16 / 9;
}

.otv-media-slot--portrait {
  aspect-ratio: 3 / 4;
}

.otv-media-slot img,
.otv-media-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.otv-media-slot--empty {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.otv-stats {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .otv-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.otv-stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.otv-stat__value {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.otv-stat__label {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
}

.otv-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.otv-logo-slot {
  width: 7.5rem;
  height: 3.25rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.otv-faq details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 0.1rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.otv-faq details + details {
  margin-top: 0.65rem;
}

.otv-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0;
  font-weight: 600;
}

.otv-faq summary::-webkit-details-marker {
  display: none;
}

.otv-faq p {
  margin: 0 0 0.95rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.otv-cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.otv-cta__inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin-inline: auto;
  text-align: center;
}

.otv-cta h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.otv-cta p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.72);
}

.otv-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.otv-related a {
  color: rgba(255, 255, 255, 0.78);
}

/* Vertical rhythm modifiers */
.page-ontour-casa .otv-hero {
  min-height: min(82vh, 46rem);
}

.page-ontour-azienda .otv-hero {
  min-height: min(72vh, 40rem);
}

.page-ontour-azienda .otv-hero__veil {
  background:
    linear-gradient(100deg, rgba(5, 5, 9, 0.68) 0%, rgba(5, 5, 9, 0.38) 55%, rgba(5, 5, 9, 0.5) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(98, 243, 223, 0.16), transparent 45%);
}

.page-ontour-piazza .otv-hero {
  min-height: min(90vh, 54rem);
}

.page-ontour-fiera .otv-hero {
  min-height: min(92vh, 56rem);
}

.page-ontour-fiera .otv-hero__veil {
  background:
    linear-gradient(180deg, rgba(5, 5, 9, 0.18) 0%, rgba(5, 5, 9, 0.48) 55%, rgba(5, 5, 9, 0.75) 100%),
    radial-gradient(ellipse at 70% 0%, rgba(124, 60, 255, 0.28), transparent 48%);
}

.otv-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.otv-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .otv-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .otx-scenario-card {
    transition: none;
  }
}
