body {margin-top: 5rem;}
.site-header {height: 5rem; z-index: 999999999;}
.wpml-ls-flag {display: none !important;}
.has-light-blue-background-color .button, .cards-block--card .button {
  box-shadow: none;
  border: 3px solid red;
  background: linear-gradient(to right, red 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: all .4s ease-out;
  color: #333;
}
.has-light-blue-background-color .button:hover:after, .cards-block--card .button:hover:after,  .has-light-blue-background-color .button:hover:before, .cards-block--card .button:hover:before {
  display: none;
}
.has-light-blue-background-color .button:hover, .cards-block--card .button:hover {
  background-position: left bottom;
  color: white;
}
.main-container--content {
  margin: auto;
  padding: 0 15px;
}
/* Hero */
.featured-hero {
  height: 35rem;
}

.featured-hero h1 {
  background: #333333;
  padding: 1rem 2rem;
  hyphens: auto;
}
@media (max-width: 991px) {
  .featured-hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 450px) {
  .featured-hero h1 {
    font-size: 1.35rem;
  }
}

/* Nav bar */
.top-bar .top-bar-left {
  padding: 0 0 0 3rem;
  flex-grow: 1 !important;
  flex-basis: 0 !important;
}
.top-bar-left .top-bar--logo {
  display: block;
  background-image: url(../images/logo-white.svg);
  height: 37px;
  width: 85px;
  background-size: 100% auto;
}

.top-bar-center .menu {
  padding: 0;
}
.top-bar-center .menu li.menu-item {
  padding: 2rem 1rem;
}
.top-bar-center .menu li.menu-item a {
  font-weight: 400;
  text-transform: none;
  padding: 0;
  transition: .25s;
}
.top-bar-center .menu .sub-menu {
  display: none;
}

.top-bar .top-bar-right {
  padding: 0 3rem 0 0;
  flex-grow: 1 !important;
  flex-basis: 0 !important;
  justify-content: flex-end;
}
.top-bar #searchform .input-group {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #fefefe;
}
.top-bar #searchform .input-group input[type=text] {
  border: none;
  background-color: transparent;
  box-shadow: none;
  color: #fefefe;
  font-size: 14px;
  width: 100px;
  height: 2.5rem;
  padding: 0;
}
.top-bar #searchform .input-group input[type=text]::placeholder {
  color: #fefefe;
}
.top-bar #searchform .search-icon {
  background-image: url(../images/icons/search-icon.svg);
  height: 1.25rem;
  width: 1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: contain;
  border: none;
  margin-right: 0;
}
.top-bar-right .wpml-ls-legacy-list-horizontal ul {
  padding: 0;
  margin-left: 2rem !important;
  display: flex;
}
.is-dropdown > a, .is-megamenu > a {
  display: flex;
}
.is-dropdown .menu-item {
  padding: 0.75rem !important;
}
li.is-button {
  padding: 1rem 1rem !important;
}
.is-button > a {
  background: #ff1700;
  padding: 1rem !important;
  font-weight: bold !important;
  color: white !important;
}
.is-megamenu > ul > li {
  padding: 0.75rem !important;
}
.is-megamenu > ul > li > a {
  padding-bottom: 0.75rem !important;
  font-weight: bold !important;
}
.is-megamenu > ul > li > .sub-menu {
  display: block !important;
  margin: 0;
  list-style-type: none;
}
.is-megamenu > ul > li > .sub-menu > li {
  padding: 0.75rem 0 !important;
}
.is-megamenu-image .megamenu-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 300px;
  margin-bottom: 1rem;
  cursor: default;
}
@media (min-width: 1500px) {
  .top-bar-left .top-bar--logo {
    height: 45px;
    width: 105px;
  }
}
@media (min-width: 1440px) {
  .is-dropdown:hover > ul.sub-menu {
    display: block !important;
    position: absolute;
    top: 100%;
    margin: 0;
    list-style-type: none;
    padding: 1rem;
    max-width: 300px;
  }
  .is-megamenu:hover > ul.sub-menu {
    padding: 1rem;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    position: absolute;
    width: 100%;
    margin: 0;
    list-style-type: none;
    left: 0;
    top: 100%;
  }
  .is-dropdown > a:after, .is-megamenu > a:after {
    content: "";
    margin-left: 0.25rem;
    width: 1rem;
    height: 1rem;
    background-image: url(../images/icons/plus-white.svg);
    background-size: contain;
    transition: .25s;
    display: block;
  }
  .is-dropdown:hover > a:after, .is-megamenu:hover > a:after {
    transform: rotate(45deg);
  }
  /* Animations */
  .is-megamenu > ul, .is-dropdown > ul {
    animation: growDown 250ms ease-in-out forwards;
    transform-origin: top center;
  }
  @keyframes growDown {
    0% {
      transform: scaleY(0)
    }
    100% {
      transform: scaleY(1)
    }
  }
}

