* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #b9d5ec;
}

body {
  font-family: Georgia, "Times New Roman", serif;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/*
   Le zone sono volutamente trasparenti.
   Le percentuali corrispondono agli elementi nel video verticale.
*/
.hotspot {
  position: absolute;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:focus-visible {
  outline: 2px solid rgba(255,255,255,.95);
  outline-offset: 4px;
  border-radius: 999px;
}

.hotspot-gukaka {
  left: 49%;
  top: 56%;
  width: 41%;
  height: 24%;
  border-radius: 50%;
}

.hotspot-teoria {
  left: 18%;
  top: 34%;
  width: 32%;
  height: 13%;
  transform: rotate(-10deg);
  border-radius: 20px;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(22, 39, 55, .16);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 70vw;
  max-width: 560px;
  max-height: 78dvh;
  overflow: auto;
  padding: 34px 28px 28px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 28px;
  background: rgba(247, 250, 253, .82);
  box-shadow: 0 18px 70px rgba(48, 71, 91, .22);
  backdrop-filter: blur(18px) saturate(1.15);
  transform: translate(-50%, -47%) scale(.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .28s ease,
    transform .28s ease,
    visibility .28s ease;
}

.menu-card.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.menu-card nav {
  display: flex;
  flex-direction: column;
}

.menu-card a {
  display: block;
  padding: 18px 10px;
  color: #314659;
  text-decoration: none;
  text-align: center;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.08;
  border-bottom: 1px solid rgba(70, 100, 124, .18);
}

.menu-card a:last-child {
  border-bottom: 0;
}

.menu-card a:hover,
.menu-card a:focus-visible {
  color: #18374f;
  background: rgba(255,255,255,.36);
  border-radius: 14px;
  outline: none;
}

.menu-close {
  position: absolute;
  top: 7px;
  right: 13px;
  border: 0;
  background: transparent;
  color: #536a7b;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  cursor: pointer;
}

@media (max-width: 520px) {
  .menu-card {
    width: 70vw;
    padding: 30px 18px 20px;
    border-radius: 22px;
  }

  .menu-card a {
    padding: 15px 6px;
    font-size: clamp(21px, 6vw, 29px);
  }
}

/* Su schermi molto larghi il video rimane centrato; le zone cliccabili
   seguono comunque l'immagine perché il crop avviene simmetricamente. */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0.5;
  pointer-events: none;

  box-shadow:
    inset 0 28px 35px rgba(255, 255, 255, 0.65),
    inset 0 -28px 35px rgba(255, 255, 255, 0.65),
    inset 28px 0 35px rgba(255, 255, 255, 0.65),
    inset -28px 0 35px rgba(255, 255, 255, 0.65);
}

   .hero-ghirlanda {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  object-fit: fill;

  z-index: 1;

  pointer-events: none;
  user-select: none;
}