/* BARRIOTHEME > RESPONSIVE CSS  */

/* =========================================================================================================== */
/* XL */

/*

    XX      XX   LL
      XX  XX     LL
        XX       LL
      XX  XX     LL
    XX      XX   LLLLLLL

*/

@media screen and (min-width: 992px) and (max-width: 1499.98px),
  screen and (max-height: 899.98px) {
  /* ________________________________________________________________________ */
  /* Root */

  :root {
    --header-height: 100px;
    --distance-big: calc(var(--distance) * 2);
  }

  /* ________________________________________________________________________ */
  /* Tipography */

  h1,
  .titolo-big {
    font-size: 8rem;
    line-height: 8rem;
  }

  body.single-progetto h1,
  body.single-progetto section:nth-child(1) .titolo-big {
    font-size: 8rem;
    line-height: 8rem;
  }

  h2,
  h3,
  .titolo {
    font-size: 3rem;
    line-height: 3.6rem;
  }

  h4,
  h5,
  h6,
  .titolo-small {
    font-size: 2.4rem;
    line-height: 2.8rem;
  }

  p,
  ul,
  li,
  ul,
  ol,
  .testo,
  div.testo * {
    font-size: 1.5rem;
    line-height: 2.1rem;
  }

  .numero {
    font-size: 1.4rem;
    line-height: 2rem;
    letter-spacing: 1.5px;
  }

  .numero.big {
    font-size: 2.5rem;
  }

  button,
  .button *,
  .button-submit,
  .button-submit *,
  .cursor-content {
    font-size: 1.6rem;
    line-height: 1.8rem;
    letter-spacing: 2px;
  }

  .menu-header li a {
    font-size: 1.3rem;
    line-height: 2rem;
    letter-spacing: 0.75px;
  }

  .tag span,
  .numero.small {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }

  #submitVoto input,
  #submitVoto select,
  #submitVoto input::placeholder,
  #messageSubmit div {
    font-size: 2rem;
    line-height: 2rem;
  }

  /* ________________________________________________________________________ */
  /* General */

  .wrapper {
    width: calc(100% - 60px);
  }

  /* section {
    padding: calc(var(--distance-big) * 2) 0;
  } */

  /* .section-content > * + * {
    margin-top: calc(var(--distance) * 2);
  } */

  [data-position="bottom-left"] {
    left: var(--distance);
    bottom: var(--distance);
  }

  [data-position="bottom"] {
    bottom: calc(var(--distance) * 2);
  }

  /* ________________________________________________________________________ */
  /* Navigation */

  header {
    padding-top: 0;
  }

  /* Menu header */

  .menu-header li {
    margin: 0 !important;
  }

  .menu-header li .braille-container {
    width: 60px;
    height: 24px;
    margin-left: 8px;
  }

  /* logo */

  .logo-spazi {
    width: 150px;
    height: 30px;
    min-width: 150px;
    min-height: 30px;
  }

  .logo-fondazione {
    width: 150px;
    height: 30px;
    min-width: 150px;
    min-height: 30px;
  }

  footer .logo-spazi,
  footer .logo-fondazione {
    width: 210px;
    height: 40px;
    min-width: 210px;
    min-height: 40px;
  }

  /* Footer */

  footer {
    padding: var(--distance-big) 0;
  }

  .subfooter::after,
  /* body.page-template-page-home footer::after, */
  body.single-progetto footer::after {
    width: calc(100% - 60px);
  }

  .footer-block {
    width: calc(var(--column) * 2.1);
  }

  .footer-content .footer-block + .footer-block {
    margin-top: var(--distance);
  }

  .footer-block .occhiello {
    margin-bottom: var(--distance-half);
  }

  /* Footer Collaboratori */

  .lista-collaboratori {
    min-width: 60%;
    padding-right: 50px;
  }

  .footer-collaboratori [class*="logo-collaboratore-"] {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  /* ________________________________________________________________________ */
  /* Elements */

  .button,
  .button-submit {
    padding: calc(var(--distance) * 1) calc(var(--distance) * 1.8);
  }

  .button:hover::after,
  .button:focus::after,
  .button-submit:hover::after,
  .button-submit:focus::after {
    border-width: 2px;
  }

  .braille-button [class*="icon-"],
  .braille-button [class*="braille-"] {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  /* .dots {
    height: calc(100% + calc(var(--distance-big) * 2));
    top: calc(var(--distance-big) * -1);
  } */

  .social-wrapper .social [class*="icon-"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
  }

  .button:hover::after,
  .button:focus::after {
    border: 2px solid var(--nero);
  }

  /* ======================================================================== */
  /* PAGES */

  /* ________________________________________________________________________ */
  /* Section Titolo */

  .titolo-occhiello {
    max-width: 460px;
  }

  .titolo-container .titolo-row .testo {
    padding: 6px 0;
  }

  /* ________________________________________________________________________ */
  /* Section Paragrafo */

  section.section-paragrafo .gallery {
    margin-top: var(--distance-big);
  }

  section.section-paragrafo .gallery .braille-container {
    width: calc(90% - var(--distance-big));
  }

  /* ________________________________________________________________________ */
  /* Page: HOME */

  /* Section timeline */

  .progressBar {
    height: 35px;
    margin-top: calc(var(--distance) * 2);
  }

  .progressBar .line .smile {
    width: 80px;
    height: 80px;
  }

  .progressBar .line .smile::after {
    width: calc(100% - var(--distance));
    height: calc(100% - var(--distance));
  }

  /* ________________________________________________________________________ */
  /* Page: ABOUT */

  /* Section Files */

  .file-contentainer .file-row {
    padding: calc(var(--distance) * 1.2) 0;
  }

  .file-contentainer .file-row .file-body h3 {
    width: calc(100% - 190px);
  }

  /* ________________________________________________________________________ */
  /* Page: PROGETTI */

  /* Progetti list */

  .card-progetto {
    max-width: calc(33.333% - calc(var(--distance) * 2));
    margin: var(--distance);
    margin-bottom: var(--distance-big);
  }

  .card-progetto .card-progetto-img {
    margin: var(--distance-half) auto;
  }

  .card-progetto .card-progetto-img .img-container {
    width: calc(100% - var(--distance));
  }

  .progetti-list .card-progetto.progetto-2,
  .progetti-list .card-progetto.progetto-5,
  .progetti-list .card-progetto.progetto-8,
  .progetti-list .card-progetto.progetto-11,
  .progetti-list .card-progetto.progetto-14,
  .progetti-list .card-progetto.progetto-17,
  .progetti-list .card-progetto.progetto-20,
  .progetti-list .card-progetto.progetto-23,
  .progetti-list .card-progetto.progetto-26,
  .progetti-list .card-progetto.progetto-29,
  .progetti-list .card-progetto.progetto-32 {
    margin-top: 120px;
  }

  /* ________________________________________________________________________ */
  /* Single: Progetto */

  /* Hero */

  body.single-progetto h1 {
    width: calc(100% - var(--distance-big));
  }

  body.single-progetto section:nth-child(1) .immagine-container {
    width: 180px;
  }

  body.single-progetto section:nth-child(1) [data-position="top"] {
    top: calc(var(--distance) * 3);
  }

  body.single-progetto section:nth-child(1) .info-content {
    padding: calc(var(--distance) * 2) 0;
  }

  body.single-progetto section:nth-child(1) .info-content .info-item {
    max-width: 300px;
  }

  /* Timeline */

  .section-timeline .timeline-head {
    margin-bottom: calc(var(--distance) * 2);
  }

  .section-timeline .timeline-row {
    margin-top: var(--distance);
  }

  .section-timeline .timeline-row .timeline-row-progress {
    height: 35px;
  }

  .section-timeline .timeline-row .timeline-row-progress .line-progress {
    /* height: 33px; */
    box-shadow: 4px 0 6px rgba(var(--nero-rgb), 0.2);
  }

  /* Carousel */

  .cursor-content {
    min-width: 190px;
    min-height: 50px;
  }

  .single-gallery .swiper-slide {
    width: 500px;
    height: 330px;
  }

  /* Forms */

  /* #section-form .titolo-container .testo {
    width: 380px;
  } */

  #submitVoto .vota-input input,
  #submitVoto .vota-select select {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 var(--distance-big) 0 var(--distance);
  }

  #submitVoto .vota-select::after {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }
}

