/* ACCESSIBILITÀ WCAG 2.1 AA */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 0;
  top: 0;
  background: #000;
  color: #fff;
  padding: 1em;
  z-index: 1000;
}

:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

body {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: #005fcc;
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

/* LAYOUT */
.site-header,
.site-footer {
  background-color: #f5f5f5;
  padding: 1em;
  text-align: center;
}

.site-title {
  font-size: 2rem;
  margin: 0;
}

.site-main {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
}

.site-footer p {
  font-size: 0.9rem;
  color: #666;
}

/* MENU DESKTOP */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1em;
}

.menu ul li {
  position: relative;
}

.menu ul a {
  font-weight: bold;
  color: #005fcc;
  padding: 0.5em 1em;
  display: block;
}

.menu ul a:hover,
.menu ul a:focus {
  background-color: #e0e0e0;
}

/* HAMBURGER MENU MOBILE */
.menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: none;
  cursor: pointer;
  padding: 1em;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: #333;
  display: block;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: "";
  width: 25px;
  height: 3px;
  background: #333;
  position: absolute;
  left: 0;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle-label {
    display: block;
  }

  .menu-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #f5f5f5;
    padding: 1em 0;
  }

  .menu-toggle:checked + .menu-toggle-label + .menu-wrapper {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    gap: 1em;
  }
}
