/* ── Reset & base ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Host Grotesk", sans-serif;
  background-color: #e8e8e8;
}

/* ── Header ───────────────────────────────────────── */
#header {
  background-color: #706f6e;
  padding: 35px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  border-width: 0 0 2px 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 1);
}

.brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.brand .logo {
  max-width: 340px;
  height: auto;
}

.brand span.chevron {
  color: #3be06b;
}

.brand span.cursor {
  color: #3b82f6;
}

/* ── Main split ───────────────────────────────────── */
#main {
  flex: 1;
  display: flex;
  flex-direction: row;
}

/* Left — Store */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-store {
  flex: 0 0 50%;
  width: 50%;
  background: #02f92e;
  background: linear-gradient(
    90deg,
    rgba(2, 249, 46, 1) 0%,
    rgba(9, 208, 83, 1) 50%,
    rgba(20, 162, 122, 1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 48px 52px;
  color: #fff;
}

/* Right — Network */
.panel-network {
  flex: 0 0 50%;
  width: 50%;
  background: #17a37a;
  background: linear-gradient(
    90deg,
    rgba(23, 163, 122, 1) 0%,
    rgba(32, 120, 161, 1) 50%,
    rgba(43, 78, 197, 1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 48px 52px;
  color: #fff;
  border-width: 0 2px 0 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 1);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

.panel-logo {
  max-width: 70%;
  height: auto;
  margin-bottom: 24px;
  animation: float 3.5s ease-in-out infinite;
}

.panel-logo:hover {
  animation-play-state: paused;
}

/* ── Entrata staggered contenuto panel ─────────────── */
.panel-store > *,
.panel-network > * {
  animation: fade-up 0.7s ease both;
}

.panel-store > *:nth-child(1),
.panel-network > *:nth-child(1) {
  animation-delay: 0.1s;
}

.panel-store > *:nth-child(2),
.panel-network > *:nth-child(2) {
  animation-delay: 0.35s;
}

.panel-store > *:nth-child(3),
.panel-network > *:nth-child(3) {
  animation-delay: 0.55s;
}

.panel-store > *:nth-child(4),
.panel-network > *:nth-child(4) {
  animation-delay: 0.75s;
}

/* panel-logo: fade-up in entrata + float continuo dopo */
.panel-store > .panel-logo,
.panel-network > .panel-logo {
  animation:
    fade-up 0.7s 0.1s ease both,
    float 3.5s 0.8s ease-in-out infinite;
}

.panel-store > .panel-logo:hover,
.panel-network > .panel-logo:hover {
  animation-play-state: paused, paused;
}

@media (prefers-reduced-motion: reduce) {
  .panel-store > *,
  .panel-network > * {
    animation: none;
  }
  .panel-logo {
    animation: none;
  }
  .panel-logo:hover {
    transform: none;
  }
}

.panel-store,
.panel-network {
  --panel-content-width: 70%;
}

.panel-desc {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.6;
  width: var(--panel-content-width);
  margin-bottom: 20px;
  opacity: 0.9;
  text-align: left;
}

.panel-divider {
  border: none;
  border-top: 1px solid #fff;
  opacity: 1;
  margin: 0 0 20px 0;
  width: var(--panel-content-width);
}

.panel-links {
  display: flex;
  justify-content: space-between;
  width: var(--panel-content-width);
}

.panel-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.panel-link:hover {
  opacity: 0.7;
  color: #fff;
}

/* ── Footer loading bar ───────────────────────────── */
#footer-loading {
  background-color: #189cd8;
  padding: 28px 40px;
  text-align: center;
  border-width: 2px 0 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 1);
}

.loading-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.progress-wrapper {
  max-width: 30%;
  margin: 0 auto;
}

.progress {
  height: 24px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: visible;
  margin: 0;
  position: relative;
}

.progress-bar {
  background-color: rgba(255, 255, 255, 0.6);
  width: 0%;
  height: 100%;
  border-radius: 4px 0 0 4px;
  min-width: 6px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(6px, -50%);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
  transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Footer bottom ────────────────────────────────── */
#footer-bottom {
  border-width: 2px 0 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 1);
  background-color: #706f6e;
  padding: 20px 24px;
  font-size: 0.86rem;
  color: #ffffff;
}

#footer-bottom .row {
  align-items: flex-start !important;
}

#footer-bottom a {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

#footer-bottom a:hover {
  color: #fff;
}

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

.social-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.social-dot:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────── */
/* lg e inferiore: padding ridotto */
@media (max-width: 991.98px) {
  .panel-store,
  .panel-network {
    padding: 24px 24px;
  }
}

/* md e inferiore */
@media (max-width: 767.98px) {
  #main {
    flex-direction: column;
  }

  .panel-store,
  .panel-network {
    padding: 32px 28px;
    justify-content: flex-end;
    min-height: 50vh;
    width: 100%;
  }

  .panel-logo {
    max-width: 80%;
  }

  .panel-store,
  .panel-network {
    --panel-content-width: 80%;
  }

  .panel-links {
    flex-direction: column;
    gap: 10px;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .panel-store {
    width: 100%;
    border-width: 0;
  }

  .panel-desc {
    font-size: 1.15rem;
  }

  .brand .logo {
    max-width: 240px;
    height: auto;
  }
}

@keyframes gradient-move {
  0% {
    background-position: 30% 50%;
  }
  50% {
    background-position: 90% 50%;
  }
  100% {
    background-position: 30% 50%;
  }
}

/* Desktop: gradiente unico su entrambi i panel affiancati, animato */
@media (min-width: 768px) {
  #main {
    background: linear-gradient(
      90deg,
      rgba(43, 78, 197, 1) 0%,
      rgba(32, 120, 161, 1) 25%,
      rgba(20, 162, 122, 1) 50%,
      rgba(9, 208, 83, 1) 75%,
      rgba(2, 249, 46, 1) 100%
    );
    background-size: 200% 200%;
    animation: gradient-move 6s ease infinite;
  }

  .panel-store,
  .panel-network {
    background: transparent;
  }
}

/* sm e inferiore */
@media (max-width: 575.98px) {
  .panel-store,
  .panel-network {
    padding: 32px 28px;
  }

  .panel-logo {
    max-width: 80%;
  }

  .panel-desc {
    font-size: 1.1rem !important;
  }

  .progress-wrapper {
    max-width: 80%;
  }
}
