
@media only screen and (min-width: 1367px) {
  #header {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    background-color: #c5c7ce;
    margin-top: -85px;
    z-index: 200;
    transition: margin-top 0.3s;
    height: 85px;
  }
  #logo {
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  #logo img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #h-direz {
    display: flex;
    flex-direction: row;
  }
  #h-testo p {
    font-weight: 400;
    font-style: oblique;
    color: #920292;
    line-height: 1.15;
  }
  #menu1 {
    display: flex;
    align-items: center;
    z-index: 30;
  }
  #ham {
    display: none;
  }
  #ham span {
    display: none;
    border: 1px solid black;
    border-radius: 2px;
    width: 30px;
    height: 4px;
    margin: 2px 0;
    background-color: black;
  }
  #ul1 {
    display: flex;
    flex-direction: row;
    gap: 14px;
  }
  .li1 a {
    display: flex;
  }
  .form_ap {
    color: #5f2448;
    padding: 8px 0;
  }
  .form_ap:hover {
    cursor: pointer;
  }
  .li1 {
    z-index: 30;
  }
  .li1 a, #lix button {
    position: relative;
    display: flex;
    border: none;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10;
  }
  .li1 a:hover, #lix button:hover {
    background-color: #797a7f;
  }
  #lix span {
    position: absolute;
    bottom: 0;
    background-color: #c5c7ce;
    width: 180px;
    height: 80px;
    z-index: 5;
  }

  /* inizio sottomenu ul2 */
  #ul2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    bottom: 0;
    left: 0;
    background-color: #c5c7ce;
    border-radius: 8px;
    z-index: 0;
  }
  .li2 {
    height: 68px;
  }
  .li2 a {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 68px;
    margin: 4px 0;
    padding: 7px 11px;
    color: #5f2448;
  }
  .bor::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }
  .li2 a:hover {
    background-color: #797a7f;
    border-radius: 5px;
  }
  /* fine sottomenu ul2 */
}

@media only screen and (max-width: 1366px) and (min-width: 1025px) {
  #header {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    background-color: #c5c7ce;
    margin-top: -6.2vw;
    z-index: 200;
    transition: margin-top 0.3s;
    height: 6.2vw;
  }
  #logo {
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  #logo img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #h-direz {
    display: flex;
    flex-direction: row;
  }
  #h-testo p {
    font-weight: 400;
    font-style: oblique;
    color: #920292;
    line-height: 1.15;
  }
  #menu1 {
    display: flex;
    align-items: center;
    z-index: 30;
  }
  #ham {
    display: none;
  }
  #ham span {
    display: none;
    border: 1px solid black;
    border-radius: 2px;
    width: 30px;
    height: 4px;
    margin: 2px 0;
    background-color: black;
  }
  #ul1 {
    display: flex;
    flex-direction: row;
    gap: 1vw;
  }
  .li1 a {
    display: flex;
  }
  .form_ap {
    color: #5f2448;
    padding: 0.6vw 0;
  }
  .form_ap:hover {
    cursor: pointer;
  }
  .li1 {
    z-index: 30;
  }
  .li1 a, #lix button {
    position: relative;
    display: flex;
    border: none;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10;
  }
  .li1 a:hover, #lix button:hover {
    background-color: #797a7f;
  }
  #lix span {
    position: absolute;
    bottom: 0;
    background-color: #c5c7ce;
    width: 180px;
    height: 80px;
    z-index: 5;
  }

  /* inizio sottomenu ul2 */
  #ul2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    bottom: 0;
    left: 0;
    background-color: #c5c7ce;
    border-radius: 0.6vw;
    z-index: 0;
  }
  .li2 {
    height: 5vw;
  }
  .li2 a {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 5vw;
    margin: 0.3vw 0;
    padding: 0.5vw 0.8vw;
    color: #5f2448;
  }
  .bor::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }
  .li2 a:hover {
    background-color: #797a7f;
    border-radius: 0.4vw;
  }
  /* fine sottomenu ul2 */
}

