/* Styles intended only for the front.*/
html,
body {
  overflow-x: hidden;
}
img {
  max-width: 100%;
}
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.main {
  flex: 1 0 auto;
}
.footer {
  flex: 0 0 auto;
}

html {
  box-sizing: border-box;
}
*,
* ::before,
* ::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}
li {
  list-style: none;
}
button {
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  border-radius: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
input,
textarea,
select,
option {
  outline: none;
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  border-radius: none;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: inherit;
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
}

:root {
  --hover: #be0905;
  --brand: #8d1412;
  --dark-bg: #161d33;
  --black: #000;
  --grey-text: #333;
  --light-brand: #faf4f4;
  --light-text: #76767a;
  --icon-grey: #98989c;
  --input: #d6d6dc;
  --line: #e5e5eb;
  --grey-bg: #f5f5f7;
  --white: #fff;

  --second-family: "Literata", sans-serif;
  --third-family: "Dynalight", sans-serif;

  --wp--preset--spacing--60: 160px;
  --btn-padding: 14px;
  --btn-padding-2: 32px;
}

body {
  font-family: "Mulish", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  font-size: 20px;
  color: var(--black);
  background-color: var(--white);
}

.container {
  max-width: 1472px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--second-family);
  line-height: 130%;
  margin-top: 0 !important;
}
h1 {
  font-size: clamp(2rem, 1.461rem + 2.632vw, 3.75rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.75rem, 1.519rem + 1.128vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 56px !important;
}

h3 {
  font-size: clamp(1.375rem, 1.182rem + 0.94vw, 2rem);
  font-weight: 500;
  margin-bottom: 32px !important;
}

h4 {
  font-size: clamp(1.25rem, 1.173rem + 0.376vw, 1.5rem);
  margin-bottom: 24px !important;
  font-weight: 600;
}

p:not([class]) {
  margin-top: 0;
  margin-bottom: 24px !important;
}
p:not([class]) + h2, ul.wp-block-list + h2 {
  margin-top: 80px !important;
}
p:not([class]) + h3, ul.wp-block-list + h3 {
  margin-top: 48px !important;
}
p:not([class]) + h4, ul.wp-block-list + h4 {
  margin-top: 32px !important;
}
a:not([class]) {
  font-weight: 700;
  color: var(--brand);
}
a:focus {
  color: inherit;
}
.btn {
  padding: 14px 32px;
  font-weight: 500;
  font-size: 16px;
  line-height: 125%;
  text-align: center;
  color: var(--white);
  background-color: var(--brand);
  transition: 0.3s ease-out;
  border-radius: 8px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn--light {
  background-color: #f8eeee;
  color: var(--black);
}
.btn--transparent {
  background-color: transparent;
  color: var(--black);
  border: 1px solid var(--brand);
}
.wp-block-button__link {
  transition: 0.3s ease-out;
}
.wp-block-list {
  display: flex;
  flex-direction: column;
  gap: 12px 0;
  list-style: none;
  margin-bottom: 20px !important;
  margin-top: 16px !important;
}
.wp-block-list li {
  padding-left: 36px;
  line-height: 140%;
  position: relative;
}
.wp-block-list li::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background-color: var(--brand);
  top: 12px;
  left: 9px;
}
.wp-block-separator {
  max-width: 1391px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}
.btn:hover,
.wp-block-button__link:hover {
  background-color: var(--hover) !important;
  color: var(--white) !important;
}

.sidebar {
  background: var(--grey-bg);
  padding: 28px;
  margin-bottom: 24px;
}
div:has(> .sidebar) {
  margin-top: 0 !important;
}
div:last-child > .sidebar {
  margin-bottom: 0;
}
.sidebar--transparent {
  border: 1px solid var(--line);
  background-color: transparent;
}
.sidebar__title {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0 !important;
  font-size: 20px;
}
.sidebar__top {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar img {
  width: 100%;
}

.sidebar__list {
  margin-top: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px 0;
}
.sidebar__icon {
  display: none;
}
.sidebar__text--before,
.sidebar__text--after {
  font-size: 16px;
  line-height: 150%;
  color: var(--grey-text);
  margin: 0 !important;
}

html:has(nav.wp-block-navigation.menu--active),
html:has(.header__info-item--mobile) {
  overflow: hidden;
}


.entry-content:has(:last-child.block--no-margin)
  + .site-footer
  .wp-block-blocks-villamolnby-block-footer,
.entry-content:has(:last-child.wp-block-group:last-child .block--no-margin)
  + .site-footer
  .wp-block-blocks-villamolnby-block-footer {
  margin-top: 0;
}

.entry-content > div:last-child,
.entry-content .wp-block-group:last-child > div:last-child {
  margin-bottom: 0 !important;
}

.wp-block-separator {
  margin-top: 80px !important;
  margin-bottom: 80px !important;
}
.wp-block-buttons:last-child {
  margin-top: 56px;
}

.entry-content:not(:has(> .wp-block-blocks-villamolnby-block-title)) .wp-block-blocks-villamolnby-block-post-columns {
  margin-top: 0 !important;
}

.call-us {
  position: fixed;
  right: 45px;
  bottom: 65px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-us__icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #25D366;
}
.call-us--mobile {
  display: none;
}
@keyframes info-mobile {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media screen and (max-width: 1279px) {
  .container {
    padding: 0 24px;
  }

  .sidebar {
    padding: 0;
    margin-bottom: 16px;
    width: 100%;
  }

  .sidebar__top {
    padding: 20px 28px;
    cursor: pointer;
    margin-bottom: 0;
  }
  .sidebar__top--active .sidebar__icon {
    transform: rotate(-180deg);
  }
  .sidebar__box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding: 0 28px;
  }

  .sidebar__list {
    margin-top: 4px;
    margin-bottom: 20px;
  }

  .sidebar__icon {
    display: block;
    transition: transform 0.2s ease-out;
    transform: rotate(0deg);
    width: 24px;
    height: 24px;
  }

  .sidebar__text--before {
    margin-bottom: 16px !important;
  }
  .sidebar__text--after {
    margin-bottom: 20px !important;
  }

  h2 {
    margin-bottom: 48px !important;
  }

  h3 {
    margin-bottom: 24px !important;
  }

  h4 {
    margin-bottom: 20px !important;
  }
  .wp-block-list {
    margin-bottom: 16px !important;
  }
  p:not([class]) + h2, ul.wp-block-list + h2 {
    margin-top: 56px !important;
  }
  p:not([class]) + h3, ul.wp-block-list + h3 {
    margin-top: 40px !important;
  }
  p:not([class]) + h4, ul.wp-block-list + h4 {
    margin-top: 25px !important;
  }
  .wp-block-buttons:last-child {
    margin-top: 48px;
  }
  .wp-block-separator {
    margin-top: 48px !important;
    margin-bottom: 48px !important;
  }
}
@media screen and (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
  body {
    line-height: 24px;
    font-size: 16px;
  }
  .btn {
    padding: 14px 20px;
  }
  .wp-block-button a {
    padding: 14px 20px !important;
  }

  .sidebar {
    margin-bottom: 12px;
  }

  .sidebar__title {
    font-size: 18px;
  }

  .sidebar__top {
    padding: 20px;
  }

  .sidebar__box {
    padding: 0 20px;
  }
  h2 {
    margin-bottom: 32px !important;
  }

  h3 {
    margin-bottom: 20px !important;
  }

  h4 {
    margin-bottom: 16px !important;
  }

  p:not([class]) {
    margin-bottom: 20px !important;
  }
  .wp-block-list li {
    padding-left: 28px;
  }
  .wp-block-list li::before {
    top: 9px;
    left: 7px;
  }
  p:not([class]) + h2, ul.wp-block-list + h2 {
    margin-top: 40px !important;
  }
  p:not([class]) + h3, ul.wp-block-list + h3 {
    margin-top: 32px !important;
  }
  p:not([class]) + h4, ul.wp-block-list + h4 {
    margin-top: 20px !important;
  }
  .wp-block-buttons:last-child {
    margin-top: 32px;
  }
  .wp-block-separator {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
  }
  .call-us--mobile {
    display: flex;
  }
  .call-us--desktop {
    display: none;
  }
  .call-us {
    right: 10px;
    bottom: 50px;
  }
}
