@font-face {
      font-family: 'Quicksand';
      src: url('/assets/fonts/quicksand/quicksand-latin-400-normal.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
  }
  @font-face {
      font-family: 'Quicksand';
      src: url('/assets/fonts/quicksand/quicksand-latin-600-normal.woff2') format('woff2');
      font-weight: 600;
      font-style: normal;
  }
  @font-face {
      font-family: 'Quicksand';
      src: url('/assets/fonts/quicksand/quicksand-latin-700-normal.woff2') format('woff2');
      font-weight: 700;
      font-style: normal;
  }

  body {
      margin: 0;
      font-family: 'Quicksand', monospace;
      background-color: #FFDDEB; 
      display: flex;
      padding: 20px;
      justify-content: center;
      color: #5B3A6E;
      background-image: url('/assets/img/skycloud.png');
  }

  hr {
    color: #5B3A6E;
  }

  .container {
    display: grid;
    grid-template-areas:
      "header header"
      "nav main"
      "footer footer";
    grid-template-columns: 12vw 1fr;
    grid-template-rows: 15vh 1fr 10vh;
    gap: 20px;
    height: 100%;
    min-height: 100vh;
    padding: 10px;
    background-color: #F7A8D6;
    width: 100%;
    max-width: 1200px;
    border-radius: 20px;
  }

  header {
    grid-area: header; 
    display: flex;
    background: #F7A8D6;
    padding: 20px; 
    border-radius: 20px;
    color: #5B3A6E;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    justify-content: center;
    align-items: center;
  }

  nav.sidebar-left { 
    grid-area: nav; 
    background: #A85F88ff; 
    padding: 10px; 
    color: white; 
    border-radius: 20px;
  }

  main { 
    grid-area: main; 
    background: #e9c46a;
    background-image: url(https://messymind.me/assets/img/merletto.png);
    padding: 10px; 
    border-radius: 20px; 
  }

  footer { 
    grid-area: footer; 
    display: flex;
    background: #F7A8D6;
    padding: 20px;
    border-radius: 20px;
    color: #5B3A6E;
    font-size: 0.7rem;
    justify-content: center;
    align-items: center;
  }

  @media (max-width: 800px) {
    .container {
      grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
  }

  /* --- Sidebar styles --- */
  .sidebar-left ul {
      list-style: none;
      padding: 0;
      margin: 0;
  }
  .sidebar-left li {
      margin-bottom: 10px;
  }
  .sidebar-left a {
      display: block;
      padding: 12px;
      background: #FFDDEB;
      color: #5B3A6E;
      border-radius: 12px;
      text-decoration: none;
      font-weight: 600;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
  }
  .sidebar-left a:hover {
      background: #F7A8D6;
      transform: translateY(-3px);
  }
  /* IMMAGINI DECORATIVE */
    .decorative-image {
      position: absolute;
      background-size: contain;
      background-repeat: no-repeat;
      width: 120px;
      height: 120px;
      pointer-events: none;
      opacity: 1; /* modificare per renderle più/meno visibili */
    }

    .deco1 {
      position: absolute;
      background-image: url('/assets/img/pchan2.png');
      top: 30px;
      left: 300px;
      pointer-events: none;
    }

    .deco2 {
      position: absolute;
      background-image: url('/assets/img/pchan4.png');
      top: 50px;
      right: 250px;
      pointer-events: none;
    }

    .deco3 {
      position: absolute;
      background-image: url('/assets/img/pchan3.png');
      bottom: -900px;
      left: 250px;
      pointer-events: none;
    }

    .deco4 {
      position: absolute;
      background-image: url('assets/img/pchan6.png');
      bottom: -850px;
      right: 150px;
      pointer-events: none;
    }

    .deco5 {
      position: absolute;
      background-image: url('assets/img/pchan5.png');
      top: 86px;
      left: 500px;
      pointer-events: none;

    }

  /* --- Slideshow --- */
  .slideshow {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .slideshow img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slide 12s infinite;
    border-radius: 12px;
  }
  .slideshow img:nth-child(1) { animation-delay: 0s; }
  .slideshow img:nth-child(2) { animation-delay: 4s; }
  .slideshow img:nth-child(3) { animation-delay: 8s; }
  @keyframes slide {
    0%, 100% { opacity: 0; }
    10%, 30% { opacity: 1; }
    40% { opacity: 0; }
  }

  /* --- About section buttons inside main --- */
  main .about-nav a {
    margin-right: 10px;
    text-decoration: none;
    padding: 6px 10px;
    background: #eee;
    border-radius: 6px;
    color: #5B3A6E;
  }
  main .about-nav a:hover {
    background: #ccc;
  }

  /* --- Sections target --- */
  main section {
    display: none;
  }
  main section:target {
    display: block;
  }
  main img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #06D6A0; /* verde */
    box-shadow: 3px 3px 1px #4E2A5B;
    margin-bottom: 15px;
  }
  .about-switch {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.switch-btn {
  display: inline-block;
  padding: 14px 24px;
  background: #FFDDEB;
  color: #5B3A6E;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.switch-btn:hover {
  background: #F7A8D6;
  transform: translateY(-3px);
}

.switch-btn:focus {
  outline: none;
  border: 2px solid #5B3A6E;
  box-shadow: 0 0 0 4px #FFDDEB;
}

/* Stile attivo quando la sezione è visibile */
#about-me:target ~ nav .switch-btn[href="#about-me"],
#about-site:target ~ nav .switch-btn[href="#about-site"] {
  background: #A85F88;
  color: #fff;
}
  .likes-table  {
  max-width: 800px;       /* stessa larghezza della card */
  margin: 0 auto 30px;    /* centrata e con spazio sotto */
  padding: 15px;           /* lascia un po’ di sfondo ai bordi */
  background-color: #FFDDEB; /* stesso sfondo della card */
  border-radius: 20px;     /* arrotondamenti coerenti */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* ombra coerente */
  overflow-x: auto;        /* scroll orizzontale se necessario su schermi piccoli */
}

.likes-table td {
  vertical-align: top;
  padding: 10px;
}
.likes-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.likes-table img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #06D6A0;
  box-shadow: 3px 3px 1px #4E2A5B;
  display: block;
  margin: 0 auto;
}

.likes-table h3 {
  margin-top: 0;
  color: #5B3A6E;
}

.likes-table p {
  color: #5B3A6E;
  line-height: 1.5;}
  
  .about-card {
   max-width: 800px;      
  margin: 0 auto 30px;    
  padding: 15px;          
  background-color: #FFDDEB; 
  border-radius: 20px;     
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
  overflow-x: auto;        

}

.about-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #06D6A0;
  box-shadow: 3px 3px 1px #4E2A5B;
  display: block;
  margin: 0 auto 20px;
}

.about-card h2 {
  color: #5B3A6E;
  margin-bottom: 15px;
}

.about-card p {
  color: #5B3A6E;
  line-height: 1.6;
}

