/**
 * Galileo Visual Engine — Hero fullscreen
 */

.galileo-hero-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.galileo-hero-theme-light,
.galileo-hero-theme-white { background: #ffffff; }
.galileo-hero-theme-dark { background: #050505; }

.galileo-hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.galileo-hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galileo-hero-welcome-section {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  pointer-events: none;
}

/* Initial states for GSAP intro */
.galileo-hero-logo-wrap,
.galileo-line-1-wrapper,
.galileo-line-2-wrapper,
.galileo-hero-description,
.galileo-hero-cta {
  opacity: 0;
}

.galileo-hero-logo-wrap {
  margin-bottom: 2rem;
}

.galileo-hero-logo {
  display: block;
  max-height: 80px;
  width: auto;
  height: auto;
  transition: max-height 0.3s ease;
}

.galileo-hero-headline-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.galileo-hero-headline {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.galileo-hero-theme-light .galileo-hero-headline,
.galileo-hero-theme-white .galileo-hero-headline { color: #202124; }

.galileo-line-1-wrapper,
.galileo-line-2-wrapper {
  display: block;
  min-height: 1.2em;
}

.galileo-hero-dynamic-word {
  display: inline;
}

.galileo-hero-cursor {
  display: inline-block;
  width: 2px;
  height: 0.8em;
  background: currentColor;
  margin-left: 4px;
  vertical-align: middle;
  animation: galileo-blink 1s step-end infinite;
}

@keyframes galileo-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.galileo-hero-description {
  max-width: 600px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.galileo-hero-theme-light .galileo-hero-description,
.galileo-hero-theme-white .galileo-hero-description { color: rgba(0, 0, 0, 0.7); }

.galileo-hero-cta {
  pointer-events: auto;
}

/* ---- NUOVO PULSANTE GLASS MODERNO (Refined) ---- */

@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

.galileo-hero-btn {
  all: unset !important;
  cursor: pointer !important;
  position: relative !important;
  display: inline-block !important;
  border-radius: 100px !important;
  z-index: 30 !important;
  outline: none !important;
  background: #1AA47B !important;
  box-shadow: none !important;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1) !important;
  overflow: hidden !important;
  border: none !important;
}

.galileo-hero-btn-text {
  position: relative !important;
  display: block !important;
  padding: 1rem 3rem !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 2 !important;
}

.galileo-hero-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  background: #178f6a !important;
  box-shadow: none !important;
}

.galileo-hero-btn:active {
  transform: translateY(-1px) scale(0.98) !important;
}

.galileo-hero-btn::after {
  content: none !important;
}

.button-shine {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(var(--angle-2),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%) !important;
  background-size: 200% 200% !important;
  background-position: 0% 50% !important;
  pointer-events: none !important;
  transition: background-position 0.6s ease !important;
  z-index: 1 !important;
}

.galileo-hero-btn:hover .button-shine {
  background-position: 100% 50% !important;
}