/* =========================================================================================================== */
/* LG */

/*

    LL          GGGG
    LL         GG  GG
    LL        GG
    LL        GG   GG
    LLLLLLL    GGGGGG

*/

@media (min-width: 992px) and (max-width: 1199.98px) {
  /* ________________________________________________________________________ */
  /* Root */
  /* ________________________________________________________________________ */
  /* Tipography */

  h1,
  .titolo-big {
    font-size: 8rem;
    line-height: 8rem;
  }

  .menu-header li a {
    font-size: 1.6rem;
    line-height: 3rem;
    letter-spacing: 0.75px;
  }

  /* ________________________________________________________________________ */
  /* General */

  /* ________________________________________________________________________ */
  /* Navigation */

  /* header menu */

  /* logo */

  .logo-spazi,
  footer .logo-spazi {
    width: 170px;
    height: 50px;
    min-width: 170px;
    min-height: 50px;
  }

  .logo-fondazione,
  footer .logo-fondazione {
    width: 170px;
    height: 50px;
    min-width: 170px;
    min-height: 50px;
  }

  /* footer */

  .footer-block {
    width: calc(var(--column) * 2.6);
  }

  /* sub-footer */

  .subfooter .credits-wrapper {
    position: relative;
    left: unset;
    top: unset;
    transform: translate(0, 0);
    margin: 0 0 0 auto;
  }

  .credits {
    width: 75px;
    height: 10px;
  }

  /* ________________________________________________________________________ */
  /* Elements */

  /* ======================================================================== */
  /* PAGES */

  /* ________________________________________________________________________ */
  /* Section Titolo */

  .titolo-container .titolo-row .testo {
    width: 300px;
  }

  /* ________________________________________________________________________ */
  /* Section Paragrafo */

  section.section-paragrafo .titolo,
  section.section-paragrafo .testo {
    max-width: calc(var(--column) * 8);
  }

  /* ________________________________________________________________________ */
  /* Page: HOME */

  /* Section timeline */

  .timeline-container {
    width: calc(var(--column) * 9);
  }

  .progressBar {
    width: calc(calc(var(--column) * 9) - var(--distance));
  }

  /* ________________________________________________________________________ */
  /* Page: ABOUT */

  /* Section Files */

  /* ________________________________________________________________________ */
  /* Page: PROGETTI */

  /* Progetti list */

  .progetti-list {
    width: 100%;
  }

  .card-progetto {
    width: 100%;
    max-width: calc(33.333% - calc(var(--distance) * 2));
    margin: var(--distance);
    margin-bottom: var(--distance-big);
  }

  /* ________________________________________________________________________ */
  /* Single: Progetto */

  /* Hero */

  body.single-progetto section:nth-child(1) .info-content .info-item {
    max-width: 240px;
  }

  /* Carousel */

  .single-gallery .swiper-slide {
    width: 480px;
    height: 320px;
  }

  /* Timeline */

  .section-timeline .timeline-content {
    width: calc(var(--column) * 11);
  }

  .section-timeline .testo {
    max-width: calc(var(--column) * 8);
  }

  /* Forms */

  #submitVoto {
    width: calc(var(--column) * 10);
  }
}