@media only screen and (max-width: 1024px) and (min-width: 769px) {
  #header {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    background-color: #c5c7ce;
    margin-top: -6.2vw;
    z-index: 200;
    transition: margin-top 0.3s;
    height: 6.2vw;
  }
  #logo {
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  #logo img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #h-direz {
    display: flex;
    flex-direction: row;
  }
  #h-testo p {
    font-weight: 400;
    font-style: oblique;
    color: #920292;
    line-height: 0.95;
  }
  #menu1 {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 30;
  }
  #ham {
    display: none;
  }
  #ham span {
    display: none;
    border: 1px solid black;
    border-radius: 2px;
    width: 30px;
    height: 4px;
    margin: 2px 0;
    background-color: black;
  }
  #ul1 {
    display: flex;
    flex-direction: row;
    gap: 1vw;
  }
  .li1 a {
    display: flex;
  }
  .form_ap {
    color: #5f2448;
    padding: 0.6vw 0;
  }
  .form_ap:hover {
    cursor: pointer;
  }
  .li1 {
    z-index: 30;
  }
  .li1 a, #lix button {
    position: relative;
    display: flex;
    border: none;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10;
  }
  .li1 a:hover, #lix p:hover {
    background-color: #797a7f;
  }
  #lix span {
    position: absolute;
    bottom: 0;
    background-color: #c5c7ce;
    width: 180px;
    height: 80px;
    z-index: 5;
  }

  /* inizio sottomenu ul2 */
  #ul2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    bottom: 0;
    left: 0;
    background-color: #c5c7ce;
    border-radius: 0.6vw;
    z-index: 0;
  }
  .li2 {
    height: 7vw;
  }
  .li2 a {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 7vw;
    margin: 0.3vw 0;
    padding: 0.5vw 0.8vw;
    color: #5f2448;
  }
  .bor::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }
  .li2 a:hover {
    background-color: #797a7f;
    border-radius: 0.4vw;
  }

  /* fine sottomenu ul2 */
}

@media only screen and (max-width: 768px) and (min-width: 521px) {
  #header {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    background-color: #c5c7ce;
    margin-top: -8.4vw;
    z-index: 200;
    transition: margin-top 0.3s;
    height: 8.4vw;
  }
  #logo {
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  #logo img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #h-direz {
    display: flex;
    flex-direction: row;
  }
  #h-testo p {
    font-weight: 400;
    font-style: oblique;
    color: #920292;
    line-height: 0.95;
  }
  #menu1 {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  #ham {
    display: flex;
    flex-direction: column;
  }
  #ham span {
    border: 1px solid black;
    border-radius: 2px;
    width: 30px;
    height: 4px;
    margin: 2px 0;
    background-color: black;
  }
  #ul1 {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    width: 19vw;
    text-align: center;
    margin-top: 1vw;
    bottom: -1vw;
    opacity: 0;
    visibility: hidden;
  }
  #ul1 .li1, #ul1 #lix {
    height: 9vw;
    background-color: #c5c7ce;
  }
  .li1 a, #lix {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 9vw;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10000;
  }
  #lix button {
    border: none;
    background-color: #c5c7ce;
  }

  .form_ap {
    color: #5f2448;
    align-items: center;
    height: 6.4vw;
    padding: 0.6vw 0;
    pointer-events: auto;
  }
  .form_ap:hover {
    cursor: pointer;
  }
  #lix {
    position: relative;
  }
  .li1 a:hover, #lix p:hover {
    background-color: #797a7f;
  }

  /* inizio sottomenu ul2 */
  #ul2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    top: 0;
    right: 0;
    background-color: #c5c7ce;
    border-radius: 0.6vw;
  }
  .li2 {
    height: 9vw;
  }
  .li2 a {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 9vw;
    margin: 0.3vw 0;
    padding: 0.5vw 0.8vw;
    color: #5f2448;
  }
  .bor::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }
  /* fine sottomenu ul2 */
}

