/*
  AquaticMC
  Copyright (C) 2026 AquaticMC - Tutti i diritti riservati
  Sito ufficiale: https://aquaticmc.it
  E' vietata la riproduzione o la copia non autorizzata di questo sito o di sue parti.
*/
:root {
  --colore-principale: #70eeff;
  --colore-principale-scuro: #005c99;
  --sfondo-scuro: #0c0c0c;
  --sfondo-scuro-2: #1a1a1a;
  --sfondo-card: #181818;
  --testo-chiaro: #ffffff;
  --testo-scuro: #1a1a1a;
  --testo-grigio: #b5b5b5;
}

.main-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.view { display: none; }
.view-active { display: block; }

.page-title {
  color: var(--testo-chiaro);
  font-size: 28px;
  font-weight: 800;
  margin: 40px 0 10px;
  text-align: center;
}

.page-subtitle {
  text-align: center;
  color: var(--testo-grigio);
  font-size: 16px;
  margin-bottom: 30px;
}

.requisiti-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(112, 238, 255, 0.06);
  border: 1px solid rgba(112, 238, 255, 0.15);
  border-left: 4px solid var(--colore-principale);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.requisiti-icona {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--colore-principale);
  color: var(--testo-scuro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 2px;
}

.requisiti-testo {
  color: var(--testo-grigio);
  font-size: 14px;
  line-height: 1.6;
}

.requisiti-testo strong {
  color: var(--colore-principale);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(112, 238, 255, 0.3);
  background: rgba(12, 12, 12, 0.8);
  color: var(--colore-principale);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.carousel-arrow:hover {
  background: var(--colore-principale);
  color: var(--testo-scuro);
  border-color: var(--colore-principale);
  transform: scale(1.1);
}

.carousel-arrow.nascosto {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 30px 36px;
  box-sizing: border-box;
}

.carousel-skin-wrap {
  width: 160px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.carousel-skin {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.carousel-role-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--colore-principale);
  margin-bottom: 24px;
  text-align: center;
}

.carousel-candidati-btn {
  background: var(--colore-principale);
  color: var(--testo-scuro);
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 22px rgba(112, 238, 255, 0.3);
}

.carousel-candidati-btn:hover {
  background: var(--colore-principale-scuro);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(112, 238, 255, 0.45);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}

.carousel-dot.attivo {
  background: var(--colore-principale);
  transform: scale(1.2);
}



.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(112, 238, 255, 0.06);
  border: 1px solid rgba(112, 238, 255, 0.2);
  color: var(--colore-principale);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.back-btn:hover {
  background: rgba(112, 238, 255, 0.14);
  border-color: var(--colore-principale);
  transform: translateX(-3px);
}



#formView {
  position: relative;
}

.peek-wrap {
  position: absolute;
  right: -50px;
  top: 0;
  z-index: 3;
  pointer-events: auto;
}

.peek-body {
  width: 120px;
  height: auto;
  image-rendering: pixelated;
  transform: scaleX(-1) rotate(-6deg);
  opacity: 0.45;
  transition: opacity 0.4s ease, transform 0.5s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  display: block;
}

.peek-body:hover {
  opacity: 0.9;
  transform: scaleX(-1) rotate(-4deg) scale(1.06);
}

.peek-speech {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f0f0f;
  border: 2px solid var(--colore-principale);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--colore-principale);
  white-space: nowrap;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  z-index: 5;
}

.peek-speech i {
  font-size: 0.9rem;
  color: #ffde90;
  margin-left: 4px;
}

.peek-speech::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  margin-left: 20px;
  width: 26px;
  height: 26px;
  background: #0f0f0f;
  border-right: 2px solid var(--colore-principale);
  border-bottom: 2px solid var(--colore-principale);
  transform: rotate(45deg);
  border-radius: 0 0 6px 0;
}

.panel {
  position: relative;
  z-index: 2;
  background: var(--sfondo-card);
  border: 1px solid rgba(112, 238, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.panel-header {
  background: linear-gradient(135deg, rgba(112, 238, 255, 0.08), transparent);
  border-bottom: 1px solid rgba(112, 238, 255, 0.08);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(112, 238, 255, 0.1);
  color: var(--colore-principale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.panel-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--colore-principale);
}

.panel-body {
  padding: 32px 36px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  background: rgba(12, 12, 12, 0.4);
  border: 1px solid rgba(112, 238, 255, 0.06);
  border-left: 3px solid rgba(112, 238, 255, 0.2);
  border-radius: 10px;
  padding: 16px 22px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field:focus-within {
  border-color: rgba(112, 238, 255, 0.25);
  border-left-color: var(--colore-principale);
  background: rgba(12, 12, 12, 0.6);
  box-shadow: 0 0 0 1px rgba(112, 238, 255, 0.05);
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--testo-chiaro);
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.field-label i {
  color: var(--colore-principale);
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(112, 238, 255, 0.1);
  color: var(--colore-principale);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.field-label::before {
  content: "";
  display: none;
}

.field-input {
  width: 100%;
  resize: vertical;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--testo-chiaro);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.93rem;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  line-height: 1.5;
}

.field-input:focus {
  outline: none;
  border-color: rgba(112, 238, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2370eeff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

.field-select option {
  background: #1a1a1a;
  color: var(--testo-chiaro);
}

.field-input::placeholder {
  color: rgba(181, 181, 181, 0.25);
  font-style: italic;
  font-size: 0.85rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.q-counter {
  font-size: 0.8rem;
  color: var(--testo-grigio);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--colore-principale);
  color: var(--testo-scuro);
  border: none;
  border-radius: 10px;
  padding: 16px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(112, 238, 255, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  margin-top: 8px;
}

.submit:hover {
  background: var(--colore-principale-scuro);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(112, 238, 255, 0.3);
}

.submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(112, 238, 255, 0.15);
}

.status-msg {
  margin-top: 16px;
  font-weight: 700;
  min-height: 1.4em;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-msg.ok {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.06);
  border-color: rgba(74, 222, 128, 0.15);
}

@media (max-width: 700px) {
  .carousel-wrapper {
    gap: 10px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .carousel-slide {
    padding: 28px 20px 28px;
  }

  .carousel-skin-wrap {
    width: 130px;
    height: 200px;
  }

  .carousel-role-name {
    font-size: 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .requisiti-banner {
    flex-direction: column;
    gap: 10px;
  }

  .panel-header {
    padding: 20px 22px;
  }
  .panel-body {
    padding: 22px;
  }
  .field {
    padding: 14px 16px;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .q-counter {
    text-align: center;
  }
  .submit {
    padding: 14px 24px;
    font-size: 0.88rem;
  }
  .peek-wrap {
    display: none;
  }
}

@media (max-width: 480px) {
  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .carousel-skin-wrap {
    width: 110px;
    height: 170px;
  }

  .carousel-role-name {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .carousel-candidati-btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  .carousel-slide {
    padding: 20px 14px 24px;
  }
}