html:lang(en-US) .top-bar-center .menu, html:lang(sv-SE) .top-bar-center .menu {
    position: static;
  }
  html:lang(en-US) .is-megamenu:hover > ul.sub-menu, html:lang(sv-SE) .is-megamenu:hover > ul.sub-menu {
    right: 0;
    margin: 0 auto;
    width: 950px;
  }
}

/* Menu status */
.menu-item > a:hover {
  color: red;
}
.current-menu-item > a, .current-menu-parent > a, .current-menu-ancestor > a {color: red;}
.is-dropdown.current-menu-ancestor > a:after, .is-megamenu.current-menu-ancestor > a:after, .is-dropdown.current-menu-item > a:after, .is-megamenu.current-menu-item > a:after, .is-megamenu > a:hover:after, .is-dropdown:hover:after {
  background-image: url(../images/icons/plus-red.svg);
}
.mobile-navigation .current-menu-ancestor > .toggle-sub i, .mobile-navigation .current-menu-item > .toggle-sub i {
  background-image: url(../images/icons/plus-red.svg);
}

/* Gravity forms fix */
.gform_wrapper .gform_body .gform_fields .gfield .gfield_label {
  position: static;
  margin-bottom: 0.5rem;
}
.gform_wrapper .gform_body .gform_fields [type=color], .gform_wrapper .gform_body .gform_fields [type=date], .gform_wrapper .gform_body .gform_fields [type=datetime-local], .gform_wrapper .gform_body .gform_fields [type=datetime], .gform_wrapper .gform_body .gform_fields [type=email], .gform_wrapper .gform_body .gform_fields [type=month], .gform_wrapper .gform_body .gform_fields [type=number], .gform_wrapper .gform_body .gform_fields [type=password], .gform_wrapper .gform_body .gform_fields [type=search], .gform_wrapper .gform_body .gform_fields [type=select], .gform_wrapper .gform_body .gform_fields [type=tel], .gform_wrapper .gform_body .gform_fields [type=text], .gform_wrapper .gform_body .gform_fields [type=time], .gform_wrapper .gform_body .gform_fields [type=url], .gform_wrapper .gform_body .gform_fields [type=week], .gform_wrapper .gform_body .gform_fields select, .gform_wrapper .gform_body .gform_fields textarea {
  border-top: 0.125rem solid #333;
  border-left: 0.125rem solid #333;
  border-right: 0.125rem solid #333;
}
.gform_wrapper .gform_body .gform_fields .gfield {
  margin-bottom: 0rem;
}
.gform_wrapper.gravity-theme .gform_fields {
  grid-column-gap: 2%;
  -ms-grid-columns: (1fr 2%) [12];
  grid-row-gap: 16px;
  display: grid;
  grid-template-columns: repeat(12,1fr);
  grid-template-rows: repeat(auto-fill,auto);
  width: 100%;
}
.gform_wrapper.gravity-theme .gfield.gfield--width-half {
  -ms-grid-column-span: 6;
  grid-column: span 6;
}
.gform_wrapper.gravity-theme .gfield {
  grid-column: 1/-1;
  min-width: 0;
}

