/* ---------- Font: Gotham ---------- */
@font-face {
  font-family: 'Gotham';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Light/Gotham Light.otf') format('opentype');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Book/Gotham Book.otf') format('opentype');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Medium/Gotham Medium.otf') format('opentype');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Bold/Gotham Bold.otf') format('opentype');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('/font/Gotham/Gotham Black/Gotham Black.otf') format('opentype');
}

/* ---------- Palette ---------- */
:root {
  /* Palette */
  --white-color: #ffffff;
  --purple-color: #820ae8;
  --light-color: #f4f4f4;
  --grey-color: #545454;
  --dark-color: #242424;

  --whatsapp-color: #25d366;

  /* Fluid spacing scale */
  --space-3xs: clamp(0.375rem, 0.32rem + 0.25vw, 0.625rem);
  --space-2xs: clamp(0.625rem, 0.5rem + 0.5vw, 1rem);
  --space-xs:  clamp(0.875rem, 0.7rem + 0.75vw, 1.375rem);
  --space-sm:  clamp(1.25rem, 1rem + 1vw, 1.875rem);
  --space-md:  clamp(1.75rem, 1.3rem + 1.75vw, 2.75rem);
  --space-lg:  clamp(2.5rem, 1.8rem + 2.75vw, 4.25rem);
  --space-xl:  clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* Fluid type scale */
  --fs-body:    clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
  --fs-lead:    clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  --fs-h3:      clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  --fs-h1:      clamp(3rem, 1.8rem + 6vw, 5.75rem);
  --fs-step-num: clamp(3.25rem, 2rem + 6vw, 6rem);
  --fs-btn:     clamp(0.95rem, 0.88rem + 0.3vw, 1.15rem);

  --content-width: min(88%, 40rem);
  --wide-width: min(92%, 72rem);

  --radius-card: clamp(1rem, 0.8rem + 0.5vw, 1.5rem);
  --radius-panel: clamp(1.25rem, 1rem + 0.75vw, 2rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--white-color);
  background: var(--dark-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 2.75rem; /* spazio per la barra fissa "Powered by" */
}

img {
  max-width: 100%;
  display: block;
}

p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: var(--fs-btn);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn__icon {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
}

.btn--outline {
  background: var(--white-color);
  color: var(--purple-color);
  border-color: var(--purple-color);
}

.btn--solid {
  background: var(--purple-color);
  color: var(--white-color);
}

/* ---------- Sections generiche ---------- */
.section {
  padding-block: var(--space-xl);
}

.section--dark {
  background: var(--dark-color);
  color: var(--white-color);
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 900;
  text-align: center;
  width: var(--content-width);
  margin: 0 auto var(--space-lg);
  line-height: 1.15;
}

.section__title .accent {
  color: var(--purple-color);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  background: var(--dark-color);
  overflow: hidden;
}

.hero__logo {
  display: block;
  width: clamp(9.5rem, 8rem + 6vw, 15rem);
  margin-inline: auto;
  padding-block: var(--space-md) var(--space-sm);
}

.hero__photo-mobile {
  width: 100%;
  aspect-ratio: 1080 / 620;
  object-fit: cover;
}

.hero__body {
  width: var(--content-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: var(--space-lg) var(--space-lg);
}

.hero__lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  margin-bottom: var(--space-2xs);
}

.hero__lead strong {
  font-weight: 700;
}

.hero__pill {
  display: inline-block;
  background: var(--purple-color);
  color: var(--white-color);
  font-weight: 700;
  padding: 0.15em 0.55em;
  border-radius: 0.3em;
}

.hero__lead u {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 0.95;
  margin-top: var(--space-md);
  letter-spacing: -0.01em;
}

.hero__subtitle {
  background: var(--purple-color);
  font-size: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  font-weight: 700;
  padding: 0.1em 0.4em;
  margin-top: 0.15em;
}

.hero__cta {
  margin-top: var(--space-lg);
}

.hero__shapes {
  display: none;
}

.hero__photo-desktop-wrap {
  display: none;
}

/* Desktop hero: layout dedicato oltre il breakpoint */
@media (min-width: 1024px) {
  .hero__photo-mobile {
    display: none;
  }

  .hero__inner {
    position: relative;
    width: var(--wide-width);
    margin-inline: auto;
    min-height: 42rem;
    display: grid;
    align-items: center;
  }

  .hero__logo {
    position: absolute;
    top: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    width: clamp(11rem, 8rem + 5vw, 14rem);
    z-index: 3;
  }

  .hero__body {
    position: relative;
    z-index: 3;
    width: min(92%, 62rem);
    padding-block: 0;
    padding-top: clamp(6rem, 4rem + 4vw, 8rem);
    padding-bottom: var(--space-xl);
  }

  .hero__lead + .hero__lead {
    font-weight: 700;
    font-size: calc(var(--fs-lead) * 1.2);
  }

  .hero__title {
    font-size: clamp(4rem, 2rem + 7vw, 7.5rem);
  }

  .hero__subtitle {
    font-size: clamp(2.25rem, 1rem + 4.5vw, 4rem);
  }

  .hero__cta {
    margin-top: var(--space-lg);
  }

  .hero__shapes {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .hero__shape-triangle {
    position: absolute;
    inset: 0;
    background: var(--purple-color);
    clip-path: polygon(91% 0, 100% 0, 100% 100%, 69% 100%);
  }

  .hero__shape-white {
    position: absolute;
    top: -3%;
    left: -4%;
    width: 9%;
    aspect-ratio: 1;
    background: var(--white-color);
    clip-path: polygon(35% 0%, 100% 0%, 65% 100%, 0% 100%);
  }

  .hero__shape-chevron {
    position: absolute;
    top: 8%;
    left: 4%;
    width: 14%;
  }

  .hero__photo-desktop-wrap {
    display: block;
    position: absolute;
    top: 16%;
    right: 4.5%;
    width: 20%;
    z-index: 2;
    transform: rotate(6deg);
  }

  .hero__photo-desktop {
    width: 100%;
    border-radius: var(--radius-card);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45);
  }
}

/* =====================================================
   INTRO + VIDEO
   ===================================================== */
.intro {
  background: var(--light-color);
  padding-block: var(--space-lg);
}

.intro__card {
  width: var(--content-width);
  margin-inline: auto;
  background: var(--grey-color);
  border-radius: var(--radius-panel);
  padding: var(--space-lg) var(--space-md);
  color: var(--white-color);
}

.intro__text {
  font-size: var(--fs-body);
  line-height: 1.6;
}

.intro__video-label {
  display: inline-block;
  background: var(--purple-color);
  color: var(--white-color);
  font-weight: 700;
  font-size: var(--fs-body);
  padding: 0.7em 1.1em;
  border-radius: 0.5em;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.intro__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
}

.intro__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================
   PAIN POINTS ("ti capiamo quando")
   ===================================================== */
.pain-points {
  background: var(--dark-color);
}

.pain-points__list {
  width: var(--content-width);
  margin-inline: auto;
  display: grid;
  gap: var(--space-sm);
}

.pain-points__item {
  background: var(--grey-color);
  border-radius: var(--radius-card);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-body);
  text-align: center;
  align-content: center;
  line-height: 1.5;
}

