/* ==========================================================================
   MEDIA QUERY PER DISPOSITIVI MOBILI (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

  /* Resetta il layout di base per html e body */
  html,
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-weight: 300;
    color: #000;
    font-size: 16px;
    background-color: #fff;
    background-size: cover;
    margin: 0;
    padding: 0;
  }

  /* Header generale */
  header {
    background-color: #1a1a1a;
    /* Sfondo scuro come nell'immagine */
    padding: 0;
  }

  /* Titolo principale con piramide */
  .title {
    font-size: 10vw;
    height: 35vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #fff; /* Testo bianco */
  }

  .title a {
    font-size: inherit;  /* Eredita la dimensione dal parent */
    color: inherit;      /* Eredita il colore */
    text-decoration: none;
    margin-right: 1rem;  /* Spazio tra testo e piramide */
  }

  /* Contenitore della piramide */
  .stage {
    position: relative;
    transform: scale(0.5);
    margin: 0;
    width: auto;
    top: 3vh;
    left: 15vw;
    bottom: auto;
    display: inline-block; /* Allinea accanto al testo */
  }

  /* Menu di navigazione (nuove classi) */
  .site-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #1a1a1a;
  }

  .site-nav-item {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 0.45rem 0;
    color: #fff;
  }

  .site-nav a {
    font-size: 16px;
    color: inherit;
    text-decoration: none;
  }

  /* Contenitore flessibile per il contenuto */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  /* Testo generico */
  .content p {
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
  }

  .content {
    margin: 0;
  }

  h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 100;
  }

  /* Footer (se definito nel footer.shtml) */
  footer {
    margin: 2rem 1rem;
    font-size: 0.9rem;
    text-align: right;
  }

  /* Menu di navigazione in colonna */
  .site-nav-list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .site-nav-item {
    font-size: 2vh;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }

  .site-nav-list { height: auto; }

  /* Testo generico e paragrafi */
  p,
  article p,
  .content p {
    margin: 1.3rem;
    font-size: 1.2rem;
  }

  h1 {
    margin: 0.2rem;
    font-size: 1.4rem;
  }

  .blog-list em {
    margin: 0.75rem; /* 60px */
  }

  article em {
    font-size: 0.9em;
    margin-left: 2.5rem; /* 40px */
  }

  .blog-list a {
    font-size: 1.2rem;
  }

  .blog-list small {
    font-size: 1rem;
  }

  .blog-list {
    margin: 1rem;
  }

  .blog-list li {
    margin-left: 2em;
    margin-bottom: 1.25rem; /* 20px */
    padding: 0.2rem;
  }

  div.blog-container {
    text-align: left;
  }
  li {
    margin: 0;
  }

  small {
    margin-left: 1.875rem; /* 30px */
  }
}