/* Mobile menu */
.mobile-navigation {
  display: none;
}
.mobile-navigation .nav-wrap {
  padding: 1rem 2rem;
  background-color: #333;
  width: 100%;
  position: fixed;
  height: calc(100% - 65px);
  overflow-x: scroll;
  display: flex;
  max-width: 450px;
  right: 0;
  top: 80px;
  flex-direction: column;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  visibility: hidden;
  opacity: 0;
  left: initial;
  right: -100%;
  transition: .3s;
}
.mobile-navigation .nav-wrap::-webkit-scrollbar {
  display: none;
}
.mobile-navigation .top-bar-left {
  padding: 0 0 0 1.5rem;
  flex-grow: 0 !important;
  flex-basis: auto !important;
}
.mobile-navigation .top-bar-right {
  padding: 0 0 0 1rem;
  flex-grow: 0 !important;
  flex-basis: auto !important;
}
.mobile-navigation .top-bar-right .mobile-menu-toggle {
  cursor: pointer;
  background-color: red;
  width: 5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mobile-navigation .top-bar-right .mobile-menu-toggle .bar1, .mobile-navigation .top-bar-right .mobile-menu-toggle .bar2 {
  height: 2px;
  width: 32px;
  background-color: #fefefe;
  margin-top: 0.3125rem;
  margin-bottom: 0.3125rem;
  transition: .2s;
  position: relative;
}
.mobile-navigation .top-bar-right .mobile-menu-toggle.open .bar1 {
  transform: rotate(45deg);
  margin: 0;
  top: 1px;
}
.mobile-navigation .top-bar-right .mobile-menu-toggle.open .bar2 {
  transform: rotate(-45deg);
  margin: 0;
  bottom: 1px;
}
.mobile-navigation .mobile-menu-cta {
  font-weight: bold;
  color: white;
  margin-right: 1rem;
}
.mobile-navigation .nav-wrap .menu {
  display: block;
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.mobile-navigation .nav-wrap .menu li {
  padding: 0.75rem 0;
  position: relative;
}
.mobile-navigation .menu-item a {
  padding: 0;
  text-transform: none;
}
.mobile-navigation .sub-menu {
  margin: 0;
  list-style-type: none;
  display: none;
  margin-top: 1.5rem;
}
.mobile-navigation .sub-menu li {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.mobile-navigation .sub-menu li a {
  font-weight: 400;
}
.mobile-navigation .sub-menu.active {
  display: block;
}
.mobile-navigation .is-megamenu > a, .mobile-navigation .is-dropdown > a {
  padding-right: 25px;
}
.mobile-navigation .toggle-sub {
  position: absolute;
  right: 0;
  top: 11px;
  cursor: pointer;
}
.mobile-navigation .toggle-sub i {
  background-image: url(../images/icons/plus-white.svg);
  display: inline-block;
  height: 17px;
  width: 17px;
  background-size: contain;
}
.mobile-navigation .toggle-sub.active i{
  transform: rotate(45deg);
}
.mobile-navigation li.is-button {
  display: none;
}
.mobile-navigation.top-bar input {
  max-width: 100%;
}
.lang-selector-mobile {
  display: block;
  background-color: #626262;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: auto;
}
.lang-selector-mobile ul {
  background-color: transparent;
  padding: 1rem;
}
.lang-selector-mobile ul li a {
  padding: 0 15px 0 0;
}
.lang-selector-mobile .wpml-ls-legacy-list-horizontal .wpml-ls-flag+span {
  margin-left: 0;
}
@media (max-width: 1500px) {
  .top-bar .top-bar-left {padding-left: 20px;}
  .top-bar .top-bar-right {padding-right: 20px;}
}
@media (max-width: 1439px) {
  .mobile-navigation {display: flex; justify-content: space-between;}
  .desktop-navigation {display: none;}
  .mobile-navigation .nav-wrap.open {
    opacity: 1;
    visibility: visible;
    left: initial;
    right: 0;
  }
}
/*Footer newsletter*/
.footer-newsletter .footer-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-newsletter p {
  padding-top: 14px;
  font-size: 15px;
}

.footer-newsletter li {
  font-size: 15px;
}

button.lp-form-button {
  text-transform: uppercase;
  font-weight: 800;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 1rem 0;
  padding: 1rem 1rem;
  font-family: inherit;
  font-size: .9rem;
  -webkit-appearance: none;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  color: #333;
  box-shadow: none;
  border: 3px solid red;
  background: linear-gradient(to right, red 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: all .4s ease-out;
  background-position: left bottom;
  color: white;
}

.marketing-subscription-list {
  display: flex;
  color: red;
}

.marketing-subscription-list .lp-form-fieldInput {
  margin: 0;
  vertical-align: middle;
}

.marketing-subscription-list .lp-form-fieldInput {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  appearance: none;
  /* For iOS < 15 */
  background-color: var(--form-background);
  /* Not removed via appearance */
  margin: 0;

  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;
}

.marketing-subscription-list .lp-form-fieldInput::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  /* Windows High Contrast Mode */
  background-color: CanvasText;
}

.marketing-subscription-list .lp-form-fieldInput:checked::before {
  transform: scale(1);
}

/* Sarakkeet-lohko css fix */
.wp-block-custom-inner-columns.has-three-columns .outer-wrap {
  margin-right: -2rem !important;
  margin-left: -2rem !important;
}
.wp-block-custom-inner-columns.has-three-columns .outer-wrap .custom-column {
  padding: 0 2rem !important;
}

@media screen and (max-width: 930px) {
  .footer-newsletter .footer-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    text-align: center;
  }
  ul {
    display: inline-block;
    padding-left: 0;
    text-align: left;
}
.dialogProviderContainerStyle{
  margin: 0 auto;
}
}

/* Iframe full width */
.w-full-area {
  max-width: 100% !important;
}

/* Slider */
.swiper {
  width: 100%;
  height: 100%;
}
.hero-swiper {
  height: 35rem;
}
.hero-slider-item {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,.4);
}
.hero-slider-item .hero-slider-content {
  max-width: 900px;
  color: white;
  padding: 0 50px;
}
/*
.hero-slider-item .slide-title {
  display: inline-block;
  background: #333333;
  padding: 1rem 2rem;
  max-width: 800px;
  margin: 0 15px;
}
*/
.hero-slider-item .slide-title h1, .hero-slider-item .slide-title h2 {
  font-size: 3.5rem;
  hyphens: auto;
  text-transform: uppercase;
  margin-bottom: 0;
  color: white;
}
.hero-slider-item .slide-desc {
  font-size: 20px;
  margin-top: 1rem;
  font-weight: bold;
}
.hero-slider-item .hero-btn {
  margin-top: 1.25rem;
  display: inline-block;
  background: #ff1700;
  padding: 1rem;
  font-weight: bold;
  color: white;
}
.hero-slider-item .hero-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}
.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 16px !important;
}
.swiper-pagination-bullet {
  height: 18px !important;
  width: 18px !important;
  border: 2px solid red;
  opacity: 1 !important;
  background: transparent !important;
}
.swiper-pagination-bullet-active {
  background-color: red !important;
}
.swiper-button-next, .swiper-button-prev {
  color: red !important;
}
@media screen and (max-width: 550px) {
  .hero-slider-item .slide-title h1, .hero-slider-item .slide-title h2 {
    font-size: 2.25rem;
  }
  .hero-slider-item .slide-desc {
    font-size: 16px;
  }
  .swiper-button-next, .swiper-button-prev {
    display: none !important;
  }
  .hero-slider-item .hero-slider-content {
    padding: 0 30px;
  }
  .featured-item-title-link {
    font-size: 1.25rem;
    hyphens: auto;
  }
}

