#video {
  position: relative;
  padding: 140px 0;
  display: flex;
  justify-content: center;
  overflow: visible;
}

#video .schermo {
  position: relative;
  width: min(840px, calc(100% - 48px));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 100px 11px rgba(97, 172, 178, .3), 0 0 15px 2px rgba(0, 0, 0, 1);
  transition: transform .5s var(--molla);
  cursor: var(--cursore-mano);
}

#video .schermo:hover {
  transform: translateY(-4px);
}

#video .schermo img.scena {
  width: 100%;
  height: auto;
}

#video .schermo:focus-visible {
  outline: 2px solid #EED8A9;
  outline-offset: 4px;
}

#video .schermo iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

#video .schermo.acceso img {
  display: none;
}

#video .schermo.acceso {
  cursor: var(--cursore);
}

#video .schermo.acceso:hover {
  transform: none;
}

#video .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: auto;
  filter: drop-shadow(0 4px 31px rgba(0, 0, 0, .9));
  transition: filter .3s ease;
  animation: battito 2.6s ease-in-out infinite;
}

#video .schermo:hover .play {
  filter: drop-shadow(0 4px 31px rgba(0, 0, 0, .9)) drop-shadow(0 0 20px rgba(255, 255, 255, .8)) brightness(1.2);
}

@keyframes battito {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.11);
  }
}

.guscio {
  position: relative;
  width: 100%;
}

.palco {
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: top center;
}

.palco > * {
  position: absolute;
}

#collezione {
  overflow: hidden;
}

#collection-backdrop {
  position: absolute;
  inset: -30px;
  z-index: 0;
  background: url(/web-assets/sito/bg-collezione.png) center no-repeat;
  pointer-events: none;
  will-change: transform;
}

#collezione .contenuto {
  position: relative;
  z-index: 1;
}

#collezione .intro {
  width: min(607px, calc(100% - 48px));
}

#collezione .intro .riga {
  margin: 26px auto;
}

.anatomia {
  margin-top: 44px;
}

.vivo .cartellino {
  opacity: 0;
  transform: translateY(12px);
}

.vivo .dentro-vista .cartellino {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s var(--molla);
}

.vivo .dentro-vista .c-potere {
  transition-delay: .30s;
}

.vivo .dentro-vista .c-tratti {
  transition-delay: .45s;
}

.vivo .dentro-vista .c-livello {
  transition-delay: .60s;
}

.vivo .dentro-vista .c-abilita {
  transition-delay: .75s;
}

.cartellino,
#tocco-detto {
  padding: 20px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  background: linear-gradient(-60.37deg, rgba(29, 38, 39, .5) 0%, rgba(84, 96, 98, .5) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  isolation: isolate;
}

.cartellino {
  z-index: 3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.cartellino::before,
#tocco-detto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: url('/web-assets/sito/trama-pannello.png') top left / 847px 809.5px repeat;
  mix-blend-mode: overlay;
  opacity: .4;
}

.cartellino h3 {
  font-family: 'Marcellus SC', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 43px;
  color: #E8D4A9;
  margin-bottom: 12px;
}

.cartellino p {
  font-size: 13px;
  line-height: 1.2;
  color: #9FB1B3;
}

.cartellino p + p {
  margin-top: 10px;
}

.cartellino b {
  color: #FFF;
  font-weight: 400;
}

.cartellino::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: url('/web-assets/sito/punta-cartellino.svg') center / 100% 100% no-repeat;
}

.cartellino.punta-dx {
  border-top-right-radius: 0;
}

.cartellino.punta-dx::after {
  right: -1.5px;
  top: -1.5px;
  transform: scaleX(-1);
}

.cartellino.punta-sx {
  border-top-left-radius: 0;
}

.cartellino.punta-sx::after {
  left: -1.5px;
  top: -1.5px;
}

.cartellino.punta-giu-sx {
  border-bottom-left-radius: 0;
}

.cartellino.punta-giu-sx::after {
  left: -1.5px;
  bottom: -1.5px;
  transform: scaleY(-1);
}

.cartellino.punta-giu-dx {
  border-bottom-right-radius: 0;
}

.cartellino.punta-giu-dx::after {
  right: -1.5px;
  bottom: -1.5px;
  transform: scale(-1);
}

.cartellino.c-potere {
  left: 21px;
  bottom: 327px;
  width: 488px;
}

.cartellino.c-livello {
  left: 775px;
  top: 180px;
  width: 488px;
}

.cartellino.c-abilita {
  left: 745px;
  top: 500px;
  width: 430px;
}

.cartellino.c-tratti {
  left: 130px;
  top: 410px;
  width: 378px;
}