@media only screen and (max-width: 520px) and (min-width: 381px) {
  #header {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    background-color: #c5c7ce;
    margin-top: -11.1vw;
    z-index: 200;
    transition: margin-top 0.3s;
    height: 11.1vw;
  }
  #logo {
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  #logo img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #h-direz {
    display: flex;
    flex-direction: row;
  }
  #h-testo p {
    font-weight: 400;
    font-style: oblique;
    color: #920292;
    line-height: 1.05;
  }
  #menu1 {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  #ham {
    display: flex;
    flex-direction: column;
  }
  #ham span {
    border: 1px solid black;
    border-radius: 2px;
    width: 30px;
    height: 4px;
    margin: 2px 0;
    background-color: black;
  }
  #ul1 {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    width: 24vw;
    text-align: center;
    margin-top: 1vw;
    bottom: -1vw;
    opacity: 0;
    visibility: hidden;
  }
  #ul1 .li1, #ul1 #lix {
    height: 11vw;
    background-color: #c5c7ce;
  }
  .li1 a, #lix {
    position: relative;
    display: flex;
    align-items: center;
    height: 11vw;
    justify-content: center;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10000;
  }
  #lix button {
    border: none;
    background-color: #c5c7ce;
  }
  .form_ap {
    color: #5f2448;
    align-items: center;
    height: 6.4vw;
    padding: 0.6vw 0;
    pointer-events: auto;
  }
  .form_ap:hover {
    cursor: pointer;
  }
  #lix {
    position: relative;
  }
  .li1 a:hover, #lix p:hover {
    background-color: #797a7f;
  }

  /* inizio sottomenu ul2 */
  #ul2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    top: 0;
    right: 0;
    background-color: #c5c7ce;
    border-radius: 0.6vw;
  }
  .li2 {
    height: 13vw;
  }
  .li2 a {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 13vw;
    margin: 0.3vw 0;
    padding: 0.5vw 0.8vw;
    color: #5f2448;
  }
  .bor::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }
  /* fine sottomenu ul2 */
}

@media only screen and (max-width: 380px) and (min-width: 311px) {
  #header {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    background-color: #c5c7ce;
    margin-top: -50px;
    z-index: 200;
    transition: margin-top 0.3s;
    height: 50px;
  }
  #logo {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    height: 40px;
  }
  #logo img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #h-direz {
    display: flex;
    flex-direction: row;
  }
  #h-testo p {
    font-weight: 400;
    font-style: oblique;
    color: #920292;
  }
  #menu1 {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  #ham {
    display: flex;
    flex-direction: column;
  }
  #ham span {
    border: 1px solid black;
    border-radius: 2px;
    width: 30px;
    height: 4px;
    margin: 2px 0;
    background-color: black;
  }
  #ul1 {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    width: 24vw;
    text-align: center;
    margin-top: 1vw;
    bottom: -1vw;
    opacity: 0;
    visibility: hidden;
  }
  #ul1 .li1, #ul1 #lix {
    height: 14vw;
    background-color: #c5c7ce;
  }
  .li1 a, #lix {
    position: relative;
    display: flex;
    align-items: center;
    height: 14vw;
    justify-content: center;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10000;
  }
  #lix button {
    border: none;
    background-color: #c5c7ce;
  }
  .form_ap {
    color: #5f2448;
    align-items: center;
    height: 6.4vw;
    padding: 0.6vw 0;
    pointer-events: auto;
  }
  .form_ap:hover {
    cursor: pointer;
  }
  #lix {
    position: relative;
  }
  .li1 a, #lix button {
    position: relative;
    display: flex;
    justify-content: center;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10000;
  }
  .li1 a:hover, #lix p:hover {
    background-color: #797a7f;
  }

  /* inizio sottomenu ul2 */
  #ul2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    top: 0;
    right: 0;
    background-color: #c5c7ce;
    border-radius: 0.6vw;
  }
  .li2 {
    height: 17vw;
  }
  .li2 a {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 17vw;
    margin: 0.3vw 0;
    padding: 0.5vw 0.8vw;
    color: #5f2448;
  }
  .bor::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }
  /* fine sottomenu ul2 */
}

