/* ============================================================
   BorrominiFit — style.css
   Mobile-first, no external dependencies
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #1A1A1A;
  --black2:  #111111;
  --card-bg: #242424;
  --accent:  #F5A524;
  --accent-h:#D4891A;
  --green:   #16A34A;
  --alt-bg:  #F3F4F6;
  --text:    #1A1A1A;
  --muted:   #6B7280;
  --white:   #FFFFFF;
  --border:  #E5E7EB;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}
.btn--primary {
  background: var(--accent);
  color: var(--black);
}
.btn--primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn--full { width: 100%; }

/* ---------- Section base ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--alt-bg); }
.section--dark { background: var(--black); }

.section__title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--black);
}
.section__title--light { color: var(--white); }

.section__lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
}
.section__lead--light { color: #CBD5E1; }

/* ---------- Photo placeholder ---------- */
.photo-placeholder {
  background: #2A2A2A;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  min-height: 220px;
}
.photo-placeholder--wide { min-height: 200px; width: 100%; }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  background: var(--black);
  padding: 80px 0 72px;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero__label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__headline {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.hero__sub {
  font-size: 1.05rem;
  color: #CBD5E1;
  max-width: 540px;
}
.hero__trust {
  font-size: .875rem;
  color: #9CA3AF;
  margin-top: -4px;
}

/* ============================================================
   Video player
   ============================================================ */
.video-wrapper {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.coaches-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
}
.video-caption {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* ============================================================
   2. CHI SIAMO
   ============================================================ */
.coaches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.coach-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.section--alt .coach-card { background: var(--white); }

.coach-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 35%;
  border-radius: calc(var(--radius) - 4px);
}

.photo-placeholder {
  aspect-ratio: 1 / 1;
  min-height: unset;
}

.coach-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 16px 0 4px;
}
.coach-card__role {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.coach-card__bio {
  font-size: .95rem;
  color: #374151;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}

/* ============================================================
   3. COME FUNZIONA
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step__num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 52px;
}
.step__icon {
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}
.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step__desc { font-size: .95rem; color: #4B5563; }

/* ============================================================
   4. RISULTATI REALI
   ============================================================ */
.transformations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.transformation-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.transformation-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.transformation-card__body {
  padding: 20px;
}
.transformation-card__name {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.transformation-card__name strong { color: var(--black); }
.transformation-card__quote {
  font-size: .95rem;
  font-style: italic;
  color: #374151;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

/* ============================================================
   5. PER CHI È
   ============================================================ */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.fit-col__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

.fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fit-list li {
  padding-left: 32px;
  position: relative;
  font-size: .95rem;
  color: #374151;
}
.fit-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}
.fit-list--yes li::before { content: "✅"; }
.fit-list--no  li::before { content: "❌"; }

/* ============================================================
   6. FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  transition: background var(--transition);
}
.faq-item__question:hover { background: #FAFAFA; }
.faq-item__question[aria-expanded="true"] { color: var(--accent); }

.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
  background: var(--white);
}
.faq-item__answer.is-open {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-item__answer p { font-size: .95rem; color: #4B5563; line-height: 1.75; }

/* ============================================================
   7. FORM
   ============================================================ */
.qual-form {
  background: #242424;
  border-radius: var(--radius);
  padding: 32px 24px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field__label {
  font-size: .85rem;
  font-weight: 600;
  color: #CBD5E1;
  letter-spacing: .01em;
}
.form-field__input {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #3F3F3F;
  background: #1A1A1A;
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition);
}
.form-field__input::placeholder { color: #6B7280; }
.form-field__input:focus { border-color: var(--accent); }
.form-field__input.is-error { border-color: #EF4444; }

.form__note {
  font-size: .8rem;
  color: #6B7280;
  text-align: center;
  margin-top: -8px;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 48px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.form-success__icon { color: var(--green); margin-bottom: 16px; }
.form-success__title { font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.form-success__text { font-size: .95rem; color: #CBD5E1; margin-bottom: 8px; }
.form-success__text a { color: var(--accent); text-decoration: underline; }

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer {
  background: var(--black2);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.footer__logo span { color: var(--accent); }
.footer__legal { font-size: .8rem; color: #6B7280; }
.footer__links, .footer__social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__link {
  font-size: .8rem;
  color: #9CA3AF;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--accent); }

.footer__disclaimer {
  font-size: .72rem;
  color: #4B5563;
  max-width: 520px;
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   Sticky CTA — mobile only
   ============================================================ */
.sticky-cta {
  display: none;
}

@media (max-width: 639px) {
  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px 20px;
    background: rgba(17, 17, 17, .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #2A2A2A;
    z-index: 100;
    transform: translateY(100%);
    transition: transform .35s ease;
  }
  .sticky-cta.is-visible {
    transform: translateY(0);
  }
  /* Extra padding on body so footer isn't hidden behind the bar */
  body { padding-bottom: 80px; }
}

/* ============================================================
   Scroll-reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive — tablet / desktop
   ============================================================ */
@media (min-width: 640px) {
  .section { padding: 80px 0; }

  .coaches { grid-template-columns: 1fr 1fr; }
  .transformations { grid-template-columns: 1fr 1fr 1fr; }

  .fit-grid { grid-template-columns: 1fr 1fr; }

  .qual-form { padding: 40px 40px; }
}

@media (min-width: 1024px) {
  .hero { padding: 100px 0 96px; }
  .hero__headline { font-size: 3.4rem; }

  .steps {
    flex-direction: row;
    gap: 0;
  }
  .step {
    flex-direction: column;
    flex: 1;
    padding: 0 32px;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .step:last-child { border-right: none; }
  .step__num { font-size: 3rem; }
}
