/* Responsive overrides */

.np-page-content .wpcf7 {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.np-page-content .wpcf7-form {
  width: 100%;
}

.np-page-content .wpcf7,
.np-page-content .wpcf7-form,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  box-sizing: border-box;
}

.np-page-content .wpcf7 .np-max-900 {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1300px) {
  .np-header {
    padding: 22px 0;
  }

  .np-header.is-scrolled {
    padding: 14px 0;
  }

  .np-header__inner {
    gap: 16px;
  }

  .np-header__logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100vw - 92px);
  }

  .np-logo {
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .np-burger {
    flex: 0 0 46px;
    position: relative;
    z-index: 10001;
  }
}

@media (max-width: 767px) {
  .np-header {
    padding: 16px 0;
  }

  .np-header.is-scrolled {
    padding: 10px 0;
  }

  .np-header__inner {
    padding: 0 16px;
    gap: 12px;
  }

  .np-header__logo {
    flex: 0 1 calc(100% - 56px);
    max-width: min(230px, calc(100vw - 88px));
  }

  .np-logo,
  .np-header.is-scrolled .np-logo {
    width: 100%;
    height: auto;
    max-height: 34px;
  }

  .np-burger {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    padding: 9px;
  }

  .np-nav {
    width: min(340px, 88vw);
    padding: 92px 24px 28px;
  }

  .np-page-hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 2;
  }

  .np-page-content--portal .lp-portal-login-wrapper {
    margin: 24px 0 64px;
  }

  .np-page-content--portal .lp-portal-login-card {
    margin-left: auto;
    margin-right: auto;
  }

  .section-storia .timeline-inner .row {
    flex-direction: column;
  }

  .section-storia .timeline-text {
    order: 1;
    width: 100%;
    margin-top: 0;
    margin-bottom: 24px;
    padding-right: 0 !important;
  }

  .section-storia .timeline-image {
    order: 2;
    width: 100%;
  }

  .section-storia .timeline-image img {
    width: 100%;
    height: auto;
  }

  .section-valori-light .valori-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .section-valori-light .valori-slider::-webkit-scrollbar {
    display: none;
  }

  .section-valori-light .valori-slider {
    scrollbar-width: none;
  }

  .section-valori-light .valore-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .np-sostenibilita {
    padding: 72px 0;
  }

  .np-sostenibilita__header {
    margin-bottom: 48px;
  }

  .np-sostenibilita__grid {
    row-gap: 54px;
  }

  .np-sostenibilita__col {
    margin-bottom: 0;
  }

  .np-sostenibilita__card {
    padding: 32px 24px;
  }

  .np-sostenibilita__icon {
    margin-bottom: 26px;
  }

  .np-sostenibilita__title {
    min-height: 0;
    margin-bottom: 24px;
  }

  .np-sostenibilita__text p {
    margin-bottom: 18px;
    line-height: 1.65;
  }

  .np-footer {
    padding: 32px 18px 22px;
  }

  .np-footer-widgets {
    display: block;
  }

  .np-footer-col {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .np-footer-col + .np-footer-col {
    margin-top: 50px;
  }
  
  .widget.widget_block#block-6{
  margin-top: 300px;
  }

  .np-footer .widget,
  .np-footer .textwidget,
  .np-footer .wp-block-group,
  .np-footer figure,
  .np-footer p {
    margin-bottom: 10px;
  }

  .np-footer p,
  .np-footer li,
  .np-footer a,
  .np-footer .textwidget,
  .np-footer .copyright-text {
    font-size: 15px !important;
    line-height: 1.65;
  }

  .np-footer .copyright-text {
    margin-top: 24px;
  }

  .np-footer img.wp-image-38 {
    max-width: min(260px, 82vw);
  }

  .np-footer img.wp-image-37 {
    max-width: 86px;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .np-header__inner {
    padding: 0 12px;
  }

  .np-header__logo {
    max-width: calc(100vw - 78px);
  }

  .np-logo,
  .np-header.is-scrolled .np-logo {
    max-height: 30px;
  }

  .np-burger {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    padding: 8px;
  }

  .np-nav {
    width: 90vw;
    padding: 86px 22px 26px;
  }

  .section-valori-light .valori-slider {
    gap: 18px;
  }

  .section-valori-light .valore-card {
    flex-basis: 88%;
    padding: 34px 24px;
  }

  .np-sostenibilita {
    padding: 64px 0;
  }

  .np-sostenibilita__card {
    padding: 30px 18px;
  }

  .np-sostenibilita__col {
    margin-bottom: 0;
  }

  .np-footer {
    padding-inline: 14px;
  }

  .np-footer p,
  .np-footer li,
  .np-footer a,
  .np-footer .textwidget,
  .np-footer .copyright-text {
    font-size: 14px !important;
  }
}