/* =========================================================================================================== */
/*

  TTTTTTTT   AAA     BBBBB     LL      EEEEEE   TTTTTTTT
     TT     AAAAA    BB   B    LL      EE          TT
     TT    AA   AA   BBBBBB    LL      EEEEE       TT
     TT    AAAAAAA   BB   BB   LL      EE          TT
     TT    AA   AA   BBBBBB    LLLLLL  EEEEEE      TT

*/

@media (min-width: 992px) and (max-width: 1024px) and (orientation: landscape) {
  /* ________________________________________________________________________ */
  /* Navigation */

  body.scroll-down header {
    transform: translateY(-200%);
  }

  header.visible {
    transform: translateY(0%) !important;
  }

  /* ________________________________________________________________________ */
  /* Elements */

  /* ________________________________________________________________________ */
  /* Page: Progetti */

  /* .card-progetto .card-progetto-img::after {
    content: none;
  } */

  .card-progetto .card-progetto-img .button {
    display: none;
  }

  .card-progetto .braille-button {
    display: flex;
    justify-content: flex-start;
    argin-top: var(--distance);
  }

  .card-progetto:hover .card-progetto-img,
  .card-progetto:focus .card-progetto-img {
    background-color: rgba(var(--verde-rgb), 0);
  }

  .card-progetto:hover .card-progetto-img .img-container,
  .card-progetto:focus .card-progetto-img .img-container {
    transform: scale(1);
  }

  /* Single Progetto */

  .section-timeline .timeline-head {
    padding-left: 0;
  }

  .section-timeline .timeline-row {
    margin-top: var(--distance);
    flex-direction: column;
  }

  .section-timeline .timeline-row .timeline-row-titolo {
    width: 100%;
    margin-bottom: var(--distance-half);
  }
  .section-timeline .timeline-row .timeline-row-progress {
    width: 100%;
  }
}

/* =========================================================================================================== */
/* MD */

/*

    MM      MM   DDDDD
    MMM    MMM   DD   DD
    MM  MM  MM   DD    DD
    MM      MM   DD   DD
    MM      MM   DDDDDD

*/

