/* OPTOVISTA 26 — Visitor pages */

.ov-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #0f1b2d;
}

.ov-hero-media {
  position: absolute;
  inset: 0;
}

.ov-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.ov-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,27,45,.35) 0%, rgba(15,27,45,.55) 40%, rgba(15,27,45,.88) 100%),
    linear-gradient(90deg, rgba(30,78,140,.45), transparent 55%);
}

.ov-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4.5rem 0 3.25rem;
}

@media (max-width: 767.98px) {
  .ov-hero-content {
    padding: 3.25rem 1.15rem 2.5rem;
  }
  .ov-hero h1 {
    max-width: none;
  }
  .ov-page-hero {
    padding: 2rem 1.15rem 1.5rem;
  }
}

.ov-btn-primary {
  background: #fff;
  color: var(--ov-primary-dark);
  border: 1px solid rgba(255,255,255,.8);
}

.ov-hero .ov-btn-primary,
.ov-cta-band .ov-btn-primary {
  background: #fff;
  color: var(--ov-primary-dark);
}

.ov-kicker {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  margin-bottom: .85rem;
}

.ov-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 .85rem;
  max-width: 14ch;
}

.ov-hero-sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.ov-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.ov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .7rem 1.35rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: .2s ease;
}

.ov-btn-primary {
  background: #fff;
  color: var(--ov-primary-dark);
}

.ov-btn-primary:hover {
  background: var(--ov-primary-soft);
  color: var(--ov-primary-dark);
}

.ov-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}

.ov-btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: #fff;
}

.ov-btn-curve {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .65rem 1.25rem;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  background: var(--ov-primary);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 20px rgba(30,78,140,.22);
  transition: .2s ease;
}

.ov-btn-curve:hover {
  background: var(--ov-primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.ov-btn-curve-soft {
  background: var(--ov-primary-soft);
  color: var(--ov-primary) !important;
  box-shadow: none;
}

.ov-btn-curve-soft:hover {
  background: #d7e3f3;
  color: var(--ov-primary-dark) !important;
}

/* Sections */
.ov-section {
  padding: 4rem 0;
}

.ov-section-tight { padding: 3rem 0; }

.ov-section-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 400;
  color: var(--ov-ink);
  margin: 0 0 .5rem;
  line-height: 1.15;
}

.ov-section-lead {
  color: var(--ov-muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.ov-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ov-section-head .ov-section-lead { margin-bottom: 0; }

/* Feature strip */
.ov-strip {
  background: #fff;
  border-bottom: 1px solid var(--ov-line);
  padding: 1.5rem 0;
}

.ov-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ov-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.ov-strip-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .25rem 0;
}

.ov-strip-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ov-primary-soft);
  color: var(--ov-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.ov-strip-item strong {
  display: block;
  font-size: .95rem;
  margin-bottom: .15rem;
}

.ov-strip-item span {
  color: var(--ov-muted);
  font-size: .88rem;
  line-height: 1.45;
}

/* About / split */
.ov-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ov-split { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

.ov-split-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--ov-shadow);
  border: 1px solid var(--ov-line);
  background: #fff;
  aspect-ratio: 4/3;
}

.ov-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cards grid */
.ov-card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ov-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .ov-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.ov-info-card {
  background: #fff;
  border: 1px solid var(--ov-line);
  border-radius: var(--ov-radius);
  padding: 1.5rem;
  height: 100%;
  transition: .2s ease;
}

.ov-info-card:hover {
  border-color: #c9d6e8;
  box-shadow: var(--ov-shadow);
}

.ov-info-card h3 {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
  color: var(--ov-ink);
}

.ov-info-card p {
  margin: 0;
  color: var(--ov-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.ov-info-card .ov-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ov-primary-soft);
  color: var(--ov-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Gallery preview */
.ov-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (min-width: 768px) {
  .ov-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.ov-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--ov-line);
  background: #fff;
}

.ov-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.ov-gallery-item:hover img { transform: scale(1.04); }

/* CTA band */
.ov-cta-band {
  background: linear-gradient(135deg, var(--ov-primary) 0%, var(--ov-primary-dark) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem 1.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .ov-cta-band { padding: 3rem 3rem; }
}

.ov-cta-band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 .5rem;
}

.ov-cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  opacity: .88;
}

.ov-cta-band .ov-btn-primary {
  background: #fff;
  color: var(--ov-primary-dark);
}

/* Page header (inner pages) */
.ov-page-hero {
  background: #fff;
  border-bottom: 1px solid var(--ov-line);
  padding: 2.5rem 0 2rem;
}

.ov-page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 .4rem;
  font-weight: 400;
}

