html, body {
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #FFFEF1;
  color: #192bc2;
  overflow-y: scroll;
}

/* About = fixed left top */
.nav-left-fixed {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 100;
  font-size: 1.15rem;
  font-weight: normal;
  background: none;
  border: none;
  cursor: pointer;
  color: #192bc2;
  padding: 8px 18px;
  transition: opacity 0.2s;
}

/* Contact = fixed right top */
.nav-right-fixed {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 100;
  font-size: 1.15rem;
  font-weight: normal;
  background: none;
  border: none;
  cursor: pointer;
  color: #192bc2;
  padding: 8px 18px;
  transition: opacity 0.2s;
}

/* verità centered, matches button height */
#nav-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  height: 48px;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 36px;
}

.nav-title {
  font-size: 2rem;
  font-weight: normal;
  background: none;
  border: none;
  color: #192bc2;
  padding: 8px 24px;
  cursor: pointer;
  transition: opacity 0.2s;
  height: 40px;
  line-height: 24px;
  align-items: center;
  display: flex;
  justify-content: center;
}
.nav-title:hover,
.nav-left-fixed:hover,
.nav-right-fixed:hover {
  color: #FF0080; /* Choose your highlight color */
  transition: color 0.2s;
}
/* Main content */
#main-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px 16px 16px;
  box-sizing: border-box;
}

/* Justified text for all main blocks */
.about-section,
.about-desc,
.about-me,
.contact-section,
.article-content {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto;
  word-break: break-word;
  text-align: justify;
}
.about-headline {
  text-align: center;
}

.center-contact {
  text-align: center;
}

.portrait-img,
.about-section img {
  display: block;
  margin: 36px auto;
  max-width: 320px;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.article-center {
  text-align: center;
}

.article-title {
  font-size: 1.15rem;
  margin-bottom: 16px;
  font-weight: normal;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
  margin: 80px 0 0 0;
}

.gallery-item {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  background: none;
  box-shadow: none;
  transition: box-shadow 0.08s;
  padding-bottom: 12px;
}
.gallery-item:hover .gallery-title {
  color: #FF0080; /* your hover color */
  transition: color 0.2s;
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  background: #eaeaea;
}

.gallery-title {
  margin-top: 14px;
  font-size: 1.11rem;
  color: #192bc2;
  text-align: center;
  font-weight: normal;
}

/* Blog buttons */
.blog-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.15rem;
  font-weight: normal;
  background: none;
  border: none;
  color: #192bc2;
  padding: 8px 24px;
  cursor: pointer;
  border-radius: 0;
  transition: opacity 0.2s;
  margin: 0 0 4px 0;
}

.blog-btn:focus,
.blog-btn:hover {
  opacity: 0.7;
  background: none;
}

/* Chrome/Edge/Opera/Brave scrollbar style */
body::-webkit-scrollbar {
  width: 12px;
  background: #FFFEF1;
}
body::-webkit-scrollbar-thumb {
  background: #e0dfd2;
  border-radius: 6px;
  border: 3px solid #FFFEF1;
}
body::-webkit-scrollbar-thumb:hover {
  background: #d3d3bc;
}
body::-webkit-scrollbar-corner {
  background: #FFFEF1;
}

/* Page fade-in effect */
#page-content {
  opacity: 0;
  transition: opacity 1.2s ease;
}
#page-content.fade-in {
  opacity: 1;
}
.lang-select {
  position: fixed;
  top: 64px;
  right: 20px; /* adjust: 100–150px depending on spacing you want */
  z-index: 100; /* slightly above, not required but safe */

  font: inherit;
  font-size: 1.15rem;
  background: none;
  border: none;
  color: #192bc2;
  cursor: pointer;
  padding: 8px 10px;
}

.lang-select:hover,
.lang-select:focus {
  color: #FF0080; /* your hover color */
  outline: none;
}
.nav-left-group {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 100;
}

/* Keep About positioned normally inside the group */
.nav-left-group .nav-left-fixed {
  position: static; /* overrides fixed because the group is fixed */
}

/* Sub button hidden by default */
.nav-sub-left {
  display: none;
  margin-top: 6px;

  font: inherit;
  font-size: 1.15rem;
  font-weight: normal;
  background: none;
  border: none;
  color: #192bc2;
  cursor: pointer;
  padding: 8px 18px;
  transition: opacity 0.2s, color 0.2s;
}

/* Show submenu when hovering the group */
.nav-left-group:hover .nav-sub-left,
.nav-left-group:focus-within .nav-sub-left {
  display: block;
}

/* Optional hover color, same as your other hover */
.nav-sub-left:hover,
.nav-sub-left:focus {
  color: #FF0080;
  outline: none;
}
/* Glossary notice bubble (bottom-right) */
.glossary-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  max-width: 340px;
  padding: 12px 44px 12px 14px;

  background: #ffc8dd;   /* your pink */
  color: #192bc2;        /* your blue text */
  border-radius: 14px;
  

  display: none;
  align-items: center;
  gap: 10px;
}

.glossary-bubble.show {
  display: flex;
}

/* little speech-bubble tail */
.glossary-bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -10px;
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #ffc8dd transparent transparent transparent;
}

.glossary-bubble-text {
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
}

.glossary-bubble-close {
  position: absolute;
  top: 6px;
  right: 10px;

  font: inherit;
  font-size: 22px;
  line-height: 1;

  background: none;
  border: none;
  color: #192bc2;
  cursor: pointer;
  padding: 2px 6px;
}

.glossary-bubble-close:hover,
.glossary-bubble-close:focus {
  color: #ffffff;  /* optional: white X on hover */
  outline: none;
}