@media (min-width: 768px) and (max-width: 991.98px) {
  /* ________________________________________________________________________ */
  /* Root */

  :root {
    --header-height: 100px;
    --distance-big: calc(var(--distance) * 2);
  }

  /* ________________________________________________________________________ */
  /* Tipography */

  h1,
  .titolo-big {
    font-size: 7rem;
    line-height: 7rem;
  }

  body.single-progetto h1,
  body.single-progetto section:nth-child(1) .titolo-big {
    font-size: 6rem;
    line-height: 6rem;
  }

  h2,
  h3,
  h4,
  h5,
  h6,
  .titolo,
  .card-progetto .titolo-small {
    font-size: 3rem;
    line-height: 3.6rem;
  }

  .titolo-small {
    font-size: 2.4rem;
    line-height: 2.8rem;
  }

  p,
  ul,
  li,
  ul,
  ol,
  .testo,
  div.testo * {
    font-size: 1.6rem;
    line-height: 2.6rem;
  }

  .numero {
    font-size: 1.8rem;
    line-height: 2.2rem;
    letter-spacing: 1.5px;
  }

  button,
  .button *,
  .button-submit,
  .button-submit *,
  .cursor-content {
    font-size: 1.6rem;
    line-height: 1.8rem;
    letter-spacing: 2px;
  }

  .braille-button span {
    font-size: 2rem;
    line-height: 3rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
  }

  .menu-overlay li a {
    font-size: 2.4rem;
    line-height: 3.4rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
  }

  .tag span,
  .numero.small {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }

  .numero.big {
    font-size: 3.5rem;
  }

  #submitVoto input,
  #submitVoto select,
  #submitVoto input::placeholder,
  #messageSubmit div {
    font-size: 2rem;
    line-height: 2rem;
  }

  /* ________________________________________________________________________ */
  /* General */

  .wrapper {
    width: calc(100% - 60px);
  }

  [data-position="bottom-left"] {
    left: var(--distance);
    bottom: var(--distance);
  }

  [data-position="bottom"] {
    bottom: calc(var(--distance) * 2);
  }

  /* ________________________________________________________________________ */
  /* Navigation */

  header.no-visible {
    opacity: 0;
    user-select: none;
    top: -20px;
  }

  /* Menu header */

  .menu-header {
    display: none;
  }

  /* Menu overlay */

  .btn-hamburger {
    display: flex;
  }

  /* logo */

  .logo-spazi {
    width: 170px;
    height: 50px;
    min-width: 170px;
    min-height: 50px;
  }

  footer .logo-spazi {
    width: 200px;
    height: 50px;
    min-width: 200px;
    min-height: 50px;
  }

  .logo-fondazione,
  footer .logo-fondazione {
    /* width: 180px;
    height: 50px;
    min-width: 180px;
    min-height: 50px; */
    width: 210px;
    height: 40px;
    min-width: 210px;
    min-height: 40px;
  }

  .overlay .logo-fondazione {
    width: 210px;
    height: 40px;
    min-width: 210px;
    min-height: 40px;
  }

  /* Footer */

  footer {
    padding: var(--distance-big) 0;
  }

  .subfooter::after,
  /* body.page-template-page-home footer::after, */
  body.single-progetto footer::after {
    width: calc(100% - 60px);
  }

  footer .footer-content {
    flex-wrap: wrap;
  }

  footer .footer-content .footer-column {
    width: 100%;
  }

  footer .footer-content .footer-column + .footer-column {
    width: 50%;
    width: calc(50% - var(--distance-big));
  }

  .footer-block {
    width: 100%;
  }

  /* .footer-block .logo-spazi {
    margin: 0 auto;
  } */

  .footer-content .footer-block + .footer-block {
    margin-top: var(--distance);
  }

  .footer-block .occhiello {
    margin-bottom: var(--distance-half);
  }

  /* Footer Collaboratori */

  .footer-collaboratori .collaboratori-content {
    flex-direction: column;
  }

  .lista-collaboratori {
    min-width: 100%;
    padding-right: 0;
    margin-top: var(--distance);
  }

  .footer-collaboratori [class*="logo-collaboratore-"] {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }

  /* sub-footer */

  .subfooter .credits-wrapper {
    position: relative;
    left: unset;
    top: unset;
    transform: translate(0, 0);
    margin: 0 0 0 auto;
  }

  .credits {
    width: 75px;
    height: 10px;
  }

  /* ________________________________________________________________________ */
  /* Elements */

  .button,
  .button-submit {
    padding: calc(var(--distance) * 1) calc(var(--distance) * 1.8);
  }

  .button:hover::after,
  .button:focus::after,
  .button-submit:hover::after,
  .button-submit:focus::after {
    border-width: 2px;
  }

  .braille-button [class*="icon-"],
  .braille-button [class*="braille-"] {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  .social-wrapper .social [class*="icon-"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
  }

  /* ======================================================================== */
  /* PAGES */

  section:nth-child(1) .braille-button {
    display: none;
  }

  /* ________________________________________________________________________ */
  /* Section Titolo */

  .titolo-occhiello {
    max-width: 500px;
  }

  .titolo-occhiello .line {
    margin: 0 var(--distance-half);
  }

  .titolo-container .titolo-row {
    justify-content: center;
  }

  .titolo-container .titolo-row > * + * {
    margin: 0;
  }

  .titolo-container .numero,
  .titolo-container .titolo-row .testo {
    display: none;
  }

  .titolo-container .testo-mobile {
    display: block;
  }

  /* ________________________________________________________________________ */
  /* Section Paragrafo */

  section.section-paragrafo .titolo,
  section.section-paragrafo .testo {
    max-width: calc(var(--column) * 10);
  }

  section.section-paragrafo .testo {
    column-count: unset;
  }

  section.section-paragrafo .gallery {
    margin-top: var(--distance-big);
  }

  section.section-paragrafo .gallery .gallery-img {
    width: 100%;
    max-width: calc(33% - var(--distance-half));
  }

  section.section-paragrafo .gallery .braille-container {
    width: calc(90% - var(--distance-big));
  }

  /* ________________________________________________________________________ */
  /* Page: HOME */

  /* Section Paragrafo Gallery */

  body.page-template-page-home .gallery {
    display: none;
  }

  .home-gallery {
    width: calc(100% + 60px);
    margin-left: 0;
    display: block;
  }

  /* Section timeline */

  body.page-template-page-home .dots {
    flex-direction: column;
    width: calc(100% + 30px);
    left: -15px;
  }

  body.page-template-page-home .dots .dot {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(
      to right,
      var(--verde) 33%,
      rgba(var(--verde-rgb), 0) 0%
    );
    background-position: bottom;
    background-size: 5px 8px;
    background-repeat: repeat-x;
  }

  .timeline-container {
    width: calc(var(--column) * 10);
    height: 450px;
    padding: 0;
    margin: 100px 0;
  }

  .progressBar.desktop {
    display: none;
  }

  .progressBar.mobile {
    display: block;

    width: 35px;
    height: 100%;
    border-radius: 50px;
    border: 1px solid var(--verde);
    margin: 0;

    position: absolute !important;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .progressBar .line .smile {
    width: 80px;
    height: 80px;
  }

  .progressBar.mobile .line .smile {
    top: calc(100% - 40px);
    left: -23px;
  }

  .progressBar .line .smile::after {
    width: calc(100% - var(--distance));
    height: calc(100% - var(--distance));
  }

  .timeline-container .dates {
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .timeline-container .dates .date {
    width: 200px;
  }

  .timeline-container .dates .date:nth-child(even) {
    margin-left: auto;
  }

  .timeline-container .dates .date span {
    top: 25px;
  }

  .timeline-container .dates .date:nth-child(even) span {
    text-align: right;
    right: 0;
  }

  /* ________________________________________________________________________ */
  /* Page: ABOUT */

  /* Section Files */

  .file-contentainer {
    max-width: unset;
  }

  .file-contentainer .file-row {
    padding: calc(var(--distance) * 1.2) 0;
  }

  .file-contentainer .file-row .file-body h3 {
    width: calc(100% - 190px);
  }

  /* ________________________________________________________________________ */
  /* Page: PROGETTI */

  /* Progetti list */

  .progetti-list {
    width: 100%;
    justify-content: space-between;
  }

  .card-progetto {
    width: calc(50% - var(--distance));
    max-width: unset;
    margin: 0 !important;
    padding: var(--distance-big) var(--distance);
    pointer-events: none;
    border-top: 1px solid var(--bianco);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .swiper-slide .card-progetto {
    margin: 0 auto !important;
  }

  .card-progetto .card-progetto-img {
    margin: var(--distance-half) auto;
  }

  .card-progetto:hover .card-progetto-img,
  .card-progetto:focus .card-progetto-img {
    background-color: rgba(var(--verde-rgb), 0);
  }

  .card-progetto .card-progetto-img .img-container {
    width: calc(100% - var(--distance));
    pointer-events: all !important;
  }

  .card-progetto:hover .card-progetto-img .img-container,
  .card-progetto:focus .card-progetto-img .img-container {
    transform: scale(1);
  }

  .card-progetto .card-progetto-img .button {
    display: none;
  }

  .card-progetto .card-progetto-titolo {
    margin-bottom: auto;
  }

  .card-progetto .braille-button {
    display: flex;
    justify-content: flex-start;
  }

  .swiper-slide .card-progetto .braille-button {
    justify-content: center;
  }

  /* ________________________________________________________________________ */
  /* Single: Progetto */

  /* Hero */

  body.single-progetto h1 {
    width: calc(100% - var(--distance-big));
  }

  body.single-progetto section:nth-child(1) .immagine-container {
    width: 280px;
  }

  body.single-progetto section:nth-child(1) [data-position="top"] {
    top: calc(var(--distance) * 3);
  }

  body.single-progetto .info-content {
    flex-direction: column;
    padding: calc(var(--distance) * 2) 0;
    position: relative;
  }

  body.single-progetto .info-content .info-item {
    width: calc(100% - 150px);
    max-width: unset !important;
  }

  body.single-progetto .info-content .info-item + .info-item {
    margin-top: var(--distance-big) !important;
  }

  body.single-progetto .info-content .info-item:last-child {
    width: auto !important;
    position: absolute;
    top: var(--distance-big);
    right: 0;
    margin: 0 !important;
  }

  /* Timeline */

  .section-timeline .timeline-content {
    width: calc(var(--column) * 12);
  }

  .section-timeline .timeline-head {
    margin-bottom: var(--distance);
    padding-left: 0;
  }

  .section-timeline .timeline-row {
    margin-top: var(--distance);
    flex-direction: column;
  }

  .section-timeline .timeline-row .timeline-row-titolo {
    width: 100%;
  }

  .section-timeline .timeline-row .timeline-row-progress {
    width: 100%;
    height: 35px;
    margin-top: var(--distance-half);
  }

  .section-timeline .timeline-row .timeline-row-progress .line-progress {
    /* height: 33px; */
    min-width: 33px;
    box-shadow: 4px 0 6px rgba(var(--nero-rgb), 0.2);
  }

  .section-timeline .testo {
    max-width: calc(var(--column) * 10);
    column-count: unset;
  }

  /* Carousel */

  /* .cursor-container {
    display: none;
  } */

  .single-gallery .swiper-slide {
    width: 500px;
    height: 330px;
    /* transition: all 0.3s 0.2s ease-in-out; */
    transition: all 0.6s ease-in;
  }

  .single-gallery {
    overflow: hidden;
    padding-bottom: 100px;
  }

  .single-gallery .swiper-container {
    overflow: unset;
  }

  .single-gallery .swiper-slide.swiper-slide-active {
    transform: translateY(100px);
  }

  .single-gallery .swiper-navigation {
    display: none;
  }

  /* Forms */

  #submitVoto {
    width: 100%;
  }

  #submitVoto .vota-input input,
  #submitVoto .vota-select select {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 var(--distance-big) 0 var(--distance);
  }

  #submitVoto .vota-select::after {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  /* Correlati */

  body.single-progetto .progetti-list {
    display: none;
  }

  body.single-progetto .correlati-gallery {
    width: calc(100% + 60px);
    margin-left: -30px;
    display: flex;
  }

  .correlati-gallery .card-progetto {
    width: 320px;
    border-top: 0;
  }

  /* ________________________________________________________________________ */
  /* Page: Policy */

  .section-policy .section-content {
    width: calc(var(--column) * 10);
  }
}

/* =========================================================================================================== */
/* SM */

/*

      SSSSSSS   MM      MM
    SS          MMM    MMM
     SSSSS      MM  MM  MM
          SS    MM      MM
    SSSSSSS     MM      MM

*/

@media screen and (min-width: 576px) and (max-width: 767.98px),
  screen and (min-height: 319px) and (max-width: 1023px) and (orientation: landscape) {
  html,
  body {
    background-color: var(--giallo);
  }

  .rotate {
    position: fixed;
    display: block;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: var(--giallo);
    z-index: 9999999;
  }

  .rotate::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    max-width: 200px;
    max-height: 200px;
    background-color: var(--bianco);
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: var(--transition);
    -webkit-mask: url(../media/svg/rotate.svg) no-repeat 50% 50%;
    mask: url(../media/svg/rotate.svg) no-repeat 50% 50%;
    pointer-events: none;
    user-select: none;
  }
}

