/* mobile first */
.visible_menu_and_search>.visible_menu {
  display: none;
}

#header .navbar-brand img {
  height: 55px;
  max-width: none;
}

.main_menu {
  margin-left: .5rem;
  padding-left: .5rem;
}

.navbar-toggler {
  border: 0px;
  padding: 0.2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 5px;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0px 0px 2px var(--grey);
}

.toggler-line {
  margin-bottom: 0.4rem;
}

.toggler-line.toggler-line-1 {
  margin-top: 0.2rem;
}

.visible_menu_and_search {
  margin-top: -0.1rem;
}

.secondary_and_visible_menus {
  display: flex;
  align-items: center;
}

.next_events_wrapper .view-filters {
  display: none;
}

.footer_inner.row .footer_info {
  display: flex;
  flex-direction: column;
}

/* sopra iPhone5 ed iPhoneSE */
@media screen and (min-width: 325px) {
  .main_menu {
    margin-left: 1rem;
    padding-left: 1rem;
  }
}

/* mobile iPhone */
@media screen and (min-width: 375px) {
  #block-lipu-sostieni ul li a {
    margin-right: 0.5rem;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
  }

  .isscrolled #header ul li.nav-item a.nav-link {
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
  }

  .node--type-specie.node--view-mode-full .status_iucn {
    transform: scale(1);
  }
}

/* col-sm */
@media screen and (min-width: 576px) {
  .container-fluid {
    max-width: var(--containerValue);
  }

  .isscrolled #header .navbar-brand img {
    height: 70px;
    width: auto;
  }

  .offcanvas-header .btn-close {
    margin-right: 1.25rem;
    transform: scale(2.5);
  }

  blockquote:before {
    display: inline-block;
  }

  h2 blockquote,
  blockquote h2 {
    padding: 3rem;
  }

  .paragraph--type--green-thoughts blockquote {
    max-width: 75%;
  }

  .paragraph.parallax {
    background-position: top left;
  }

  .paragraph--type--slide.paragraph--view-mode--default .text_and_link,
  .paragraph--type--parallax.paragraph--view-mode--default .text_and_link {
    left: calc(-1*var(--negativeMarginX));
    padding: 0;
  }

  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  #header .navbar-brand img {
    height: 70px;
  }

  .navbar-toggler {
    border: 0px;
    padding: 0.4rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .paragraph--type--slide.paragraph--view-mode--default .text_and_link,
  .paragraph--type--parallax.paragraph--view-mode--default .text_and_link {
    width: var(--containerValue);
    top: auto;
    bottom: 4rem;
    text-align: left;
    max-width: 36%;
  }

  h2 blockquote,
  blockquote h2 {
    font-size: 1.8rem;
    margin: 0;
  }

  .view-search-all-contents .views-exposed-form .js-form-item {
    margin-right: 2rem;
  }

  .view-search-all-contents .views-exposed-form .form-actions {
    margin-top: 0rem;
  }

  .mostra_title {
    border-right: 1px solid var(--white);
  }
}

/* col-md */
@media screen and (min-width: 768px) {
  .paragraph--type--slide.paragraph--view-mode--default .text_and_link {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--leaf-shape);
  }

  .node_sections,
  ul.sections_menu {
    flex-direction: row;
    align-items: flex-end;
  }

  .views-exposed-form {
    margin-right: 1.5rem;
  }

  .view-display-id-article_teasers_grid .views-exposed-form {
    margin-right: 0rem;
  }

  .sezioni-locali-org .view-content,
  .sezioni-locali-org .view-content .views-view-grid {
    justify-content: unset;
  }

  .visible_menu_and_search>.visible_menu {
    display: block;
  }

  #block-lipu-sostieni ul li a {
    font-size: 1rem;
    background-color: var(--red);
    border-color: var(--red);
  }

  .menu--main li.nav-item span.toggle_menu {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  .modal-dialog {
    max-width: 75vw;
  }

  #header .navbar-brand img {
    height: 90px;
  }

  .node--type-specie.node--view-mode-label .field_cover_image {
    display: block;
  }

  .navbar-toggler {
    border: 0px;
    padding: 0.4rem;
    width: 3rem;
    height: 3rem;
  }

  .toggler-line {
    margin-bottom: 0.7rem;
  }

  /* homepage slideshow */
  .paragraph--type--slide.paragraph--view-mode--default .slide_wrapper,
  .paragraph--type--parallax.paragraph--view-mode--default .slide_wrapper {
    position: relative;
  }

  .paragraph--type--slide.paragraph--view-mode--default .text_and_link,
  .paragraph--type--parallax.paragraph--view-mode--default .text_and_link {
    position: absolute;
    width: 100%;
    bottom: 4rem;
  }

  .paragraph--type--slide.paragraph--view-mode--default .text_and_link *,
  .paragraph--type--parallax.paragraph--view-mode--default .text_and_link * {
    color: #fff;
    z-index: 2;
  }

  .slick--field-slideshow {
    position: relative;
  }

  .slick--field-slideshow .slick-dots {
    width: 100%;
    position: absolute;
    bottom: 0;
  }

  .cosa-lipu:before,
  .node--type-centro-recupero.node--view-mode-full .node__content .content_section:nth-child(even):before,
  .node--type-specie.node--view-mode-full .node__content .content_section:nth-child(even):before,
  .node--type-oasi.node--view-mode-full .node__content .content_section:nth-child(even):before {
    border-radius: 0 0 0 75px;
  }

  h2 blockquote,
  blockquote h2 {
    font-size: 2.2rem;
    margin: 0;
  }

  .path-node.node--type-oasi #specie .field--name-field-species>div {
    max-width: 33%;
    flex: 33%;
  }

  .modal_cta .modal-dialog {
    max-width: 90vw;
  }

  .modal_image_desktop {
    display: block;
  }

  .modal_image_mobile {
    display: none;
  }

  .path-node.node--type-campagna #campagna_main .col-12.col-lg-8 {
    order: 1;
  }
}

