/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
small {
    color: #666;
}
.description {
    color: #666;
    font-size: 1.1em;
    font-weight: 300;
    margin-bottom: 0;
}
/* ==========================================================================
   LAYOUT
   ========================================================================== */
/* Blog list spacing */
.row {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.row:last-child {
    border-bottom: none;
}
.row div:last-child {
    text-align: right;
}
/* Post footer */
.post-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 3rem;
    text-align: right;
}
/* ==========================================================================
   NAVIGATION
   ========================================================================== */
/* Base navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
    position: relative;
}
#menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
}
#menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Mobile navigation */
@media (max-width: 599px) {
    #menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light);
        border: 1px solid #eee;
        padding: 1rem;
        z-index: 100;
    }
    
    #menu.mobile-open {
        display: block;
    }
    
    #menu li {
        margin: 0.5rem 0;
    }
    
    #menu li a {
        text-decoration: none;
        color: var(--dark);
        display: block;
        padding: 0.5rem 0;
    }
}
/* Desktop navigation */
@media (min-width: 600px) {
    #menu {
        display: flex;
        gap: 1.5rem;
    }

    #menu li a {
        text-decoration: none;
        padding: 0.5rem 0;
        color: var(--dark);
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease; /* Cambiato per includere anche il colore */
    }

    #menu li a:hover {
        color: #F54069; /* Colore desiderato */
        border-bottom-color: #F54069; /* Opzionale: sottolinea con lo stesso colore */
    }

    #menu-toggle {
        display: none;
    }
}

/* ==========================================================================
   LOGO
   ========================================================================== */
.logo {
    color: F54069c;
    font-size: 4rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo:hover {
    text-decoration: none;
    color: F54069;
    transform: rotate(15deg) scale(1.1);
}

.site-name {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.post-list a {
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.post-list a:hover {
    text-decoration: underline;
    color: #F54069;
}

/* ==========================================================================
   STAR WRAP
   ========================================================================== */

.star-wrap {
  position: relative;
  margin: 0 auto;
  width: 60px;
  height: 60px;
}
.star-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.star-svg line {
  stroke: #ff2d55;
  stroke-linecap: round;
}
.star-back {
  animation: rot-ccw 20s linear infinite;
  transform-origin: 30px 30px;
  opacity: 0.22;
}
.star-back line { stroke-width: 9; }

.star-front {
  animation: rot-cw 14s linear infinite;
  transform-origin: 30px 30px;
  opacity: 0.9;
}
.star-front line { stroke-width: 7; }

@keyframes rot-cw  { to { transform: rotate(360deg);  } }
@keyframes rot-ccw { to { transform: rotate(-360deg); } }

/* ==========================================================================
   FOOTER LINE
   ========================================================================== */

footer {
    border-top: 1px solid #eee;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* ==========================================================================
   ALERT BOX
   ========================================================================== */

.alert-box {
  border: 2px solid #F54069;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-style: italic;
}

/* ==========================================================================
   WEB MENTIONS / BRIDGY
   ========================================================================== */

.webmentions {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--light, #999);
}

.wm-count {
  margin-right: 1rem;
}

/* ==========================================================================
   CODEBLOCK MIGLIORATO
   ========================================================================== */

pre, code {
  background-color: rgba(245, 64, 105, 0.06);
  border-radius: 4px;
}