/* =========================================================================================================== */
/* XS */

/*

    XX      XX     SSSSSSS
      XX  XX     SS
        XX        SSSSS
      XX  XX           SS
    XX      XX   SSSSSSS

*/

@media (max-width: 575.98px) {
  /* ________________________________________________________________________ */
  /* Root */

  :root {
    --header-height: 40px;
    --distance-big: calc(var(--distance) * 2);
  }

  /* ________________________________________________________________________ */
  /* Tipography */

  h1,
  .titolo-big {
    font-size: 3.5rem;
    line-height: 3.5rem;
    /* font-size: 3.6rem;
    line-height: 3.6rem; */
  }

  body.single-progetto h1,
  body.single-progetto section:nth-child(1) .titolo-big {
    font-size: 3rem;
    line-height: 3rem;
  }

  h2,
  h3,
  h4,
  h5,
  h6,
  .titolo,
  .card-progetto .titolo-small {
    font-size: 2rem;
    line-height: 2.6rem;
  }

  .titolo-small {
    font-size: 2rem;
    line-height: 2.6rem;
  }

  p,
  ul,
  li,
  ul,
  ol,
  .testo,
  div.testo * {
    /* font-size: 1.5rem;
    line-height: 2rem; */
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .numero {
    font-size: 1.2rem;
    line-height: 1.6rem;
    letter-spacing: 1.2px;
  }

  button,
  .button *,
  .button-submit,
  .button-submit *,
  .cursor-content,
  .occhiello {
    font-size: 1.2rem;
    line-height: 1.4rem;
    letter-spacing: 2px;
  }

  .braille-button span {
    font-size: 1.4rem;
    line-height: 1.6rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
  }

  .menu-overlay li a {
    font-size: 1.6rem;
    line-height: 2rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
  }

  .tag span,
  .numero.small {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }

  .numero.big {
    font-size: 2.2rem;
  }

  footer * {
    font-size: 1.4rem !important;
    line-height: 2rem !important;
    letter-spacing: 0.5px !important;
  }

  footer .occhiello {
    font-size: 1rem !important;
    line-height: 1.2rem !important;
  }

  #submitVoto input,
  #submitVoto select,
  #submitVoto input::placeholder,
  #messageSubmit div {
    font-size: 1.4rem;
    line-height: 1.6rem;
  }

  /* ________________________________________________________________________ */
  /* General */

  .wrapper {
    width: calc(100% - 60px);
  }

  [data-position="bottom-left"] {
    left: var(--distance);
    bottom: var(--distance);
  }

  [data-position="bottom"] {
    bottom: calc(var(--distance) * 2);
  }

  .section-content > * + * {
    margin-top: var(--distance);
  }

  /* ________________________________________________________________________ */
  /* Navigation */

  header {
    padding-top: calc(var(--distance) * 1.2);
  }

  header.no-visible {
    opacity: 0;
    user-select: none;
    top: -20px;
  }

  /* Menu header */

  .menu-header {
    display: none;
  }

  /* Menu overlay */

  .btn-hamburger {
    display: flex;
    /* width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px; */
  }

  /* .btn-hamburger > * {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  } */

  .overlay .overlay-content {
    padding: 40px 40px 80px;
    min-width: 80%;
    min-height: 40%;
  }

  .menu-overlay {
    min-width: unset;
    margin-top: var(--distance) !important;
  }

  .menu-overlay li + li {
    margin-top: var(--distance-half);
  }

  .menu-overlay li .braille-container {
    width: 65px;
    height: 20px;
  }

  /* logo */

  .logo-spazi {
    width: 120px;
    height: 30px;
    min-width: 120px;
    min-height: 30px;
  }

  .logo-fondazione,
  .overlay .logo-fondazione {
    width: 140px;
    height: 40px;
    min-width: 140px;
    min-height: 40px;
  }

  footer .logo-spazi {
    width: 140px;
    height: 40px;
    min-width: 140px;
    min-height: 40px;
  }

  footer .logo-fondazione {
    width: 150px;
    height: 40px;
    min-width: 150px;
    min-height: 40px;
  }

  /* Footer */

  footer {
    padding: var(--distance-big) 0;
  }

  .subfooter::after,
  /* body.page-template-page-home footer::after, */
  body.single-progetto footer::after {
    width: calc(100% - 60px);
  }

  footer .footer-content {
    flex-wrap: wrap;
  }

  footer .footer-content .footer-column {
    width: 100%;
  }

  .footer-block {
    width: 100%;
    margin-top: var(--distance);
    height: auto;
    min-height: unset;
  }

  .footer-block .logo-spazi {
    margin: 0 auto;
    transform: translateY(-5px) !important;
  }

  .footer-block .occhiello {
    margin-bottom: var(--distance-half);
  }

  footer .footer-column.mobile-reverse {
    display: flex;
    flex-direction: column-reverse;
  }

  /* Footer Collaboratori */

  .footer-collaboratori .collaboratori-content {
    flex-direction: column;
  }

  .lista-collaboratori {
    min-width: 100%;
    padding-right: 0;
    margin-top: var(--distance);
  }

  .footer-collaboratori [class*="logo-collaboratore-"] {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }

  /* sub-footer */

  .subfooter::after,
  /* body.page-template-page-home footer::after, */
  body.single-progetto footer::after {
    width: calc(100% - 60px);
  }

  .subfooter .subfooter-content {
    flex-direction: column;
  }

  .menu-footer {
    width: 100%;
    justify-content: space-between;
  }

  .subfooter .credits-wrapper {
    position: relative;
    left: unset;
    top: unset;
    transform: translate(0, 0);
    margin: var(--distance) 0 0 0;
  }

  .credits {
    width: 75px;
    height: 10px;
  }

  /* ________________________________________________________________________ */
  /* Elements */

  .button,
  .button-submit {
    padding: calc(var(--distance) * 0.8) calc(var(--distance) * 1.4);
  }

  .button:hover::after,
  .button:focus::after,
  .button-submit:hover::after,
  .button-submit:focus::after {
    border-width: 2px;
  }

  .braille-button [class*="icon-"],
  .braille-button [class*="braille-"] {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  .braille-button > *:nth-child(2) {
    margin-left: 5px;
  }

  .social-wrapper .social [class*="icon-"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
  }

  /* ======================================================================== */
  /* PAGES */

  section:nth-child(1) .braille-button {
    display: none;
  }

  /* ________________________________________________________________________ */
  /* Section Titolo */

  .titolo-occhiello {
    width: 100%;
    /* max-width: 260px; */
    /* flex-direction: column; */
  }

  /* .titolo-occhiello > * + * {
    margin-top: calc(var(--distance-half) / 2);
  } */

  .titolo-occhiello .line {
    margin: 0 var(--distance-half);
    /* display: none; */
  }

  .titolo-container {
    width: 100%;
    padding: 0;
  }

  .titolo-container .titolo-row {
    justify-content: center;
    width: calc(100% + 60px);
    margin-left: -30px;
    overflow: hidden;
    white-space: nowrap;
  }

  .titolo-container .titolo-row > * + * {
    margin: 0;
  }

  .titolo-container .numero,
  .titolo-container .titolo-row .testo {
    display: none;
  }

  .titolo-container .testo-mobile {
    max-width: 100%;
    display: block;
    margin-top: var(--distance);
  }

  /* ________________________________________________________________________ */
  /* Section Paragrafo */

  section.section-paragrafo .titolo,
  section.section-paragrafo .testo {
    max-width: 100%;
  }

  section.section-paragrafo .testo {
    column-count: unset;
  }

  section.section-paragrafo .gallery {
    margin-top: var(--distance-big);
  }

  section.section-paragrafo .gallery .gallery-img {
    width: 100%;
    max-width: calc(33% - var(--distance-half));
  }

  section.section-paragrafo .gallery .braille-container {
    width: calc(90% - var(--distance-big));
  }

  /* ________________________________________________________________________ */
  /* Page: HOME */

  /* Section Paragrafo Gallery */

  body.page-template-page-home .gallery {
    display: none;
  }

  .home-gallery {
    width: calc(100% + 30px);
    margin-left: 0;
    display: block;
    padding-bottom: 30px;
    margin: var(--distance-big) 0 var(--distance);
  }

  .home-gallery .swiper-slide {
    width: 280px;
    height: 180px;
    padding: 0 10px;
  }

  .home-gallery .swiper-slide.swiper-slide-active {
    transform: translateY(30px);
  }

  /* Section timeline */

  .dots {
    opacity: 0.5;
  }

  .dots *:nth-child(6),
  .dots *:nth-child(7) {
    display: none;
  }

  body.page-template-page-home .dots {
    flex-direction: column;
    width: calc(100% + 30px);
    left: -15px;
    padding: 85px 0;
  }

  body.page-template-page-home .dots .dot {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(
      to right,
      var(--verde) 33%,
      rgba(var(--verde-rgb), 0) 0%
    );
    background-position: bottom;
    background-size: 5px 8px;
    background-repeat: repeat-x;
  }

  .timeline-container {
    width: 100%;
    height: 450px;
    padding: 0;
    margin: 60px 0;
  }

  .progressBar.desktop {
    display: none;
  }

  .progressBar.mobile {
    display: block;

    width: 35px;
    height: 100%;
    border-radius: 50px;
    border: 1px solid var(--verde);
    margin: 0;

    position: absolute !important;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .progressBar .line .smile {
    width: 80px;
    height: 80px;
  }

  .progressBar.mobile .line .smile {
    top: calc(100% - 40px);
    left: -23px;
  }

  .progressBar .line .smile::after {
    width: calc(100% - var(--distance));
    height: calc(100% - var(--distance));
  }

  .timeline-container .dates {
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .timeline-container .dates .date {
    width: 120px;
  }

  .timeline-container .dates .date:nth-child(even) {
    margin-left: auto;
  }

  .timeline-container .dates .date span {
    top: 15px;
  }

  .timeline-container .dates .date:nth-child(even) span {
    text-align: right;
    right: 0;
  }

  /* ________________________________________________________________________ */
  /* Page: ABOUT */

  /* Section Files */

  .file-contentainer {
    max-width: unset;
  }

  .file-contentainer .file-row {
    padding: calc(var(--distance) * 1.2) 0;
  }

  .file-contentainer .file-row .file-body {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .file-contentainer .file-row .file-body h3 {
    width: 100%;
    margin-bottom: var(--distance);
  }

  /* ________________________________________________________________________ */
  /* Page: PROGETTI */

  /* Progetti list */

  .progetti-list {
    width: 100%;
  }

  .card-progetto {
    /* width: 270px; */
    width: 100%;
    max-width: unset;
    margin: 0 auto !important;
    padding: var(--distance-big) var(--distance);
    pointer-events: none;
    border-top: 1px solid var(--bianco);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-progetto .card-progetto-img {
    width: 200px;
    margin: var(--distance) auto;
  }

  .card-progetto:hover .card-progetto-img,
  .card-progetto:focus .card-progetto-img {
    background-color: rgba(var(--verde-rgb), 0);
  }

  .card-progetto .card-progetto-img .img-container {
    width: 100%;
    pointer-events: all !important;
  }

  .card-progetto:hover .card-progetto-img .img-container,
  .card-progetto:focus .card-progetto-img .img-container {
    transform: scale(1);
  }

  .card-progetto .card-progetto-img .button {
    display: none;
  }

  .card-progetto .card-progetto-titolo {
    margin-bottom: auto;
  }

  .card-progetto .braille-button {
    display: flex;
  }

  /* ________________________________________________________________________ */
  /* Single: Progetto */

  /* Hero */

  body.single-progetto h1 {
    width: 100%;
  }

  body.single-progetto section:nth-child(1) .immagine-container {
    /* width: 180px; */
    width: 180px;
    margin-top: var(--distance-big);
  }

  body.single-progetto section:nth-child(1) [data-position="top"] {
    top: calc(var(--distance) * 3);
  }

  body.single-progetto .info-content {
    flex-direction: column;
    padding: calc(var(--distance) * 2) 0;
    position: relative;
  }

  body.single-progetto .info-content .info-item {
    width: calc(100% - 150px);
    max-width: unset !important;
  }

  body.single-progetto .info-content .info-item + .info-item {
    margin-top: var(--distance) !important;
  }

  body.single-progetto .info-content .info-item:last-child {
    width: auto !important;
    position: absolute;
    top: var(--distance-big);
    right: 0;
    margin: 0 !important;
  }

  /* Timeline */

  body.single-progetto section.section-timeline {
    min-height: unset;
  }

  .section-timeline .timeline-content {
    width: calc(var(--column) * 12);
  }

  .section-timeline .timeline-head {
    margin-bottom: var(--distance);
    padding-left: 0;
  }

  .section-timeline .timeline-row {
    margin-top: var(--distance);
    flex-direction: column;
  }

  .section-timeline .timeline-row .timeline-row-titolo {
    width: 100%;
  }

  .section-timeline .timeline-row .timeline-row-progress {
    width: 100%;
    height: 35px;
    margin-top: var(--distance-half);
  }

  .section-timeline .timeline-row .timeline-row-progress .line-progress {
    /* height: 33px; */
    min-width: 33px;
    box-shadow: 4px 0 6px rgba(var(--nero-rgb), 0.2);
  }

  .section-timeline .testo {
    max-width: 100%;
    column-count: unset;
    margin: var(--distance-big) auto 0;
  }

  /* Carousel */

  /* .cursor-container {
    display: none;
  } */

  .single-gallery .swiper-slide {
    width: 280px;
    height: 180px;
    padding: 0 10px;
    transition: all 0.3s 0.2s ease-in-out;
  }

  .single-gallery {
    overflow: hidden;
    padding-bottom: 30px;
    margin-bottom: var(--distance-big);
  }

  .single-gallery .swiper-container {
    overflow: unset;
  }

  .single-gallery .swiper-slide.swiper-slide-active {
    transform: translateY(30px);
  }

  .single-gallery .swiper-navigation {
    display: none;
  }

  /* Forms */

  #submitVoto {
    width: 100%;
    margin-top: 0;
  }

  #submitVoto .vota-input,
  #submitVoto .vota-select,
  #submitVoto .vota-checks {
    margin-top: var(--distance);
  }

  #submitVoto .vota-input input,
  #submitVoto .vota-select select {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 var(--distance-big) 0 var(--distance);
  }

  #submitVoto .vota-select::after {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
  }

  #submitVoto .vota-checks {
    flex-wrap: wrap;
  }

  #submitVoto .vota-checks .vota-check {
    width: 100%;
    margin-bottom: var(--distance);
  }

  #submitVoto .vota-checks .vota-check label {
    padding-left: calc(var(--distance) * 1.5) !important;
  }

  #submitVoto .vota-check label::after {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  #submitVoto .vota-submit {
    margin-top: var(--distance-half);
  }

  /* Correlati */

  body.single-progetto .progetti-list {
    display: none;
  }

  body.single-progetto .correlati-gallery {
    width: calc(100% + 30px);
    margin-left: -15px;
    display: flex;
  }

  .correlati-gallery .swiper-navigation {
    width: calc(100% - 20px);
    height: 40px;
    top: 140px;
    left: 10px;
  }

  .correlati-gallery .swiper-button-prev,
  .correlati-gallery .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .correlati-gallery .card-progetto {
    /* width: 80%; */
    border-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* ________________________________________________________________________ */
  /* Page: Policy */

  .section-policy .section-content {
    width: 100%;
  }
}

/* =========================================================================================================== */
/* =========================================================================================================== */
/* =========================================================================================================== */

/* specials */

/* @media (max-width: 370px) {

} */