.tratti-icone {
  float: left;
  width: 100%;
  margin-bottom: 12px;
}

.tratti-icone img {
  float: left;
  width: auto;
  height: 48px;
}

.tratti-icone img:first-child {
  padding-right: 8px;
}

.tratti-icone + p {
  float: left;
}

#mazzo .testo .occhiello {
  display: block;
  margin-top: 20px;
}

#mazzo .testo .fondo-bottone {
  margin-top: 44px;
}

#faq {
  overflow: hidden;
  overflow: clip visible;
}

#faq .carabosse-scene {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 907px;
  right: 0;
  bottom: 0;
}

#faq .carabosse {
  width: 100%;
  max-width: none;
  height: auto;
}

#faq .carabosse-glow {
  position: absolute;
  left: 42.5%;
  top: 40.4%;
  width: 66%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  mix-blend-mode: plus-lighter;
}

#faq .carabosse-glow::before,
#faq .carabosse-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

#faq .carabosse-glow::before {
  inset: 0;
  background: radial-gradient(circle closest-side, rgba(176, 255, 112, .5) 0%, rgba(132, 240, 82, .24) 38%, rgba(110, 230, 70, 0) 100%);
  animation: carabosse-glow 3.6s ease-in-out infinite alternate;
}

#faq .carabosse-glow::after {
  inset: 37%;
  background: radial-gradient(circle closest-side, rgba(244, 255, 208, .85) 0%, rgba(190, 255, 124, .42) 42%, rgba(150, 245, 90, 0) 100%);
  animation: carabosse-spark 1.7s ease-in-out infinite alternate;
}

@keyframes carabosse-glow {
  from {
    opacity: .3;
    transform: scale(.9);
  }

  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes carabosse-spark {
  from {
    opacity: .45;
    transform: scale(.82);
  }

  to {
    opacity: 1;
    transform: scale(1.18);
  }
}

#faq .contenuto {
  position: relative;
  z-index: 1;
}

#faq .lista {
  width: min(701px, calc(100% - 48px));
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.domanda {
  border: 1px solid var(--bordo);
  border-radius: 16px;
  background-image: linear-gradient(90deg, rgba(37, 32, 29, .53) 0%, rgba(87, 77, 72, 0) 100%), linear-gradient(90deg, rgba(24, 36, 38, .5) 0%, rgba(24, 36, 38, .5) 100%);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  overflow: hidden;
  transition: border-color .25s ease;
}

.domanda:hover {
  border-color: #6B7273;
}

.domanda > button {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: none;
  border: 0;
  cursor: var(--cursore-mano);
  font-family: 'Marcellus SC', Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  color: var(--oro-scritta);
  text-align: left;
}

.domanda .segno {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  position: relative;
  transition: transform .3s var(--molla);
}

.domanda .segno::before, .domanda .segno::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #E9D8B3;
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

.domanda .segno::before {
  width: 22px;
  height: 2px;
}

.domanda .segno::after {
  width: 2px;
  height: 22px;
  transition: opacity .3s ease, transform .3s ease;
}

.domanda.aperta .segno {
  transform: rotate(180deg);
}

.domanda.aperta .segno::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.domanda .risposta {
  overflow: hidden;
  height: 0;
  transition: height .35s var(--molla);
}

.domanda .risposta .dentro-r {
  padding: 0 20px 18px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--grigio);
  text-shadow: 0 0 4.1px #120B07;
}

.domanda .risposta p + p {
  margin-top: 10px;
}

footer {
  position: relative;
  background: #0D1415;
  padding: 40px 60px;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('/web-assets/sito/hextale-landing-page-desktop.png') top left / 1440px auto repeat;
  mix-blend-mode: overlay;
  opacity: .58;
  filter: grayscale(1);
}