.pain-points__item strong {
  font-weight: 700;
}

@media (min-width: 700px) {
  .pain-points__list {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
   PROTOCOLLO 4 FASI
   ===================================================== */
.protocol {
  background: var(--light-color);
  color: var(--dark-color);
}

.protocol .section__title {
  color: var(--dark-color);
}

.protocol__list {
  width: var(--content-width);
  margin-inline: auto;
  display: grid;
  gap: var(--space-md);
}

.protocol__step {
  background: var(--grey-color);
  border-radius: var(--radius-panel);
  padding: var(--space-sm);
  color: var(--white-color);
}

.protocol__step-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--purple-color);
  border-radius: var(--radius-card);
  padding: var(--space-2xs) var(--space-sm);
}

@media (min-width: 1024px) {
  .protocol__step-header {
    justify-content: center;
  }
}

.protocol__step-number {
  font-size: var(--fs-step-num);
  font-weight: 900;
  line-height: 1;
}

.protocol__step-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.protocol__step-text {
  font-size: var(--fs-body);
  text-align: center;
  line-height: 1.6;
  padding: var(--space-sm) var(--space-xs) var(--space-2xs);
}

/* =====================================================
   NON FA PER TE / FA PER TE + CTA finale
   ===================================================== */
.fit {
  background: var(--dark-color);
}

.fit__panel {
  width: var(--content-width);
  margin-inline: auto;
  background: var(--dark-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.fit__block {
  padding: var(--space-lg) var(--space-md);
}

.fit__block + .fit__block {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fit__heading {
  font-size: var(--fs-h2);
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.fit__heading .accent {
  color: var(--purple-color);
}

.fit__list {
  display: grid;
  gap: var(--space-sm);
}

.fit__item {
  background: var(--grey-color);
  border-radius: var(--radius-card);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-body);
  text-align: center;
  align-content: center;
  line-height: 1.5;
}

.fit__item strong {
  font-weight: 700;
}

.fit__cta {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.fit__cta-text {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

/* =====================================================
   FAQ
   ===================================================== */
.faq {
  background: var(--light-color);
  color: var(--dark-color);
}

.faq__list {
  width: var(--content-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.faq__item {
  background: var(--white-color);
  border-radius: var(--radius-card);
  padding: var(--space-xs) var(--space-sm);
  box-shadow: 0 0.25rem 1rem rgba(36, 36, 36, 0.06);
}

.faq__question {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--fs-body);
  padding-block: var(--space-3xs);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex-shrink: 0;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--purple-color);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--grey-color);
  padding-top: var(--space-xs);
  padding-bottom: var(--space-3xs);
}