.ov-page-hero p {
  margin: 0;
  color: var(--ov-muted);
  max-width: 40rem;
}

/* Register / forms polish */
.ov-form-shell {
  max-width: 720px;
  margin: 0 auto;
}

.ov-cat-card {
  border: 1px solid var(--ov-line);
  border-radius: 16px;
  padding: 1.35rem;
  background: #fff;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: .2s ease;
}

.ov-cat-card:hover {
  border-color: var(--ov-primary);
  box-shadow: var(--ov-shadow);
  color: inherit;
}

.ov-cat-card h3 { font-size: 1.15rem; margin: 0 0 .35rem; color: var(--ov-primary-dark); }
.ov-cat-card p { margin: 0; color: var(--ov-muted); font-size: .92rem; }

/* Speakers / agenda soft */
.ov-speaker-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ov-line);
  border-radius: 16px;
  padding: 1.5rem 1rem;
}

.ov-speaker-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .85rem;
  border: 3px solid var(--ov-primary-soft);
}

/* Timeline */
.ov-timeline-item {
  border-left: 2px solid var(--ov-primary-soft);
  padding: 0 0 1.5rem 1.25rem;
  position: relative;
}

.ov-timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ov-primary);
}

.ov-timeline-item time {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ov-primary);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Inner page shells */
.ov-page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.15rem 3.5rem;
}

.ov-page-hero-sm,
.ov-page-header {
  margin-bottom: 1.5rem;
}

.ov-page-hero-sm h1,
.ov-page-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 .35rem;
}

.ov-section-label {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ov-primary);
  margin-bottom: .5rem;
}

.ov-category-card,
.ov-category-card-lg {
  border: 1px solid var(--ov-line);
  border-radius: 16px;
  padding: 1.5rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: .2s ease;
  box-shadow: none;
}

.ov-category-card:hover,
.ov-category-card-lg:hover {
  border-color: var(--ov-primary);
  box-shadow: var(--ov-shadow);
  color: inherit;
}

.ov-category-card i,
.ov-category-card-lg i {
  font-size: 1.75rem;
  color: var(--ov-primary);
  margin-bottom: .75rem;
  display: inline-block;
}

.ov-fee {
  display: inline-block;
  margin-top: .85rem;
  font-weight: 700;
  color: var(--ov-primary);
  font-size: 1.15rem;
}

.ov-link-arrow {
  color: var(--ov-primary);
  font-weight: 600;
  text-decoration: none;
}

.ov-link-arrow:hover { color: var(--ov-primary-dark); }

.ov-stat-card {
  background: #fff;
  border: 1px solid var(--ov-line);
  border-radius: var(--ov-radius);
  padding: 1.5rem;
  height: 100%;
}

.ov-stat-card i {
  font-size: 1.5rem;
  color: var(--ov-primary);
  margin-bottom: .75rem;
  display: block;
}

.ov-form-actions {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ov-line);
  display: flex;
  justify-content: flex-start;
}

.ov-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  background: var(--ov-primary);
  color: #fff;
  border: 1px solid var(--ov-primary-dark);
  box-shadow: 0 8px 20px rgba(30,78,140,.22);
  cursor: pointer;
  transition: .2s ease;
}

.ov-btn-submit:hover {
  background: var(--ov-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.ov-gallery-grid-page {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .ov-gallery-grid-page {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1100px) {
  .ov-gallery-grid-page {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ov-gallery-item-fig {
  margin: 0;
  position: relative;
  aspect-ratio: 1;
}

.ov-gallery-item-fig figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .65rem .75rem;
  background: linear-gradient(transparent, rgba(15,27,45,.78));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  font-size: .82rem;
}

.ov-gallery-item-fig figcaption strong {
  font-size: .9rem;
}

.ov-form-divider {
  margin: 1.5rem 0;
  border-color: var(--ov-line);
  opacity: 1;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .ov-hero-media img {
    animation: ovKen 18s ease-in-out infinite alternate;
  }
  @keyframes ovKen {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
  }
  .ov-info-card,
  .ov-cat-card,
  .ov-btn-curve {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  }
}