/* col-lg */
@media screen and (min-width: 992px) {
  h1 {
    font-size: 3.2rem;
    line-height: 3.5rem;
    font-weight: 900;
  }

  h2 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  h3 {
    font-size: 2.0rem;
    line-height: 2.2rem;
    margin-bottom: 1.5rem;
  }

  h4 {
    font-size: 1.7rem;
    line-height: 2.4rem;
  }

  .mainmenu_block h3 {
    margin-bottom: 0.5rem;
  }

  .paragraph--type--slide.paragraph--view-mode--default .text_and_link h2,
  .paragraph--type--parallax.paragraph--view-mode--default .text_and_link h2 {
    font-size: 2.5rem;
    line-height: 2.8rem;
  }

  #navbar-top,
  .visible_menu_and_search>.visible_menu {
    display: block;
  }

  #header .navbar-brand img {
    height: 90px;
  }

  .slideshow_wrapper {
    margin-bottom: 1.5rem;
    border: 2rem solid var(--white);
  }

  .navbar-toggler {
    border: 0px;
    padding: 0.4rem;
    width: 4rem;
    height: 4rem;
  }

  .toggler-line.toggler-line-1 {
    margin-top: 0.5rem;
  }

  .toggler-line {
    margin-bottom: 0.9rem;
  }

  .main_menu {
    margin-left: 1.4rem;
    padding-left: 1.4rem;
  }

  .visible_menu_and_search {
    margin-top: 5px;
  }

  .section_title {
    text-align: right;
  }

  .node--type-campagna.node--view-mode-full .section_title {
    text-align: left;
  }

  .path-node.node--type-campagna #campagna_main .col-12.col-lg-4 {
    /* width: 0; */
    order: 2;
  }

  #CollapsingNavbar .block.block-menu.navigation li {
    font-size: 1.2rem;
    max-width: 330px;
  }

  .region-utility-search input.form-autocomplete {
    font-size: 2.5rem;
  }

  .paragraph--type--slide.paragraph--view-mode--default .text_and_link,
  .paragraph--type--parallax.paragraph--view-mode--default .text_and_link {
    max-width: 33%;
  }

  .node--type-specie.node--view-mode-full .node_title,
  .node--type-specie.node--view-mode-full .node_subtitle,
  .node--type-specie.node--view-mode-full .node_sections {
    text-align: unset;
  }

  .oasi_teasers .views-element-container {
    margin-top: -2rem;
    /* per pareggiarla col titolo */
  }

  .footer_inner.row .footer_info {
    flex-direction: column;
  }

  .site-footer .region-footer-right .content .footer_right_wrapper {
    margin-bottom: 0;
    position: relative;
  }

  .site-footer .region-footer-right .content .footer_right_wrapper .footer_mask_img {
    position: relative;
    right: -4rem;
  }

  .cosa-lipu:before,
  .node--type-centro-recupero.node--view-mode-full .node__content .content_section:nth-child(even):before,
  .node--type-specie.node--view-mode-full .node__content .content_section:nth-child(even):before,
  .node--type-oasi.node--view-mode-full .node__content .content_section:nth-child(even):before {
    border-radius: 0 0 0 100px;
  }

  .donorbanner>.row::before {
    content: '';
    position: absolute;
    right: 0;
    background-color: var(--yellow);
    height: 100%;
    width: 33%;
  }

  /* ndoe 16 oasi e riserve */
  .view-display-id-places_list,
  .view-display-id-places_list .view-content.row {
    display: flex;
    justify-content: unset;
    margin-top: 0;
  }

  .view-display-id-places_map .view-content.row {
    padding-right: .75rem;
  }

  h2 blockquote,
  blockquote h2 {
    font-size: 2.8rem;
    margin: 0;
  }

  .paragraph.parallax {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 40vh;
    display: flex;
    justify-content: center;
    background-position: center top;
    align-items: center;
  }

  .paragraph.parallax .text_and_link {
    background-color: rgba(0, 0, 0, 0);
    padding: 0rem;
  }

  .node--type-specie.node--view-mode-full section.donorbanner {
    max-width: 80%;
    margin: auto;
  }

  .section_title {
    font-weight: 900;
    font-size: 3.25rem;
    line-height: 3.5rem;
    color: var(--grey-dark);
  }

  .node_sections_item,
  .node--type-argomento .node--view-mode-full .approfondisci .field__item a,
  ul.sections_menu li a {
    margin-right: 1.3rem;
    font-size: 1.4rem;
    line-height: 1.7rem;
    height: 2rem;
    margin-bottom: 2rem;
  }

  .node_table {
    font-size: 85%;
    max-width: 80%;
    margin: auto;
  }

  .fields_born_extensions_quantity {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: initial;
  }

  .like_title_item {
    text-align: left;
    margin-bottom: 2rem;
  }

  .page-node-540 .paragraph--type--anchors-item,
  .page-node-541 .paragraph--type--anchors-item {
    margin-bottom: 5rem;
  }

  .mostra_copertina_wrapper {
    margin-top: 8rem;
  }
}

