@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700&family=Roboto&display=swap');

/* ---------- BASE TYPOGRAPHY ---------- */

body {
  font-family: 'Roboto', sans-serif;
  background-color: #F5F5F5;
  color: #333333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  color: #0095FF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

a {
  color: #0095FF;
  text-decoration: none;
}

a:hover {
  color: #D49E00; /* Giallo accessibile su sfondo chiaro */
  text-decoration: underline;
}

/* ---------- SIDEBAR ---------- */

.sidebar {
  background-color: #0095FF;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.sidebar a {
  color: white;
}
.sidebar a:hover {
  color: #FFD600;
}

.sidebar-about h1 {
  color: white;
  margin-top: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.25rem;
}

/* Sticky sidebar (footer) */
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
  }
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}

/* ---------- NAVIGATION ---------- */

.sidebar-nav {
  margin-bottom: 1rem;
}
.sidebar-nav-item {
  display: block;
  line-height: 1.75;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

/* ---------- PAGE CONTENT ---------- */

.content {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 48em) {
  .content {
    max-width: 38rem;
    margin-left: 20rem;
    margin-right: 2rem;
  }
}
@media (min-width: 64em) {
  .content {
    margin-left: 22rem;
    margin-right: 4rem;
  }
}

/* ---------- REVERSE LAYOUT ---------- */

@media (min-width: 48em) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 2rem;
    margin-right: 20rem;
  }
}
@media (min-width: 64em) {
  .layout-reverse .content {
    margin-left: 4rem;
    margin-right: 22rem;
  }
}
mjx-container[display="true"] {
  display: block;
  margin: 1em 0;
  text-align: center;
}

.site-logo {
  max-width: 100px;
  margin-bottom: 10px;
}

@media (max-width: 48em) {
  .site-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: #0095FF;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.read-more:hover,
.read-more:focus {
  color: #FFD600;
  border-color: #FFD600;
  outline: none;
}
