/* ================================
   HERO BASE
================================ */
:root {
  --sv-pad-x: 84px;
  --sv-hero-pad-top: 84px;

  --sv-h1-size: 60px;
  --sv-h1-line: 63px;
  --sv-h1-after: 20px;

  --sv-h2-size: 36px;
  --sv-h2-line: 39.6px;
  --sv-h2-after: 18px;

  --sv-body-size: 16px;
  --sv-body-line: 24px;

  --sv-btn-h: 44px;

  --sv-header-bg: #f9f4e8;
  --sv-text: #111111;
  --sv-border: rgba(0, 0, 0, .18);
}

#header.header {
  position: relative;
  z-index: 1000;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Transparent header wrapper for front page (lets hero show through) */
.path-frontpage #header.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  border-bottom: none;
}

/* Front page: green top bar transparent too */
.path-frontpage nav#block-sendaviva-menusuperior {
  background: transparent;
}

/* ── Top bar: constrain content to same container as branding bar ──
   The .sv-superior-menu is inside section.row.region-new-header which
   stretches full-width. We need to wrap it in a centered max-width box
   so its right-aligned items align with the hero text on wide screens. */
nav#block-sendaviva-menusuperior .region {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-left: var(--sv-pad-x);
  padding-right: var(--sv-pad-x);
  box-sizing: border-box;
}

nav#block-sendaviva-menusuperior .sv-superior-menu {
  margin-left: auto;
}


/* ── Branding bar (navbar-main) ── */
#navbar-main.navbar {
  min-height: 96px;
  padding: 0;
  background: var(--sv-header-bg);
  border-bottom: 1px solid var(--sv-border);
  position: relative;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Front page: branding bar transparent until sticky */
.path-frontpage #navbar-main.navbar {
  background: transparent;
  border-bottom: none;
}

/* ── Sticky branding bar (ALL pages) ── */
#navbar-main.navbar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--sv-header-bg);
  border-bottom: 1px solid var(--sv-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: svHeaderSlide 0.3s ease forwards;
}

@keyframes svHeaderSlide {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

/* Force background when menu is open */
body.menu-open #navbar-main.navbar {
  background: var(--sv-header-bg) !important;
  border-bottom: 1px solid var(--sv-border);
}

/* Adjust Hero Padding on Front Page to clear header */
.path-frontpage {
  --sv-hero-pad-top: 140px;
}

@media (max-width: 1200px) {
  .path-frontpage {
    --sv-hero-pad-top: 120px;
  }
}

@media (max-width: 768px) {
  .path-frontpage {
    --sv-hero-pad-top: 100px;
  }
}

/* (navbar-main defined above in sticky section) */

#navbar-main .container,
#navbar-main .container-fluid {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.sv-branding {
  width: 100%;
}

.sv-header-grid {
  /* Constrain to the same container as the hero text, so the burger
     and headline always share the same left edge at any zoom / viewport. */
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 18px var(--sv-pad-x);
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 12px;
}

.sv-burger {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 12px;
  cursor: pointer;
}

.sv-burger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
}

/* Burger lines — dark by default (all pages) */
.sv-burger-lines {
  width: 24px;
  height: 2px;
  background: #000000;
  position: relative;
  display: block;
  border-radius: 2px;
}

.sv-burger-lines::before,
.sv-burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
}

/* Front page (before scroll): white burger over transparent/hero */
.path-frontpage .sv-burger-lines {
  background: #ffffff;
}

.path-frontpage .sv-burger-lines::before,
.path-frontpage .sv-burger-lines::after {
  background: #ffffff;
}

/* Front page sticky (after scroll): dark burger over beige bg */
.path-frontpage .is-sticky .sv-burger-lines {
  background: #000000;
}

.path-frontpage .is-sticky .sv-burger-lines::before,
.path-frontpage .is-sticky .sv-burger-lines::after {
  background: #000000;
}

.sv-burger-lines::before {
  top: -8px;
}

.sv-burger-lines::after {
  top: 8px;
}

.sv-brand-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sv-logo {
  height: 54px;
  width: auto;
  display: block;
}

.sv-logo-alt {
  height: 54px;
  width: auto;
  display: none !important;
}

/* Front Page: Show Alternate Logo initially */
.path-frontpage .sv-logo {
  display: none !important;
}

.path-frontpage .sv-logo-alt {
  display: block !important;
}

/* Front Page Sticky or Menu Open: Show Original Logo */
.path-frontpage .is-sticky .sv-logo {
  display: block !important;
}

.path-frontpage .is-sticky .sv-logo-alt {
  display: none !important;
}

/* Menu Open: Show Original Logo */
.menu-open .sv-logo {
  display: block !important;
}

.menu-open .sv-logo-alt {
  display: none !important;
}

.sv-site-name {
  display: none;
}

.sv-slogan {
  display: none;
}

.sv-lang {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--sv-text);
}

.sv-lang-link {
  text-decoration: none;
  color: var(--sv-text);
  opacity: .9;
}

.sv-lang-link:hover {
  opacity: 1;
}

.sv-lang-sep {
  opacity: .35;
}

.sv-menu-close {
  position: absolute;
  top: 18px;
  right: var(--sv-pad-x);
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1100;
}

.sv-menu-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
}

.sv-close-lines {
  width: 24px;
  height: 2px;
  background: transparent;
  position: relative;
  display: block;
}

