html {
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}
div {
  scroll-margin-top: 100px;
}

input {
  accent-color: var(--primary);
}
textarea {
  width: 100%;
  min-height: 7rem;
  field-sizing: content;
}
a {
  color: var(--default);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: 0.3s ease-in-out;
}
.main :is(p, li) a {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

a[href^="tel:"] {
  cursor: default;
}

a:hover {
  opacity: 0.75;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

p,
div,
li {
  line-height: 1.6;
}
p:last-child {
  margin-bottom: 0;
}
h1 {
  font-size: 48px;
}
h2 {
  font-size: 36px;
  text-transform: none;
}
h3 {
  font-size: 24px;
  text-transform: none;
  line-height: 1.3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1.25rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
  font-family: "Fjalla One", sans-serif;
}
.vc_col-has-fill > .vc_column-inner,
.vc_row-has-fill + .vc_row-full-width + .vc_row > .vc_column_container > .vc_column-inner,
.vc_row-has-fill + .vc_row > .vc_column_container > .vc_column-inner,
.vc_row-has-fill > .vc_column_container > .vc_column-inner {
  padding-top: 0 !important;
}

.vc_row {
  margin-bottom: 0;
  padding: 80px 0;
}

.vc_row.bglayer-dark::after {
  content: "" !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  visibility: visible !important;
}

.wpb_button,
.wpb_content_element,
ul.wpb_thumbnails-fluid > li {
  margin-bottom: 0 !important;
}

.vc_row.bglayer-dark > .wpb_column {
  position: relative;
  z-index: 2;
}

.text-light :is(h1, h2, h3, h4, h5, h6, p, li, a) {
  color: #fff;
}

.row-pt-none {
  padding-top: 0 !important;
}
.row-pt-half {
  padding-top: 40px !important;
}

.row-mb-standard {
  margin-bottom: 96px !important;
}
.row-mb-half {
  margin-bottom: 48px !important;
}
.row-pb-standard {
  padding-bottom: 96px !important;
}
.row-pb-half {
  padding-bottom: 48px !important;
}
.row-pt-standard {
  padding-top: 96px !important;
}
.row-pt-half {
  padding-top: 48px !important;
}

.wpcf7-list-item {
  margin: 0 16px 0 0;
}

.wpcf7-list-item label {
  display: flex;
  gap: 10px;
  align-items: start;
}
.wpcf7-list-item label input {
  margin-top: 6px;
}
.form-control {
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;
}
.wpcf7 textarea {
  max-height: 100px;
}

.wpcf7-radio.form-control {
  border: none;
  padding-left: 0;
  padding-right: 0;
}

.vc_row.text-light {
  color: #fff;
}

.modul-headline.headlinedivider > *,
.modul-headline.headlinedivider {
  margin-bottom: 2.5rem !important;
}
.modul-headline.headlinedivider::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--primary);
}
.text-light .modul-headline.headlinedivider::after {
  background: var(--light);
}

.text2col {
  columns: 2;
  column-gap: 2rem;
}

.acc-cooperativa .card-header {
  border-bottom: 1px solid #fff;
  border-radius: 0;
}

.bg-primary .acc-cooperativa.accordion.accordion-modern-status > .card .card-header a {
  color: #fff;
  background: var(--primary);
  transition: 300ms;
  text-decoration: none !important;
  font-size: 24px !important;
  line-height: 1.5;
  font-weight: 500 !important;
}
.bg-primary .acc-cooperativa.accordion.accordion-modern-status > .card .card-header a:hover {
  opacity: 1;
}
.bg-primary .acc-cooperativa.accordion.accordion-modern-status > .card:hover .card-header a.collapsed {
  color: #fff !important;
  opacity: 1;
  text-decoration: none !important;
}
.bg-primary .accordion.accordion-modern-status > .card .card-header + .collapse.show,
.bg-primary .accordion.accordion-modern-status > .card .card-header + .collapsing {
  background-color: var(--primary);
}
.bg-primary .card-body {
  color: #fff;
}
.accordion.accordion-modern-status > .card {
  border: none !important;
}

footer,
footer a.nav-link {
  color: #fff;
}
footer a.nav-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition:
    text-decoration-color 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}
footer a.nav-link:hover {
  opacity: 0.75;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

.teaserHorizontal .row {
  padding: 2.5rem 0;
  border-top: 1px solid var(--primary);
}
.text-light .teaserHorizontal .row {
  border-color: var(--light);
}

.btn-default {
  color: var(--light);
  background-color: var(--default);
  border-color: var(--default);
  box-shadow: none !important;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none !important;
  transition: 300ms;
}
.btn-default:hover {
  color: var(--light);
  background-color: var(--default);
  border-color: var(--default);
  box-shadow: none !important;
}
.image-gallery-custom img {
  max-height: 300px;
}

/* News LP Component */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--primary);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.news-title {
  margin-bottom: 1rem;
  font-family: "Fjalla One", sans-serif;
  font-size: 24px;
  margin-bottom: 1.5rem;
  text-transform: none;
}

.news-description {
  line-height: 1.6;
}

.text-light .news-item {
  border-color: var(--light);
}

.text-light .news-date {
  color: var(--light);
  opacity: 0.8;
}

/* Newsteaser Component */
.newsteaser {
  color: #fff;
}

.newsteaser-heading {
  color: #fff;
}

.newsteaser-post {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.newsteaser-date-title {
  font-size: 1.125rem;
  line-height: 1.4;
}
.newsteaser-info {
  width: min(100%, 600px);
}

.newsteaser-button {
  display: inline-block;
  background-color: #fff;
  color: #333;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  white-space: nowrap;
}

.newsteaser-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

@media (max-width: 767px) {
  .newsteaser-post {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .newsteaser-action {
    align-self: flex-end;
  }
}

/* Teaser Component - Equal Height & Button Alignment */

.content--teaser__image {
  margin-bottom: 1.25rem;
}
.content--teaser__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teaser--wrapper {
  margin-bottom: 1rem;
}

/* Fix for WPBakery columns to ensure height: 100% works */
.vc_row.vc_row-flex > .vc_column_container > .vc_column-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vc_row-o-equal-height .wpb_wrapper {
  height: 100%;
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--light);
  text-decoration: none;
  background-color: var(--secondary);
}
