:root {
  overscroll-behavior: none;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  gap: 1vh;
  display: flex;
  flex-direction: column;
  background-color: #dde3dc;
}

html {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
  padding-top: 2rem;
  align-items: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10vh;
}

#logo {
  width: 50%;
  margin-left: 8.5%;
}

ul .separator {
  width: 2px;
  height: 15px;
  border-left: #ffffff solid 2px;
}

#menutelefono {
  width: 50%;
  display: flex;
  justify-content: right;
}

#menutelefono img {
  width: 60px;
  height: 60px;
}

#menutelefono a {
  margin-right: 10%;
}

#containermenutelefono {
  display: none;
  flex-direction: column;
  width: 100%;
  position: relative;
  left: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#containermenutelefono.aperto {
  display: flex;
}

#menu {
  display: flex;
  flex-direction: row;
  padding: 0;
  margin-right: 8.5%;
  width: 62%;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 30px;
  height: 2.5rem;
}

#menu ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

#menu ul li img {
  width: 30px;
  height: 30px;
}

#menu ul li svg {
  width: 26px;
  height: 26px;
}

#menu ul li svg path {
  width: 30px;
  height: 30px;
}

#menu ul li .icona {
  width: 30px;
  height: 30px;
}

#menu li,
#lingua {
  list-style-type: none;
  width: 100%;
  font-family: "nunito sans", sans-serif;
  font-weight: 650;
  font-size: 1em;
  text-transform: uppercase;
  max-width: fit-content;
}

#menu input:focus,
#menu select:focus,
#menu textarea:focus {
  outline: none;
}

#lingua {
  background-color: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

#menu a {
  text-decoration: none;
  color: #ffffff;
}

.titolo h1 {
  font-family: "Titan One", regular;
  font-size: 4em;
  color: #3ab08a;
  text-shadow: -5px 4px #72c4e4;
  text-align: center;
  margin: 0 0rem 5rem 0rem;
  letter-spacing: 0.2rem;
  font-weight: 1;
  align-self: stretch;
}

.description {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  padding: 10vh 0 10vh 0;
}

.description:nth-child(even) {
  background-color: #d3ddd3;
}

.description .unofoto {
  display: flex;
  flex-direction: row;
  gap: 10vw;
  justify-content: center;
}

#containerlinguetelefono {
  display: none;
  width: 100%;
  position: relative;
  z-index: 1000;
}

#containerlinguetelefono.aperto {
  display: block;
}
.description .unofoto .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0 1vw 0 1vw;
  gap: 3vh;
  align-self: stretch;
  width: 32vw;
}

.unofoto img {
  border-radius: 500px;
  width: 400px;
  height: 400px;
  object-fit: cover;
}

.fotodoppia {
  width: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#fotouno {
  border: solid 10px #eb5353;
}

#fotodue {
  border: solid 10px #6369da;
}

#fototre {
  border: solid 10px #36ae7c;
}

#fototrevirgolauno {
  border: solid 7px #36ae7c;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
}

#fotoquattro {
  border: solid 10px #72c4e4;
}

#fotocinque {
  border: solid 10px #f9d923;
}

#fotosei {
  border: solid 10px #2e073f;
}

#fotoseivirgolauno {
  border: solid 7px #2e073f;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
}

#fotosette {
  border: solid 10px #f5f5f5;
}

#fotootto {
  border: solid 10px #6369da;
}

#fotonove {
  border: solid 10px #eb5353;
}

#fotonovevirgolauno {
  border: solid 7px #eb5353;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
}

.text h2 {
  color: #6369da;
  font-family: "Titan One";
  font-size: 2.7em;
  font-style: normal;
  font-weight: 1;
  line-height: normal;
  margin: 0;
}

.text p {
  color: #2e073f;
  font-family: "Nunito Sans";
  font-size: 1.6em;
  font-style: normal;
  font-weight: 500;
  line-height: 45px;
  margin: 0;
}

.text button {
  margin: 0;
  padding: 0.5vh 1vw 0.5vh 1vw;
  background-color: rgba(218, 228, 232, 0.6);
  color: #2e073f;
  border-radius: 30px;
  font-size: 1.2em;
  font-family: "nunito sans", sans-serif;
  font-weight: bold;
  border: #2e073f 3.5px solid;
  cursor: pointer;
}

.text button:active {
  background-color: rgba(208, 219, 224, 0.5);
  color: rgba(46, 7, 63, 0.6);
  border: rgba(46, 7, 63, 0.6) 3.5px solid;
}

/* --- INIZIO SEZIONE FOOTER MODIFICATA --- */
footer {
  padding-top: 100px;
}