@media screen and (min-width: 1024px) {

  /* campagna prova donorbox fissato in alto a destra */
  .path-node.node--type-campagna .paragraph--type--slide.paragraph--view-mode--default .text_and_link {
    max-width: 33%;
  }

  .path-node.node--type-campagna .donorbox_wrapper {
    position: fixed;
    position: sticky;
    top: 150px;
    right: calc(-1*var(--negativeMarginX));
    right: 0;
    z-index: 5;
    min-width: 100px;
    min-height: 100px;
  }

  .site-footer {
    position: relative;
    z-index: 6;
  }

  .page-node-2434 #webform-submission-newsletter-block-content-21-add-form,
  .page-node-2434 #birdseccetera_iframe {
    height: 490px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 2rem;
  }
}

/* col-xl */
@media screen and (min-width: 1200px) {
  .menu--main li.nav-item span.toggle_menu {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.2rem;
    line-height: 1.2rem;
  }

  .paragraph--type--slide.paragraph--view-mode--default .text_and_link h2,
  .paragraph--type--parallax.paragraph--view-mode--default .text_and_link h2 {
    font-size: 3.5rem;
    line-height: 3.8rem;
  }

  .paragraph--type--slide.paragraph--view-mode--default .text_and_link h3,
  .paragraph--type--parallax.paragraph--view-mode--default .text_and_link h3 {
    font-size: 2.5rem;
    line-height: 2.8rem;
    margin-bottom: 1rem;
  }

  .site-footer .contacts {
    flex-direction: column;
  }

  #header .navbar-brand img {
    height: 90px;
    max-height: 90px;
  }

  .main_menu {
    margin-left: 2rem;
    padding-left: 2rem;
  }

  .cosa-lipu:before,
  .node--type-centro-recupero.node--view-mode-full .node__content .content_section:nth-child(even):before,
  .node--type-specie.node--view-mode-full .node__content .content_section:nth-child(even):before,
  .node--type-oasi.node--view-mode-full .node__content .content_section:nth-child(even):before {
    border-radius: 0 0 0 150px;
  }

  .donorbanner>.row {
    padding: 0 2rem;
  }

  h2 blockquote,
  blockquote h2 {
    font-size: 3.2rem;
    margin: 0;
  }

  #main-wrapper .cosa-lipu img {
    max-width: 100%;
    width: 100%;
    margin: auto;
    margin-bottom: 2rem;
    height: auto;
    transform: scale(1.1);
    display: block;
  }

  /* Mostre */
  .node--type-mostra.node--view-mode-full .tab-content>.tab-pane.active .mostra_copertina_wrapper {
    /* max-width: 65%; */
    min-height: 100vh;
  }

  .node--type-mostra #mostraTab li .nav-link {
    border-radius: 0;
    margin-right: 1rem;
    margin-bottom: 0rem;
  }

  .node--type-mostra #mostraTab {
    border: 0;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    max-width: 90%;
  }

  .node--type-mostra.node--view-mode-full .tab-content>.tab-pane.active.bio,
  .node--type-mostra.node--view-mode-full .tab-content>.tab-pane.active.mostra {
    min-height: 100vh;
  }
}

/* col-xxl */
@media screen and (min-width: 1400px) {

  .cosa-lipu:before,
  .node--type-centro-recupero.node--view-mode-full .node__content .content_section:nth-child(even):before,
  .node--type-specie.node--view-mode-full .node__content .content_section:nth-child(even):before,
  .node--type-oasi.node--view-mode-full .node__content .content_section:nth-child(even):before {
    border-radius: 0 0 0 200px;
  }

  .modal_cta .modal-dialog {
    max-width: 50vw;
  }

  .modal_cta.has_webform .modal-dialog {
    max-width: 75vw;
  }
}

@media screen and (min-width: 1920px) {
  body {
    max-width: 1920px;
    margin: auto;
  }
}
