/* 
  Growing People - Custom Stylesheet
  Design System: Premium, Professional, Bold
*/

/* GLOBAL STYLES */
:root {
  --primary-deep: #4b4494;
  --primary-soft: #9595c4;
  --secondary-bg: #d1d1e8;
  --secondary: #eded2e;
  --white: #ffffff;
  --dark: #1d1d1b;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --section-spacing: 120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-transform: none !important; /* Force removal of uppercase */
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

section {
  padding: var(--section-spacing) 0;
}

.section-title {
  font-size: 3rem; /* md:text-5xl */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.section-body {
  font-size: 1.25rem; /* text-xl */
  line-height: 1.7;
  color: #4b5563; /* slate-600 */
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2.25rem; /* text-4xl */
  }
}

/* HERO PILL */
.hero-pill {
  display: inline-block;
  background-color: var(--secondary);
  color: #4b4494;
  padding: 8px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(75, 68, 148, 0.8) 0%,
    rgba(75, 68, 148, 0.4) 40%,
    rgba(75, 68, 148, 0.1) 70%,
    rgba(75, 68, 148, 0) 100%
  );
}


/* ICON CIRCLE */
.icon-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: rgba(149, 149, 196, 0.2); /* primary-soft with opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  transition: transform 0.1s ease-out;
}

/* NAVBAR */

nav {
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 1rem 0;
}

/* SECTION 1 */

.hero-pill-outline {
  background-color: transparent;
  color: var(--primary-deep);
  border: 1px solid var(--primary-deep);
}

.image-parallax-box {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.parallax-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translateY(-10%);
  will-change: transform;
}

.glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 75%;
  padding: 28px 32px;

  border-radius: 0 24px 24px 24px;

  /* effetto vetro */
  background: rgba(75, 68, 148, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: white;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);

  z-index: 3;
}

/* testo */
.glass-overlay p {
  font-size: 16px;
  line-height: 1.6;
}

.image-focus-wrapper {
  position: relative;
  width: 100%;
}

/* resta il crop solo sull'immagine */
.image-parallax-box {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.parallax-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translateY(-10%);
  will-change: transform;
}

/* box completo, fuori dal crop immagine */
.glass-overlay {
  position: absolute;
  left: -40px;
  bottom: -55px;

  width: 72%;
  max-width: 520px;

  padding: 36px 40px;
  border-radius: 28px;

  background: rgba(149, 149, 196, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);

  z-index: 5;
}

.glass-overlay p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}

/* SECTION 2 */

.hero-pill-outline-2 {
  background-color: transparent;
  color: #eded2e;
  border: 1px solid #eded2e;
}

#sfide {
  background: linear-gradient(
    135deg,
    var(--primary-deep) 0%,
    #2f3071 100%
  );
}

/* COSA VEDRAI CARDS */

.hero-pill-outline-3 {
  background-color: transparent;
  color: #4b4494;
  border: 1px solid #4b4494;
}

.reveal-stagger > div {
  transition: var(--transition);
}

.reveal-stagger > div:hover {
  transform: translateY(-8px);
  border-color: var(--primary-soft);
}

.section-title {
  color: #4b4494;
}

.event-timeline {
  position: relative;
}

.event-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: rgba(75, 68, 148, 0.25);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  gap: 36px;
  margin-bottom: 90px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-media {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(29, 29, 27, 0.12);
}

.timeline-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.timeline-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-deep);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  z-index: 2;
}

.timeline-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.timeline-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4b5563;
}

/* Responsive */


@media (max-width: 768px) {
  .event-timeline::before {
    left: 17px;
  }

  .timeline-item,
  .timeline-item-reverse {
    grid-template-columns: 34px 1fr;
    gap: 24px;
    margin-bottom: 70px;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-media,
  .timeline-content {
    grid-column: 2;
  }

  .timeline-media {
    grid-row: 1;
  }

  .timeline-content {
    grid-row: 2;
  }

  .timeline-media img {
    height: 240px;
  }

  .timeline-content h3 {
    font-size: 1.5rem;
  }
}

/*  */

.asset-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-deep) 0%,
    #2f3071 100%
  );
}

/* FOOTER */
footer {
  background-color: var(--primary-deep);
  color: white;
  padding: 80px 0 40px;
}


/* MOBILE MENU */
#mobile-menu {
  transition: var(--transition);
  transform: translateX(100%);
}

#mobile-menu.open {
  transform: translateX(0);
}

/* FORM */

.event-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* testo più stretto, form più largo */
  gap: 40px;

  background: #f8f8fc;
  border: 2px solid rgba(75, 68, 148, 0.2);
  border-radius: 32px;
  padding: 32px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  position: relative;
}

/* linea verticale */
.event-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 33.33%; /* punto tra 1/3 e 2/3 */
  transform: translateY(-50%);

  height: 100%;
  width: 1px;

  background: rgba(255,255,255,0.25);
}

.event-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 20px;
}

.event-content h2 {
  font-size: 40px;
  font-weight: 800;
  color: #4b4494;
  margin-bottom: 16px;
  justify-content: flex-start;
  align-items: flex-start;
}

.event-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #5b6472;
  justify-content: flex-start;
  align-items: flex-start;
}

/* FORM */

.event-box {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, #4b4494 0%, #5f58b5 50%, #6c63d9 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(75, 68, 148, 0.25);
}

.event-box::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.event-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  padding-top: 20px;
  max-width: 420px;
  color: white;
}

.event-content h2 {
  color: white;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
}

.event-content p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  line-height: 1.6;
}

.event-form {
  position: relative;
  z-index: 2;

  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.event-form iframe {
  width: 100%;
  height: 980px;
  border: none;
  display: block;
}

@media (max-width: 1024px) {
  .event-box {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .event-content {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .event-form iframe {
    height: 800px;
  }
}

@media (max-width: 1024px) {
  .event-box::before {
    display: none;
  }
}

/* Thank you page */

.thankyou-card {
  width: 100%;
  max-width: 720px;
  padding: 48px;
  border-radius: 36px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.08)
  );

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);

  text-align: center;
  color: white;
}

/* Icon */
.thankyou-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #eded2e;
  color: #4b4494;

  font-size: 38px;
  font-weight: 900;

  box-shadow: 0 14px 40px rgba(237,237,46,0.35);
}

/* Eyebrow */
.thankyou-eyebrow {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
}

/* Title */
.thankyou-card h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
}

/* Intro */
.thankyou-intro {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}

/* Details */
.thankyou-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.thankyou-details div {
  padding: 18px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}

.thankyou-details span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.58);
}

.thankyou-details strong {
  font-size: 15px;
  color: white;
}

/* Buttons */
.thankyou-actions {
  display: flex;
  gap: 16px;
}

.thankyou-btn {
  flex: 1;
  padding: 18px 22px;
  border-radius: 18px;
  font-weight: 800;
  text-align: center;
  transition: transform .2s ease;
}

.thankyou-btn:hover {
  transform: translateY(-2px);
}

.thankyou-btn-primary {
  background: white;
  color: #4b4494;
}

.thankyou-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.22);
}

/* Responsive */
@media (max-width: 768px) {
  .thankyou-card {
    padding: 34px 24px;
  }

  .thankyou-card h1 {
    font-size: 32px;
  }

  .thankyou-details {
    grid-template-columns: 1fr;
  }

  .thankyou-actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 350px !important;
    padding-bottom: 60px !important;
    align-items: flex-start !important;
  }

  .hero-section .hero-content {
    padding-top: 20px;
  }

  .hero-section .container {
    padding-top: 50 !important;
  }

}