#footerino {
  background-color: transparent;
  display: flex;
  justify-content: space-around;
  padding: 0rem 0 0 0;
  position: relative;
  margin-bottom: -33vh;
  z-index: 1;
}

#footerino h4 {
  font-family: "nunito sans", sans-serif;
  font-weight: 650;
  font-size: 1.4em;
  color: #2e073f;
  margin: 0 0 1rem 0;
  padding: 0 0 0 0;
}

#footerino p,
#footerino a {
  font-family: "nunito sans", sans-serif;
  font-weight: 350;
  font-size: 1.4em;
  color: #2e073f;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  line-height: 3rem;
  text-decoration: none;
}

#spaziettinoinvisibile {
  width: 2rem;
}

#pezzettologhi {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#pezzettosocial {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#pezzettosocial a {
  width: 35px;
  height: 35px;
}

#pezzettosocial img {
  width: 35px;
  height: 35px;
}

footer #ondina {
  background-color: #d3ddd3;
  margin-top: -10vh;
}

footer #ondina img {
  width: 100%;
  z-index: 2;
  position: relative;
  display: flex;
  padding-top: 1rem;
}

.pezzettofooter span {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  text-align: right;
}

.doppio {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

footer .ondabella {
  width: 100%;
  overflow: hidden;
  background-color: #dde3dc;
}

footer .ondabella img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
}

#pezzettofooter3 p {
  color: #7c897c;
}


@media screen and (max-width: 600px) {
  nav {
    background-color: rgba(0, 0, 0, 0.45);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  #logo img {
    width: 30%;
  }

  #menutelefono img {
    width: 30px;
    height: 30px;
    filter: brightness(100);
  }

  #menutelefono a {
    margin-right: 15%;
  }

  #menu {
    display: none;
  }

  #navbar3 {
    background-color: rgba(0, 0, 0, 0.45);
    padding-top: 4px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
  }

  #navbar3 button {
    margin: 0rem 0rem 0 0rem;
    padding: 0.3rem 2rem 0.3rem 2rem;
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 30px;
    font-size: 0.85em;
    font-family: "nunito sans", sans-serif;
    font-weight: bold;
    border: none;
    cursor: pointer;
  }

  #navbar3 button:active {
    background-color: rgba(192, 199, 191, 0.5);
  }

  #navbar2 {
    background-color: rgba(0, 0, 0, 0.45);
    padding-top: 4px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
  }

  #navbar2 button {
    margin: 0rem 0rem 0 0rem;
    padding: 0.3rem 2rem 0.3rem 2rem;
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 30px;
    font-size: 0.85em;
    font-family: "nunito sans", sans-serif;
    font-weight: bold;
    border: none;
    cursor: pointer;
  }

  #navbar2 button:active {
    background-color: rgba(192, 199, 191, 0.5);
  }

  #navbar4 {
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding-bottom: 1vh;
    padding-top: 1vh;
  }

  #navbar4 .icona {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    padding: 0.5vh 2.5vw 0.5vh 2.5vw;
  }

  #navbar4 img {
    width: 30px;
    height: 30px;
  }

  .titolo h1 {
    margin-top: 5vh;
    font-size: 3.7em;
    margin-bottom: 3vh;
  }

  .description:nth-child(odd) .unofoto {
    flex-direction: column-reverse;
    display: flex;
  }

  .description {
    flex-direction: column;
  }

  .description .unofoto {
    flex-direction: column;
  }

  .unofoto img {
    border-radius: 500px;
    width: 250px;
    height: 250px;
  }

  .description .unofoto .text {
    width: 100%;
  }

  .description .unofoto {
    align-items: center;
  }

  .description .unofoto .text {
    align-items: center;
  }

  .text h2 {
    text-align: center;
    font-size: 2.4em;
  }

  .text p {
    text-align: center;
  }

  .fotodoppia {
    width: 250px;
  }

  #fotouno {
    border: solid 7px #eb5353;
  }

  #fotodue {
    border: solid 7px #6369da;
  }

  #fototre {
    border: solid 7px #36ae7c;
  }

  #fototrevirgolauno {
    border: solid 5px #36ae7c;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 130px;
    height: 130px;
  }

  #fotoquattro {
    border: solid 7px #72c4e4;
  }

  #fotocinque {
    border: solid 7px #f9d923;
  }

  #fotosei {
    border: solid 7px #2e073f;
  }

  #fotoseivirgolauno {
    border: solid 5px #2e073f;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 130px;
    height: 130px;
  }

  #fotosette {
    border: solid 7px #f5f5f5;
  }

  #fotootto {
    border: solid 7px #6369da;
  }

  #fotonove {
    border: solid 7px #eb5353;
  }

  #fotonovevirgolauno {
    border: solid 5px #eb5353;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 130px;
    height: 130px;
  }
}