/*
.main-container--content:has(.text-image-wrapper) {
  max-width: none;
}
*/
.text-image-block {
  margin-bottom: 2.5rem;
  width: 68rem;
  margin-left: calc(-34rem + 50%);
}
.text-image-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
}
.grid-order-1 {
  order: 1;
}
.grid-order-2 {
  order: 2;
}
.text-image-wrapper .image-wrapper, .text-image-wrapper .text-wrapper {
  grid-column: span 6 / span 6;
  margin-top: auto;
  margin-bottom: auto;
  text-transform: none !important;
}
@media (max-width: 1120px) {
  .text-image-block {
    width: 100%;
    margin-left: auto;
  }
  .text-image-wrapper {
    display: block;
  }
  .text-image-wrapper .image-wrapper {
    padding-bottom: 1.5rem;
  }
}

/* Custom archive */
.new-archive-section {padding: 3rem 0 6rem 0;}
.new-archive-section .cat-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.5rem;
  margin-bottom: 2rem;
}
.new-archive-section .button.active {
  background: red;
  color: white;
}
.new-archive-section .archive-item {
  border-left: none !important;
  padding: 0 !important;
  display: flex;
  gap: 1.25rem;
}
.new-archive-section .archive-item--image {
  max-width: 200px;
  width: 100% !important;
  flex-shrink: 0;
  height: auto !important;
}
.new-archive-section .archive-item-wrap {
  border-left: 1px solid #333;
  padding: 1.25rem;
}
@media screen and (max-width: 767px) {
  .new-archive-section .article-item--title {
    font-size: 1.5rem;
  }
  .new-archive-section .archive-item {
    flex-wrap: wrap !important;
  }
  .new-archive-section .archive-item--image {
    margin-bottom: 0 !important;
  }
  .new-archive-section .archive-item-wrap {
    border-left: none;
    border-bottom: 1px solid #333;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
}

/* Alert banner */
.alert-banner {
  background-color: #ff1700;
  padding: 0.75rem 0;
  color: white;
}
.alert-banner-wrap {
  padding-right: 1rem;
  padding-left: 1rem;
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.alert-banner-text {
  font-weight: 700;
}
.alert-banner-btn a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: white;
  background-color: #333333;
  font-weight: 700;
  white-space: nowrap;
}
@media screen and (max-width: 550px) {
  .alert-banner {
    font-size: 14px;
  }
}

/* Footer muutokset */
.trustmary-footer-widget {
  padding: 1.5rem;
  background-color: #333333;
  margin-top: 2rem;
}
.trustmary-footer-widget .go4149833139 {
  padding: 0 !important;
}

.marketingForm table {
  width: 100% !important;
}
.marketingForm .textFormFieldBlock, .marketingForm .dateTimeFormFieldBlock, .marketingForm .twoOptionFormFieldBlock, .marketingForm .optionSetFormFieldBlock, .marketingForm .multiOptionSetFormFieldBlock, .marketingForm .lookupFormFieldBlock, .marketingForm .consentBlock {
  padding: 0 !important;
}
.footer-newsletter-new {
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.footer-newsletter-new .footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media screen and (max-width: 930px) {
  .footer-newsletter-new .footer-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    text-align: center;
  }
}

.text-block iframe {max-width: 100%;}

.window-doors-listing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: start;
  margin-top: 2rem;
}
.window-doors-listing-grid > * {
  flex: 0 0 calc((100% - (3 * 2rem)) / 4);
}
.window-doors-listing-grid .button-wrap {
  text-align: left;
  margin-top: 1rem;
}
.window-doors-listing--item-title {
  text-transform: uppercase;
  color: white;
  margin-top: 1rem;
}
.door-columns-title {
  max-width: 50%;
  margin-bottom: 1rem;
}
.product-card-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
@media screen and (max-width: 930px) {
  .window-doors-listing-grid > * {
    flex: 0 0 calc((100% - (2 * 2rem)) / 3);
  }
}
@media screen and (max-width: 767px) {
  .window-doors-listing-grid > * {
    flex: 0 0 calc((100% - (1 * 2rem)) / 2);
  }
  .product-card-cols {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .door-columns-title {
    max-width: 100%;
  }
}
