body {
  font-family: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont,
  'Segoe UI', Roboto, Ubuntu, Cantarell, 'Helvetica Neue',
  Arial, sans-serif;
  margin: 0;
  background: #f0f4f7;
  color: #333;
}

main {
  min-height: 90vh;
}

/* Header */
header {
  background: #2f4356;
  padding: 1.25em;
}

/* Sub Banner */
.sub-banner {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
}

.sub-banner-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.sub-banner-logo {
  height: 80px;
  width: auto;
}

.sub-banner-divider {
  width: 1px;
  height: 32px;
  background-color: #ccc;
}

.sub-banner-text {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

/* Navigation bar */
.nav-bar {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-link {
  display: inline-block;
  padding: 14px 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #069;
}

/* Active link */
.nav-link.active {
  color: #069;
  font-weight: 600;
}

/* Line under the active page or when hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: #069;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
}

main {
  max-width: 1100px;
  margin: auto;
}

h1, h2 {
  margin-bottom: 1rem;
}

.divider {
  width: 100%;          
  height: 1px;             
  background: #d1d5db; 
  margin: 2rem 0;          /* top and bottom margin */
  border: none;
}

/* Main wrapper for all the pages */
.wrapper {
  max-width: 1100px;      /* max width */
  margin: 2rem auto;      /* horizontally centered, vertical margin */
  padding: 2rem;          /*internal spacing */
  background-color: #ffffff;  
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.wrapper-inner {
  max-width: 1100px;      /* max width */
  margin: 2rem auto;      /* horizontally centered, vertical margin */
  padding: 2rem;          /*internal spacing */
  background-color: #ffffff; 
  border: 1px solid #e0e0e0;
}

.wrapper-inner:hover {
  background-color: #fafafa; 
}

/* INFORMATION */
.information {
  margin-bottom: 3rem;
}

.information p {
  font-size: 16px;
}

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

.updates a{
  text-decoration: none;
}
.updates p {
  white-space: "pre-line";
}

/* This class can be used in the content/latest-news.js message field */
.unstyled li {
  list-style: disc;
  display: list-item;
  border-left: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  background: none !important;
}

.updates li {
  background: white;
  padding: 1rem;
  border-left: 4px solid #069;
  margin-bottom: 1rem;
}

.updates li:hover{
  background: #fafafa;
}


.date {
  font-weight: bold;
  color: #069;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #f0f4f7;
  padding: 2rem;
  border: 1px solid #0000000d;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card .arrow{
  font-size: 32px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.card .arrow:hover{
  transform: translateX(5px);
}

.card:hover {
  border: 1px solid #0000001b;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-arrow {
  text-align: right;
}

/* TIMELINE */
.timeline-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 60px 0;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #ccc;
  border-radius: 2px;
  transform: translateY(-50%);
}

.months {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.month-point {
  width: 20px;
  height: 20px;
  background-color: #666;
  border-radius: 50%;
  position: relative;
  cursor: default;
}

.month-point-active{
    width: 20px;
    height: 20px;
    background-color:  #069;
    border-radius: 50%;
    position: relative;
    cursor: default;
}

.month-point-active:hover {
  background-color: #069;
}

.month-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #333;
  margin-bottom: 6px;
}

/* Eventi dinamici */
.event {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #28a745;
  border-radius: 50%;
  top: -8px;
  cursor: pointer;
  transform: translateX(-50%);
  z-index: 2;
}

#popup {
  position: absolute;
  width: 250px; 
  background: #2f4356;
  display: none;
  text-decoration: none;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: none;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #0000000d;
  border-radius: 5px;
  box-shadow: 0 4px 15px #2f435604;
  z-index: 100;
}

.popup-line {
  display: block;       /* simulate a <br> */
  margin-bottom: 8px;   /* distance between lines */
  color: #333;        /* change color (if wanted) */
}

.popup-line h1 {
  font-size: 14px;
  font-weight: bold;
  color:#f5f5f5
}

.popup-line p {
  font-size: 12px;
  font-weight: normal;
  color:#f5f5f5
}

/* DOWNLAOD BOX */
.download-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

/* Text part */
.download-content {
  display: flex;
  flex-direction: column;
}

.download-title {
  font-family: monospace;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.download-date {
  font-size: 12px;
  color: #666;
}

/* Icon */
.download-icon {
  display: inline-block; 
  font-size: 16px;
  color: #069;
  text-decoration: none;
  margin-left: 15px;
  transition: transform 0.2s ease;
}

.download-icon:hover {
  transform: translateY(2px);
}

/* FOOTER */
footer {
  text-align: right;
  padding: 1rem;
  background: #2f4356;
}

footer p {
  font-size: 12px;
  color: #e0e0e0;
}

/* STATUS BAR */
.status-banner {
  width: 100%;
  padding: 10px 20px;
  margin-top: 3px;
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Status OK */
.status-ok {
  background-color: #cfe9d6; /* verde soft */
  color: #000;
}

/* Status maintenance */
.status-maintenance {
  background-color: #e52f2f; /* rosso */
  color: #fff;
  font-weight: bold;
}

/* FAQ */
.faq {
  max-width: 700px;
  margin: 50px auto;
  font-family: Arial, sans-serif;
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  color: #069;
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.faq-answer p {
  margin: 15px 0;
  color: #555;
}

/* Stato aperto */
.faq-item.active .faq-answer {
  max-height: 200px; /* increase height if more room is needed needed */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* + into × */
}

/* Little */
.arrow-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.arrow {
  font-size: 24px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.arrow-link:hover {
  color: #069;
}

.arrow-link:hover .arrow {
  color: #069;
  transform: translateX(5px);
}

/* LIST FOR FILES ORGANISATION FOR XML AND YAML */
.file-organisation {
  padding-left: 1.2rem;
  list-style-type: square;
}

.file-organisation li::marker {
  color: #2f4356;
}

.file-organisation a {
  text-decoration: none;
  color:#069;
}

.file-organisation a:visited {     /* colore che vuoi */
  text-decoration: none;
}

.file-organisation a:hover {
  font-weight: 600;
}

.file-organisation ul li::marker {
  color:  #2f4356;
}

.file-organisation ul {
  list-style-type: square;
}

.file-organisation ul ul {
  list-style-type: disc;
}

.file-organisation ul ul li::marker {
  color: #2f4356;
}

/* MAIL TO */
.mailto {
  text-decoration: none;
  color:#069
}

.mailto:hover {
  font-weight: 600;
}

.mailto:visited {
  text-decoration: none;
}

.mailto-not-active {
  text-decoration: none;
  color:rgb(56, 56, 56)
}