.path-frontpage .lp-hero-parallax {
  --hero-parallax-height: clamp(667px, 100vh, 920px);
}

.path-frontpage .lp-hero-parallax .container {
  margin-top: 35px;
}

@media (min-width: 992px) {
  .path-frontpage.verisure-se:not(.user-logged-in):not(.fixed-header) .layout-container > header .wrapper-header .site-header div.region-header {
    padding-top: 12px;
  }
  
  .path-frontpage.verisure-se:not(.user-logged-in):not(.fixed-header) .layout-container > header .wrapper-header .site-header div.region-header .menu--secondary-menu ul.menu li.menu-item a {
    color: #fff;
  }
  
  .path-frontpage.verisure-se:not(.user-logged-in):not(.fixed-header) .layout-container > main {
    padding-top: 0;
  }
}

.lp-hero-parallax {
  --hero-parallax-height: clamp(520px, 75vh, 820px);
  height: var(--hero-parallax-height);
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-inline: auto;
  isolation: isolate;
  contain: paint;
}

.lp-hero-parallax > .row:first-of-type {
  height: 100%;
}

.lp-hero-parallax>.container {
  height: auto;
  max-width: 1430px;
  position: absolute;
  left: 15px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.lp-hero-parallax .hero-image {
  position: absolute;
  width: 100%;
  object-fit: cover;
  will-change: transform;
  transform-origin: center top;
  pointer-events: none;
  display: block;
  backface-visibility: hidden;

}

.lp-hero-parallax video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
    contain: paint;

}
   
.lp-hero-parallax .hero-image  {
  inset: -10% 0 0 0;
  height: 110% !important;
  transform: translate3d(0,20px,0);
  contain: paint;
}

.lp-hero-parallax .column-container {
  width: 100%;
  justify-content: space-between;
}

.lp-hero-parallax .container .right-column {
  display: flex;
}

.lp-hero-parallax .container .right-column > div{
  display: flex;
  align-items: center;
  max-width: 495px;
  width: 100%;
  flex: 0 0 100%;
  flex-direction: column;
}

.lp-hero-parallax .container .left-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.lp-hero-parallax .container .right-column>div>p {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.lp-hero-parallax .right-column h3 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.75rem;
  max-width: 350px;
  margin: 0 auto;
}

.lp-hero-parallax .container .right-column .btn-lg.btn-primary,
.lp-hero-parallax .container .right-column .btn-secondary {
  font-size: 1.125rem !important;
  padding: 0 2.5rem !important;
  border: none !important;
  line-height: 1 !important;
  min-height: 56px !important;
  justify-content: center !important;
  align-items: center;
  margin-top: 1.5rem !important;
}

.lp-hero-parallax .container .right-column .btn-lg.btn-primary {
  box-shadow:  0 8px 20px rgba(0, 0, 0, 0.15),   /* djup */
  0 2px 6px rgba(0, 0, 0, 0.1);  ;
}

.lp-hero-parallax .container .right-column .btn-secondary {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
}

.lp-hero-parallax .container .right-column .btn-lg.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.lp-hero-parallax .container .right-column .btn-secondary:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}
  
.lp-hero-parallax .container .right-column .btn-lg.btn-primary.btn-white,
.lp-hero-parallax .container .right-column .btn-secondary.btn-white {
  background-color: #fff !important;
  color: #262626 !important;
  transition: all .3s ease-in-out;
}

.lp-hero-parallax .container .right-column .btn-lg.btn-primary.btn-white:hover,
.lp-hero-parallax .container .right-column .btn-lg.btn-secondary.btn-white:hover{
  background-color: #ed002f !important;
  color: #fff !important;
  border: none !important;
}

.lp-hero-parallax.form-clean .webform-submission-form {
  max-width: 320px;
  margin: auto;
  color: #fff;
  position: relative;
}

.lp-hero-parallax.form-clean .webform-submission-form .form-item.js-form-item-phone {
  margin: 1rem 0 1.5rem;
}

.lp-hero-parallax.form-clean label.visually-hidden {
  display: none;
}

.lp-hero-parallax.form-clean form input[type='text'],
.lp-hero-parallax.form-clean form input[type='tel'] {
  background-color: transparent;
  text-align: center;
  border: none;
  box-shadow: none;
  border-radius: 0 !important;
  position: relative;
  color: #fff !important;
  font-size: 1.125rem;
  letter-spacing: .025em;
  /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);*/
  text-align: left;
}

.lp-hero-parallax.form-clean .form-actions {
  margin: 0 !important;
}

.lp-hero-parallax.form-clean .form-item-phone {
  position: relative;
}

.lp-hero-parallax.form-clean .form-item-phone:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 15px;
  top: 40px;
  left: 0;
  z-index: 0;
  border: 2px solid #fff;
  border-top: none;
  border-radius: 15px;
  clip-path: inset(8px 0 0);
}

.lp-hero-parallax.form-clean .form-submit {
  margin: 0 auto;
  border-radius: 3.125rem;
  background-color: #fff;
  border: none;
  color: #262626;
  padding: 0 1.25rem;
  margin-top: .9375rem;
  height: 1.875rem;
  line-height: 1.875rem;
  position: absolute;
  bottom: 34px;
  right: 10px;
}


.lp-hero-parallax.form-clean .form-submit:hover {
  background-color: #ed002f !important;
  color: #fff !important;
  border: none !important;
}

.lp-hero-parallax.form-clean form input[type='text']::-webkit-input-placeholder,
.lp-hero-parallax.form-clean form input[type='tel']::-webkit-input-placeholder {
  color: #fff !important;
}

