@media only screen and (max-width: 500px) {

  body {
    font-family: Helvetica, Arial, sans-serif;
  }

  #templatemo_container {
    background: none !important;
    width: 100%;
    padding: 0;
  }

  #templatemo_header {
    background: none !important;
    width: 100%;
    padding: 0;
    /* height:110px; */
    height: auto;
  }

  #templatemo_menu,
  #templatemo_menu_desktop {
    display: none !important;
    background: none !important;
    width: 100%;
  }

  #templatemo_menu_mobile {
    position: relative;
    text-align: center;
    padding: 6px;
    margin: 0 0 14px;
    width: 100%;
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
  }

  #templatemo_menu_mobile div {
    float: left; /* lo lascio per compatibilità (anche se in flex è ridondante) */
    margin: 4px;
    border: 1px solid silver;
    width: 23%;
    padding: 10px;
    text-align: center;
    font-size: 1.1em;
    text-transform: uppercase;
    color: #452300;
  }

  #templatemo_menu_mobile div a:link,
  #templatemo_menu_mobile div a:visited {
    color: #452300;
  }

  #templatemo_menu_mobile .current {
    background-color: #452300;
    color: #fff;
  }

  #templatemo_menu_mobile .current a:link,
  #templatemo_menu_mobile .current a:visited {
    color: #fff;
  }

  #templatemo_top_dishes {
    background: none !important;
    width: 100%;
    padding: 0;
  }

  #templatemo_content {
    background: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #templatemo_footer {
    background: #452300;
    width: 100% !important;
    color: #fff;
    font-size: 1.6em;
    line-height: 1.3em;
  }

  #templatemo_footer a {
    color: #fff;
  }

  #footer_menu_a { margin: 10px; }
  #footer_menu_b { margin: 8px 2px; }

  #templatemo_header #site_title {
    float: none;
    padding: 8px 0 0;
    width: 100%;
  }

  #templatemo_header #site_title img {
    display: inline;
    width: 100%;
    border: 0;
  }

  #sezione_secondaria {
    width: 100%;
  }

  #sezione_secondaria h1,
  #templatemo_top_dishes h1 {
    font-size: 2.4em;
    line-height: 1.2em;
    color: #452300;
  }

  #sezione_secondaria .top_dishes_box {
    float: none;
    width: 100%;
    margin: 0 0 2em;
  }

  #sezione_secondaria .top_dishes_box img {
    width: 100%;
    height: 100%;
    border: 0;
  }

  #sezione_secondaria .top_dishes_box h2,
  #templatemo_top_dishes .top_dishes_box h2 {
    font-size: 2.2em;
    line-height: 1.2em;
    padding: 0 4px;
    color: #452300;
  }

  #sezione_secondaria .top_dishes_box p,
  #templatemo_top_dishes .top_dishes_box p {
    font-size: 1.7em;
    line-height: 1.2em;
    padding: 0 4px;
  }

  #templatemo_top_dishes .top_dishes_box {
    float: none;
    width: 100%;
    padding-bottom: 10px;
    margin: 0 0 2em;
    border-bottom: 2px dotted #1b2308;
  }

  #templatemo_top_dishes .top_dishes_box img {
    width: 100%;
    max-width: 100%;
    border: 0;
    height: 100%;
  }

  #wide_white_content h2 {
    margin-top: 20px;
    margin-bottom: -10px;
    font-size: 24px;
    line-height: 30px;
  }

  .no_mobile {
    display: none !important;
  }

  .solo_mobile {
    display: inline-block;
  }

  .separatore {
    text-align: center;
    width: 100%;
    clear: both;
  }

  .separatore img {
    border: 0;
    max-width: 150px;
    margin: 20px 0;
  }

  /* contenuto del post o della pagina */

  #breadcrumbs {
    font-size: 1.0em !important;
    line-height: 1.2em;
    color: #452300;
  }

  #breadcrumb {
    text-align: left;
  }

  #breadcrumb a:link,
  #breadcrumb a:visited {
    color: #452300;
  }

  #wide_white_content p {
    font-size: 1.4em;
    line-height: 1.3em;
  }

  #wide_white_content img {
    height: 100%;
    width: 100%;
  }

  .inner_div_gallery {
    display: block;
    margin: 20px;
    font-size: 2em;
  }

  .inner_div_gallery img {
    height: 100%;
    width: 100%;
    margin: 10px 0;
  }

  .gallery-item {
    /* float:none !important; */
    width: 100% !important;
  }

  #wide_white_content ul {
    padding-inline-start: 14px;
  }

  /*
  #wide_white_content li {
    font-size: 1.6em;
    line-height: 1.3em;
  }
  */

  div#wide_white_content li {
    font-size: 24px;
    line-height: 28px;
  }

  #templatemo_innter_content {
    background: none;
  }

  #templatemo_content_left_mod,
  #templatemo_content_center_mod,
  #templatemo_content_right_mod {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    color: #452300;
  }

  #templatemo_content_left_mod p,
  #templatemo_content_center_mod p,
  #templatemo_content_right_mod p {
    font-size: 1.7em;
    line-height: 1.2em;
    padding: 4px;
    color: #452300;
  }

  #templatemo_content_left_mod h2,
  #templatemo_content_center_mod h2,
  #templatemo_content_right_mod h2 {
    font-size: 2em;
    color: #452300;
    padding: 4px;
  }

  #templatemo_content_left_mod img,
  #templatemo_content_center_mod img,
  #templatemo_content_right_mod img {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .alignleft {
    float: left;
    margin: 0;
  }

  .alignright {
    float: left;
    margin: 0;
  }

  .gallery-item img {
    height: 100% !important;
    width: 100% !important;
  }
}


@media only screen and (max-width: 320px) {
  #templatemo_menu_mobile div {
    /* stessi valori di sopra, cambia solo font-size */
    font-size: 1em;
  }
}


@media screen
  and (device-width: 320px)
  and (device-height: 640px)
  and (-webkit-device-pixel-ratio: 3)
  and (orientation: landscape) {

  #wide_white_content img {
    max-width: 80%;
  }

  div#wide_white_content li {
    font-size: 24px;
    line-height: 28px;
  }
}


@media only screen and (max-width: 740px) and (orientation: landscape) {

  .vc_col-sm-2 {
    width: 110px;
    height: 110px;
  }

  #wide_white_content p {
    font-size: 24px;
    line-height: 28px;
  }

  div#wide_white_content li {
    font-size: 24px;
    line-height: 28px;
  }
}


@media screen
  and (device-width: 640px)
  and (orientation: landscape) {

  #wide_white_content img {
    max-width: 80%;
  }

  #wide_white_content p {
    font-size: 24px;
    line-height: 28px;
  }

  div#wide_white_content li {
    font-size: 24px;
    line-height: 28px;
  }
}