.sv-close-lines::before,
.sv-close-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.sv-close-lines::before {
  transform: rotate(45deg);
}

.sv-close-lines::after {
  transform: rotate(-45deg);
}

.menu-open .sv-menu-close {
  display: inline-flex;
  justify-content: start;
  align-items: baseline;
  margin-top: 9px;
}

.sv-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.sv-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sv-hero__bg .field,
.sv-hero__bg .field__item,
.sv-hero__bg>div {
  width: 100%;
  height: 100%;
}

.sv-hero__bg picture,
.sv-hero__bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sv-hero__bg img {
  object-fit: cover;
  object-position: 75% center;
}

.sv-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.35) 35%,
      rgba(0, 0, 0, 0.00) 65%);
}

.sv-hero__container {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--sv-pad-x);
  padding-right: var(--sv-pad-x);
  padding-top: var(--sv-hero-pad-top);
  display: flex;
  align-items: flex-start;
}

.sv-hero__content {
  width: 640px;
  max-width: 640px;
  color: #fff;
}

.sv-hero__label,
.sv-hero__label * {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--sv-h1-size);
  line-height: var(--sv-h1-line);
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

.sv-hero__label {
  margin: 0 0 var(--sv-h1-after) 0;
}

.sv-hero__label h1,
.sv-hero__label h2,
.sv-hero__label p {
  margin: 0;
}

.sv-hero__subtitle {
  width: 520px;
  max-width: 520px;
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, .92);
}

.sv-hero__subtitle,
.sv-hero__subtitle * {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--sv-body-size);
  line-height: var(--sv-body-line);
  font-weight: 500;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 24px;
}

.sv-hero__cta a,
.sv-hero__cta button {
  height: var(--sv-btn-h);
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-decoration: none;
}

.sv-hero__cta a:hover,
.sv-hero__cta button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.80);
}

.view-id-header,
.view-id-header .view-content,
.view-id-header .views-row {
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1200px) {
  :root {
    --sv-pad-x: 48px;
    --sv-hero-pad-top: 64px;
  }

  .sv-hero__content {
    width: 600px;
    max-width: 600px;
  }

  .sv-hero__label,
  .sv-hero__label * {
    font-size: 54px;
    line-height: 58px;
  }
}

@media (max-width: 768px) {
  :root {
    --sv-pad-x: 24px;
    --sv-hero-pad-top: 40px;
  }

  .sv-header-grid {
    grid-template-columns: 80px 1fr 80px;
    padding: 12px var(--sv-pad-x);
  }

  .sv-logo,
  .sv-logo-alt {
    height: 40px;
  }

  .sv-hero {
    height: 100vh;
    min-height: 500px;
  }

  .sv-hero__bg img {
    object-position: 85% 20%;
  }

  .sv-hero__overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 30%,
        rgba(0, 0, 0, 0.55) 100%);
  }

  .sv-hero__container {
    padding-top: 0;
    align-items: center;
  }

  .sv-hero__content {
    width: 100%;
    max-width: 100%;
    margin-top: 10vh;
  }

  .sv-hero__label,
  .sv-hero__label * {
    font-size: 38px;
    line-height: 42px;
  }

  .sv-hero__label {
    margin-bottom: 24px;
  }

  .sv-hero__subtitle,
  .sv-hero__subtitle * {
    font-size: 16px;
    line-height: 24px;
    width: 100%;
    max-width: 100%;
  }

  .sv-hero__subtitle {
    margin-bottom: 32px;
  }

  .sv-header-slider-bullets {
    bottom: 30px;
  }
}

/* Language Switcher */
.sv-superior-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-superior-menu .nav-item {
  display: flex;
  align-items: center;
}

.sv-superior-menu .nav-link,
.sv-superior-menu a {
  color: #fff !important;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1 !important;
  background: transparent !important;
}

.sv-superior-menu .nav-link:hover,
.sv-superior-menu a:hover {
  opacity: 0.8;
  color: #fff !important;
}

.sv-lang-dropdown {
  position: relative !important;
}

.sv-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
}

.sv-lang-btn::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.sv-lang-menu {
  display: none;
  position: absolute !important;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  min-width: 80px;
  width: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  list-style: none;
  z-index: 10000;
  margin: 0;
}

.sv-lang-menu.show {
  display: block !important;
}

.sv-lang-menu li {
  padding: 0;
  border: none;
}

.sv-lang-menu .dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #111 !important;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  background: transparent;
}

.sv-lang-menu .dropdown-item:hover {
  background: #f5f5f5;
  color: #111 !important;
}

/* ================================
   HEADER SLIDER (HERO)
================================ */
html,
body {
  overflow-x: hidden;
}

.path-frontpage .highlighted,
.path-frontpage .highlighted .container-fluid,
.path-frontpage .highlighted .container,
.path-frontpage .highlighted .row,
.path-frontpage .highlighted .block {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.sv-header-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
}

.sv-header-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.sv-header-slider::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.sv-header-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

/* Pagination container */
.sv-header-slider-bullets {
  position: absolute;
  bottom: 100px;
  right: 0;
  left: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-right: var(--sv-pad-x);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  pointer-events: none;
}

.sv-header-bullet {
  pointer-events: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sv-header-bullet.is-active {
  background-color: #ffffff;
}