footer .dentro {
  position: relative;
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer .logo-studio {
  flex: 0 0 auto;
  display: block;
  width: 149px;
  height: 88px;
  background: url('/loading-screen/BigFennel-logo-gold.png') center / contain no-repeat;
}

footer .legali {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

footer .legali a {
  font-size: 12px;
  line-height: 1.2;
  color: #568992;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color .18s ease;
}

footer .legali a:hover {
  color: #7FB3BC;
}

footer .social {
  display: flex;
  align-items: center;
  gap: 16px;
}

footer .social a {
  display: block;
  line-height: 0;
  transition: transform .18s var(--molla), filter .18s ease;
}

footer .social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

footer .social img {
  width: auto;
  height: auto;
  display: block;
}

.tocco {
  display: none;
  position: absolute;
  inset: 0;
}

.tocco b {
  position: absolute;
  cursor: var(--cursore-mano);
  background: center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.tocco b.acceso {
  opacity: .5;
}

.tocco b.potere {
  width: 22%;
  height: 13%;
  background-image: url('/web-assets/sito/hover-power.png');
}

.tocco b.potere-a {
  left: 39%;
  top: 14.7%;
}

.tocco b.potere-b {
  left: 73.1%;
  top: 49.1%;
}

.tocco b.potere-c {
  left: 4.9%;
  top: 49.1%;
}

.tocco b[data-che="tratti"] {
  left: 4.68%;
  top: 68.07%;
  width: 20.24%;
  height: 7%;
  background-image: url('/web-assets/sito/hover-trait.png');
}

.tocco b[data-che="livello"] {
  left: 67.73%;
  top: 67.3%;
  width: 27.59%;
  height: 8%;
  background-image: url('/web-assets/sito/hover-level.png');
}

.tocco b[data-che="abilita"] {
  left: 13.77%;
  top: 77.38%;
  width: 72.19%;
  height: 15.20%;
  background-image: url('/web-assets/sito/hover-abilitty.png');
}

#tocco-detto {
  display: none;
  margin: 26px auto 0;
  width: min(380px, 88vw);
  position: relative;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s var(--molla);
}

#tocco-detto.visto {
  opacity: 1;
  transform: none;
}

#tocco-detto h3 {
  font-family: 'Marcellus SC', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--oro-scritta);
  margin-bottom: 10px;
}

#tocco-detto p {
  font-size: 14px;
  line-height: 1.3;
  color: var(--grigio);
}

#tocco-detto p + p {
  margin-top: 8px;
}

#mazzo .riga-due,
#sfida .riga-due {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-content: center;
  align-content: start;
}

#mazzo .riga-due {
  grid-template-columns: 368px minmax(0, 620px);
  column-gap: 92px;
  justify-content: start;
}

#mazzo .titolo {
  grid-column: 2;
  justify-self: start;
  margin-left: 0;
  font-size: 32px;
}

#mazzo .duello-guscio {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

#mazzo .testo {
  grid-column: 2;
  text-align: left;
}

#mazzo .testo .riga {
  margin: 24px 0;
}

#sfida .riga-due {
  grid-template-columns: 508px minmax(0, 667px);
  column-gap: 40px;
}

#sfida .titolo {
  grid-column: 1;
}

#sfida .testo {
  grid-column: 1;
  align-self: center;
  text-align: center;
}

#sfida .testo .occhiello {
  color: #C4D2D4;
}

#sfida .testo .riga {
  margin: 40px auto;
}

#sfida .tavolo {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin-top: 40px;
}

#sfida .tavolo::before {
  content: '';
  position: absolute;
  inset: 12% 14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(97, 172, 178, .28), rgba(97, 172, 178, 0));
  filter: blur(20px);
}

@media (max-width: 980px) {
  .anatomia {
    height: auto !important;
  }

  .anatomia .palco {
    position: static;
    width: auto !important;
    height: auto !important;
    margin-left: 0 !important;
    transform: none !important;
  }

  .anatomia .cartellino {
    display: none;
  }

  .tocco {
    display: block;
  }

  #tocco-detto {
    display: block;
    margin-top: 102px;
  }

  .domanda > button {
    font-size: 20px;
    min-height: 60px;
    padding: 14px 16px;
  }

  .domanda .risposta .dentro-r {
    padding: 0 16px 16px;
    font-size: 15px;
  }

  #faq .carabosse-scene {
    width: 150%;
    left: auto;
    right: -40%;
    bottom: -40px;
    opacity: .5;
  }

  footer {
    padding: 40px 24px;
  }

  footer .dentro {
    flex-direction: column;
    gap: 40px;
  }

  footer .social {
    order: 2;
  }

  footer .legali {
    order: 3;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  footer .social a:nth-child(1) img {
    height: 32.68px;
  }

  footer .social a:nth-child(2) img {
    height: 28.07px;
  }

  footer .social a:nth-child(3) img {
    height: 28.4px;
  }

  footer .social a:nth-child(4) img {
    height: 28px;
  }

  #video {
    padding: 140px 0;
  }

  .sezione {
    padding-bottom: 140px;
  }

  #mazzo .riga-due,
  #sfida .riga-due {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #mazzo .titolo {
    margin-left: auto;
  }

  #mazzo .duello-guscio {
    margin: -30px auto 20px;
  }

  #mazzo .testo {
    text-align: center;
  }

  #mazzo .testo .riga {
    margin: 24px auto;
  }

  #sfida .tavolo {
    order: 1;
    width: min(760px, 150%);
    max-width: none;
    margin: -10px 0 20px;
  }

  #sfida .testo {
    order: 2;
  }
}