@media only screen and (max-width: 310px) and (min-width: 240px) {
  #header {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    background-color: #c5c7ce;
    margin-top: -66px;
    z-index: 200;
    transition: margin-top 0.3s;
    height: 66px;
  }
  #logo {
    height: 40px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  #logo img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #h-direz {
    display: flex;
    flex-direction: column;
  }
  #h-testo p {
    font-weight: 400;
    font-style: oblique;
    color: #920292;
    line-height: 1.15;
  }
  #menu1 {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  #ham {
    display: flex;
    flex-direction: column;
  }
  #ham span {
    border: 1px solid black;
    border-radius: 2px;
    width: 40px;
    height: 4px;
    margin: 2px 0;
    background-color: black;
  }
  #ul1 {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    width: 30vw;
    text-align: center;
    margin-top: 1vw;
    bottom: -1vw;
    opacity: 0;
    visibility: hidden;
  }
  #ul1 .li1, #ul1 #lix {
    height: 20vw;
    background-color: #c5c7ce;
  }
  .li1 a, #lix {
    position: relative;
    display: flex;
    align-items: center;
    height: 20vw;
    justify-content: center;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10000;
  }
  #lix button {
    border: none;
    background-color: #c5c7ce;
  }
  .form_ap {
    color: #5f2448;
    align-items: center;
    height: 6.4vw;
    padding: 0.6vw 0;
    pointer-events: auto;
  }
  .form_ap:hover {
    cursor: pointer;
  }
  #lix {
    position: relative;
  }
  .li1 a, #lix button {
    position: relative;
    display: flex;
    justify-content: center;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10000;
  }
  .li1 a:hover, #lix p:hover {
    background-color: #797a7f;
  }

  /* inizio sottomenu ul2 */
  #ul2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    top: 0;
    right: 0;
    background-color: #c5c7ce;
    border-radius: 0.6vw;
  }
  .li2 {
    height: 20vw;
  }
  .li2 a {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 20vw;
    margin: 0.3vw 0;
    padding: 0.5vw 0.8vw;
    color: #5f2448;
  }
  .bor::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }
  /* fine sottomenu ul2 */
}

@media only screen and (max-width: 239px) {
  #header {
    display: none;
  }
  #logo {
    height: 40px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    display: none;
  }
  #logo img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  #testo {
    display: none;
  }
  #h-direz {
    display: flex;
    flex-direction: column;
  }
  #h-testo p {
    font-weight: 400;
    font-style: oblique;
    color: #920292;
    line-height: 1.15;
  }
  #menu1 {
    position: relative;
    display: none;
  }
  #ham {
    display: flex;
    flex-direction: column;
  }
  #ham span {
    border: 1px solid black;
    border-radius: 2px;
    width: 40px;
    height: 4px;
    margin: 2px 0;
    background-color: black;
  }
  #ul1 {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    width: 30vw;
    text-align: center;
    margin-top: 1vw;
    bottom: -1vw;
    opacity: 0;
    visibility: hidden;
  }
  #ul1 .li1, #ul1 #lix {
    height: 20vw;
  }
  .li1 a, #lix button {
    position: relative;
    display: flex;
    border: none;
    background-color: #c5c7ce;
    transition: background-color 0.5s ease-out;
    z-index: 10000;
  }
  .form_ap {
    color: #5f2448;
    align-items: center;
    height: 6.4vw;
    padding: 0.6vw 0;
    pointer-events: auto;
  }
  .form_ap:hover {
    cursor: pointer;
  }
  #lix {
    position: relative;
    background-color: pink;
  }
  .li1 a:hover, #lix button:hover {
    background-color: #797a7f;
  }

  /* inizio sottomenu ul2 */
  #ul2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    top: 0;
    right: 0;
    background-color: #c5c7ce;
    border-radius: 0.6vw;
  }
  .li2 {
    height: 20vw;
  }
  .li2 a {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 20vw;
    margin: 0.3vw 0;
    padding: 0.5vw 0.8vw;
    color: #5f2448;
  }
  .bor::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }
  /* fine sottomenu ul2 */
}