.lp-hero-parallax.form-clean form input[type='text']::-moz-placeholder,
.lp-hero-parallax.form-clean form input[type='tel']::-moz-placeholder {
  color: #fff;
}
  

.lp-hero-parallax.form-clean .form-item.messages-box .messages-inner-wrapper {
  margin: 1.5625rem 0 0;
  background: transparent;
  color: white;
  font-size: .75rem;
  padding: 0 1.875rem;
  text-align: center;
  width: 100%;
}
  
.lp-hero-parallax.form-clean .form-item.messages-box .message-notice .messages-inner-wrapper {
  margin: 1.5625rem 0;
  font-size: 1rem;
  padding: 0;
  line-height: 1.5;
}


.lp-hero-parallax.form-clean form input:-webkit-autofill,
.lp-hero-parallax.form-clean form input:-webkit-autofill:hover,
.lp-hero-parallax.form-clean form input:-webkit-autofill:focus,
.lp-hero-parallax.form-clean form textarea:-webkit-autofill,
.lp-hero-parallax.form-clean form textarea:-webkit-autofill:hover,
.lp-hero-parallax.form-clean form textarea:-webkit-autofill:focus,
.lp-hero-parallax.form-clean form select:-webkit-autofill,
.lp-hero-parallax.form-clean form select:-webkit-autofill:hover,
.lp-hero-parallax.form-clean form select:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
}
  
.lp-hero-parallax .video-buttons {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 36px;
  height: 36px;
  z-index: 3;
}
  
.lp-hero-parallax .video-play {
  opacity: 0;
}

.lp-hero-parallax .video-pause {
  opacity: .65;
}

.lp-hero-parallax .video-play,
.lp-hero-parallax .video-pause {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.lp-hero-parallax .video-play.fade-out,
.lp-hero-parallax .video-pause.fade-out {
  animation: fade-out .3s forwards;
  z-index: 0;
}

.lp-hero-parallax .video-play.fade-in,
.lp-hero-parallax .video-pause.fade-in {
  animation: fade-in .3s forwards;
  z-index: 1;
}


@keyframes fade-out {
  0% {
      opacity: .65;
  }

  100% {
      opacity: 0;
  }
}

@keyframes fade-in {
  0% {
      opacity: 0;
  }

  100% {
      opacity: .65;
  }
}

.lp-hero-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ljusa bilder → mörk overlay */

.hero-overlay-dark::before {
  background: rgba(0,0,0,0.25);
}

/* mörka bilder → ljus overlay */

.hero-overlay-light::before {
  background: rgba(255,255,255,0.25);
}

/* ingen overlay */

.hero-overlay-none::before {
  background: transparent;
}



@media (max-width: 991px) {
  .lp-hero-parallax {
    --hero-parallax-height: clamp(520px, 85vh, 820px);
  }
  
  .lp-hero-parallax img,
  .lp-hero-parallax .hero-image {
   inset: 0;
   height: 100% !important;
   transform: translate3d(0,0,0) !important;
  }

  .lp-hero-parallax > .container {
    bottom: 20px;
    transform: unset;
    top: unset;
  }
    
  .lp-hero-parallax .container .right-column {
    margin: 0 auto;
  }

  .lp-hero-parallax .container .left-column h2 {
    text-align: center;
    max-width: 520px;
  }
  
  .lp-hero-parallax .container .right-column>div>p {
    margin-top: 2rem;
  
  }
  
  .lp-hero-parallax .video-buttons {
    right: 5px;
    bottom: 10px;
  }

  .lp-hero-parallax.form-clean .webform-submission-form {
    position: relative;
  }


  .lp-hero-parallax.form-clean form input[type='text'],
  .lp-hero-parallax.form-clean form input[type='tel'] {
    text-align: left !important;
  }


  .lp-hero-parallax.form-clean .webform-submission-form .form-wrapper {
    width: fit-content !important;
  }

  .lp-hero-parallax .campaign .campaign-message {
    left: 50% !important;
    top: -20px !important;
    transform: translateX(-50%);
  }
  
  .lp-hero-parallax .campaign h2 {
      margin-top: 1rem !important;
  }

}


@media (max-width: 480px) {
  .path-frontpage .lp-hero-parallax {
    --hero-parallax-height: clamp(667px, 100vh, 820px);
  }
  
  .lp-hero-parallax {
    --hero-parallax-height: clamp(520px, 95vh, 820px);
  }
  
  @supports (height: 100svh) {
    .path-frontpage .lp-hero-parallax {
      --hero-parallax-height: clamp(667px, 100svh, 820px);
    }
    
    .lp-hero-parallax {
      --hero-parallax-height: clamp(520px, 100svh, 680px);
    }
  }
  
  .lp-hero-parallax .container .right-column .btn-lg.btn-primary,
  .lp-hero-parallax .container .right-column .btn-lg.btn-secondary {
    font-size: 1rem !important;
    margin-top: 1.25rem !important;
    line-height: 3.375rem !important;
    min-height: 52px !important;
    border: none !important;
  }
    
  .lp-hero-parallax .video-play, .lp-hero-parallax .video-pause {
    bottom: 15px;
    right: 15px;
  }
}


@media (max-width: 375px) and (max-height: 600px)  {
  .path-frontpage .lp-hero-parallax {
    --hero-parallax-height: clamp(667px, 100vh, 820px);
  }
  
  .lp-hero-parallax {
    --hero-parallax-height: clamp(520px, 105vh, 820px);
  }
  
   @supports (height: 100svh) {
    .path-frontpage .lp-hero-parallax {
      --hero-parallax-height: clamp(667px, 125svh, 820px);
    }
    
    .lp-hero-parallax {
      --hero-parallax-height: clamp(520px, 120svh, 820px);
    }
  }
}

