/* =========================================
   MENU FULLSCREEN — replica del PDF
   ========================================= */

/* ── Pulsante hamburger con triangolo rosso ── */
.menu-trigger {
  position: fixed;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  z-index: 950;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  pointer-events: none;
}

.menu-trigger::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 130px 130px 0;
  border-color: transparent var(--red) transparent transparent;
  pointer-events: auto;
  transition: filter 0.2s ease;
}

.menu-trigger:hover::before {
  filter: brightness(1.08);
}

.menu-trigger .bars {
  position: absolute;
  top: 26px;
  right: 24px;
  width: 32px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: auto;
}

.menu-trigger .bars span {
  display: block;
  height: 3px;
  background: var(--white);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .menu-trigger {
    width: 88px;
    height: 88px;
  }
  .menu-trigger::before {
    border-width: 0 88px 88px 0;
  }
  .menu-trigger .bars {
    top: 16px;
    right: 14px;
    width: 24px;
    height: 17px;
  }
  .menu-trigger .bars span {
    height: 2.5px;
  }
}

@media (max-width: 420px) {
  .menu-trigger {
    width: 72px;
    height: 72px;
  }
  .menu-trigger::before {
    border-width: 0 72px 72px 0;
  }
  .menu-trigger .bars {
    top: 13px;
    right: 11px;
    width: 20px;
    height: 14px;
  }
}

/* ── Overlay menu fullscreen ── */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--red);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.fullscreen-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

/* ── Triangolo bianco con X di chiusura ── */
.menu-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.menu-close::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 130px 130px 0;
  border-color: transparent var(--white) transparent transparent;
}

.menu-close::after {
  content: '';
  position: absolute;
  top: 26px;
  right: 24px;
  width: 32px;
  height: 32px;
  background-image:
    linear-gradient(45deg, transparent 45%, var(--red) 45%, var(--red) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--red) 45%, var(--red) 55%, transparent 55%);
  background-size: 100% 100%;
}

@media (max-width: 768px) {
  .menu-close {
    width: 88px;
    height: 88px;
  }
  .menu-close::before {
    border-width: 0 88px 88px 0;
  }
  .menu-close::after {
    top: 16px;
    right: 14px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 420px) {
  .menu-close {
    width: 72px;
    height: 72px;
  }
  .menu-close::before {
    border-width: 0 72px 72px 0;
  }
  .menu-close::after {
    top: 13px;
    right: 11px;
    width: 20px;
    height: 20px;
  }
}

/* ── Contenuto menu ── */
.menu-content {
  width: 100%;
  padding: 6vh 0;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: center;
  gap: 3rem;
  color: var(--white);
}

.menu-sections {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

/* La fascia nera tocca il bordo sinistro del viewport,
   il padding sinistro interno spinge il testo verso il centro. */
.menu-block .menu-block-title {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-bold);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
  padding: 0.55em 1.2em 0.5em 6vw;
  margin-bottom: 1.3rem;
  line-height: 1;
}

.menu-block ul {
  list-style: none;
  padding-left: 7vw;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.menu-block li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.9vw, 1.7rem);
  line-height: 1.15;
  color: var(--white);
}

.menu-block li a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline;
}

.menu-block li a:hover {
  opacity: 0.78;
}

.menu-block li .label-thin {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78em;
  letter-spacing: 0.005em;
  display: inline;
}

/* ── Lato destro: logo + footer link ── */
.menu-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  min-height: 65vh;
  position: relative;
  padding: 2rem 6vw 0 0;
}

.menu-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.menu-logo {
  width: clamp(180px, 22vw, 320px);
  height: auto;
}

.menu-footer-links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
}

.menu-footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.menu-footer-links a:hover {
  opacity: 0.78;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .menu-content {
    grid-template-columns: 1fr;
    padding: 110px 0 6vh;
    gap: 2.5rem;
  }
  .menu-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
    padding: 1rem 6vw 0;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .menu-logo-wrap {
    justify-content: flex-start;
    width: auto;
  }
  .menu-logo {
    width: 130px;
  }
  .menu-block .menu-block-title {
    font-size: clamp(1.4rem, 7vw, 2rem);
    padding-left: 6vw;
  }
  .menu-block ul {
    padding-left: 7vw;
  }
  .menu-block li {
    font-size: clamp(1rem, 4.6vw, 1.4rem);
  }
}

@media (max-width: 480px) {
  .menu-footer-links {
    width: 100%;
    justify-content: flex-start;
  }
}