@media screen and (max-width: 1380px) {
  footer {
    display: flex;
    flex-direction: column;
  }

  #footerino {
    display: grid;
    grid-template-columns: 43% 37% 17%;
    grid-template-rows: 21vh 14vh 10vh;
    background-color: #dde3dc;
    background-image: url("/assets/img/sfondoverdescuroondafooter.png");
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    grid-row-gap: 0.9rem;
    margin-bottom: 0;
  }

  #footerino h4 {
    font-size: 1em;
    margin: 2vh 2vh 0 2vh;
  }

  #footerino p,
  #footerino a {
    font-size: 1em;
    line-height: 2rem;
    margin: 0 2vh 0 2vh;
  }

  #pezzettofooter1 {
    grid-column: 1 / span 3;
  }

  #pezzettofooter2 {
    grid-column: 1 / span 2;
  }

  #pezzettofooter3 {
    grid-column: 1 / span 2;
  }

  #pezzettologhi {
    grid-column: 3;
    grid-row: 2 / span 2;
    display: flex;
    align-items: center;
  }

  #pezzettosocial {
    grid-column: 3;
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vh;
  }

  footer .ondabella {
    display: none;
  }

  footer .ondabella img {
    display: none;
  }

  footer #ondina {
    background-image: url("/assets/img/ondafinalefootermobile.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 5vh;
    overflow: hidden;
    margin: 0;
    padding: 53px 0 0 0;
  }

  footer #ondina img {
    display: none;
  }

  #pezzettologhi img {
    overflow: hidden;
    min-width: 40%;
  }
}

@media screen and (min-width: 600px) {
  #menutelefono {
    display: none;
  }

  #freccette {
    display: none;
  }

  #navbar3 {
    display: none;
  }

  #navbar3 button {
    display: none;
  }

  #navbar2 {
    display: none;
  }

  #navbar2 button {
    display: none;
  }

  #navbar4 {
    display: none;
  }
}

@media screen and (min-width: 1440px) {
  footer #ondina img {
    padding-top: 5vh;
  }
}

@media screen and (min-width: 2560px) {
  body {
    overflow-y: hidden;
  }

  nav {
    padding-bottom: 17vh;
  }

  #logo img {
    width: 25%;
  }

  #menu {
    padding: 13px;
  }

  #menu li a {
    font-size: 1.8em;
  }

  #menu li #lingua {
    font-size: 1.8em;
  }

  #menu ul .icona {
    width: 50px;
    height: 50px;
  }

  #menu ul li img {
    width: 50px;
    height: 50px;
  }

  .titolo h1 {
    font-size: 8em;
  }

  #gruppone .description .unofoto {
    scale: 150%;
  }
  /* --- REGOLE FOOTER MODIFICATE --- */
  #footerino {
    margin-bottom: -25vh;
    column-gap: 5vw;
    justify-content: center;
    scale: 103%;
  }

  #footerino h4 {
    font-size: 2.3em;
  }

  #footerino p,
  #footerino a {
    font-size: 1.9em;
  }

  #pezzettologhi img {
    width: 4vw;
    margin-bottom: 1vh;
  }

  footer .ondabella {
    transform: scaleY(0.8);
  }

  footer #ondina {
    margin: -11vh;
  }
}
@media screen and (max-height: 780px) {
  footer {
    display: flex;
    flex-direction: column;
  }

  #footerino {
    display: flex;
    flex-direction: column;
    background-color: #dde3dc;
    background-image: url("/assets/img/sfondoverdescuroondafooter.png");
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    grid-row-gap: 0.9rem;
    margin-bottom: 0;
  }

  #footerino h4 {
    font-size: 1em;
    margin: 3vh 0 0 3vh;
  }

  #footerino p,
  #footerino a {
    font-size: 0.8em;
    line-height: 2rem;
    margin: 0 3vh 0 3vh;
  }

  #pezzettofooter1 {
    grid-column: 1 / span 3;
  }

  #pezzettofooter2 {
    grid-column: 1 / span 2;
  }

  #pezzettofooter3 {
    grid-column: 1 / span 2;
  }

  #pezzettologhi {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  #pezzettologhi img {
    height: 3rem;
    object-fit: contain;
  }

  #pezzettosocial {
    grid-column: 3;
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vh;
  }

  footer .ondabella {
    display: none;
  }

  footer .ondabella img {
    display: none;
  }

  footer #ondina {
    background-image: url("/assets/img/ondafinalefootermobile.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 5vh;
    overflow: hidden;
    margin: 0;
    padding: 53px 0 0 0;
  }

  footer #ondina img {
    display: none;
  }
}
