/* ===============================
   LEZIONI — π-factor V6
   css/pages/lezioni.css
   =============================== */

.page-lezioni {
  background: #fff;
  background-image: none;
}

#lezioni-page {
  overflow: hidden;
}

#lezioni-page .section {
  padding-top: 5.2rem;
  padding-bottom: 5.2rem;
}

/* =========================================================
   HERO — PERSONALIZZAZIONI LEZIONI
   Dimensioni, tipografia, CTA e benefit:
   identiche alla Home e gestite da 08-hero.css
   ========================================================= */

.page-lezioni .site-hero {
  --hero-fit: contain;
  --hero-position: right center;
  --hero-mobile-position: 67% center;
}

.page-lezioni .site-hero-background {
  background: #fff;
}

/* =========================================================
   INTRO GENERICO
   ========================================================= */

.lez-section-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.lez-section-intro h2 {
  margin: .8rem 0 0;
  color: #173044;
  font-size: clamp(2.7rem,4.5vw,4.5rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.lez-section-intro > p:last-child {
  max-width: 680px;
  margin: 1.1rem auto 0;
  color: #526978;
  line-height: 1.7;
}


/* =========================================================
   MATERIE
   ========================================================= */

.lez-subject-section {
  padding-top: 3.6rem;
  padding-bottom: 4rem;
  background: #fff;
}

.lez-subject-section .lez-section-head {
  max-width: 900px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.lez-subject-section .lez-section-head h2 {
  margin: 0;
  color: #173044;
  font-size: clamp(2.5rem, 4vw, 4.15rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 850;
}

.lez-subject-section .lez-section-head p {
  max-width: 760px;
  margin: .9rem auto 0;
  color: #607585;
  font-size: 1rem;
  line-height: 1.55;
}


/* GRIGLIA */

.lez-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}


/* CARD */

.lez-subject-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 1.7rem 1.8rem 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(16,162,247,.12);
  box-shadow: 0 14px 34px rgba(23,48,68,.07);
  overflow: hidden;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.lez-subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(23,48,68,.11);
}


/* COLORI */

.lez-subject-card:nth-child(1) {
  background:
    linear-gradient(
      145deg,
      rgba(62,223,218,.18),
      rgba(62,223,218,.07)
    );
}

.lez-subject-card:nth-child(2) {
  background:
    linear-gradient(
      145deg,
      rgba(16,190,243,.17),
      rgba(16,162,247,.06)
    );
}

.lez-subject-card:nth-child(3) {
  background:
    linear-gradient(
      145deg,
      rgba(255,160,58,.18),
      rgba(255,160,58,.07)
    );
  border-color: rgba(255,160,58,.18);
}


/* NUMERO */

.lez-subject-card .lez-card-number {
  display: block;
  margin-bottom: 1.35rem;
  color: #173044;
  font-size: .75rem;
  font-weight: 900;
}


/* TITOLI */

.lez-subject-card h3 {
  margin: 0 0 .75rem;
  color: #173044;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 850;
}


/* TESTO */

.lez-subject-card p {
  margin: 0;
  color: #506b7d;
  font-size: .96rem;
  line-height: 1.5;
}


/* LISTA */

.lez-subject-card ul {
  margin: .9rem 0 0;
  padding-left: 1.15rem;
  color: #405f72;
  font-size: .93rem;
  line-height: 1.4;
}

.lez-subject-card li + li {
  margin-top: .32rem;
}


/* LINK IN FONDO */

.lez-subject-card a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 1rem;
  color: #173044;
  font-size: .9rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================
   TABLET — MATERIE
   ========================================================= */

@media (max-width: 960px) {

  .lez-subject-grid {
    grid-template-columns: 1fr;
  }

  .lez-subject-card {
    min-height: auto;
  }

}


/* =========================================================
   MOBILE — MATERIE
   ========================================================= */

@media (max-width: 760px) {

  .lez-subject-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .lez-subject-section .lez-section-head {
    margin-bottom: 1.8rem;
  }

  .lez-subject-section .lez-section-head h2 {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }

  .lez-subject-card {
    padding: 1.5rem 1.35rem;
    border-radius: 20px;
  }

}


/* =========================================================
   NEEDS
   ========================================================= */

.lez-needs {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(62,223,218,.21),
      transparent 27%
    ),
    radial-gradient(
      circle at 94% 88%,
      rgba(16,190,243,.10),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      rgba(62,223,218,.10),
      rgba(16,190,243,.04)
    );
}

.lez-needs-grid {
  display: grid;
  grid-template-columns:
    minmax(0,.9fr)
    minmax(0,1.1fr);
  gap: clamp(3rem,7vw,6rem);
  align-items: center;
}

.lez-needs-copy {
  max-width: 600px;
}

.lez-needs h2 {
  margin: .8rem 0 1rem;
  color: #173044;
  font-size: clamp(2.8rem,4.5vw,4.5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.lez-needs-copy > p:last-child {
  color: #526978;
  line-height: 1.7;
}

.lez-needs-list {
  display: grid;
  gap: .9rem;
}

.lez-needs-list article {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(16,162,247,.09);
  box-shadow: 0 12px 28px rgba(23,48,68,.07);
  transition: transform .25s ease;
}

.lez-needs-list article:hover {
  transform: translateX(7px);
}

.lez-needs-list article > span {
  color: var(--orange);
  font-weight: 900;
}

.lez-needs-list strong {
  color: #173044;
}

.lez-needs-list p {
  margin: .35rem 0 0;
  color: #61717c;
  line-height: 1.5;
}


/* =========================================================
   METODO
   ========================================================= */

.lez-method {
  background: #fff;
}

.lez-method-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.lez-method-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 1.6rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(16,162,247,.10);
  box-shadow: 0 14px 32px rgba(23,48,68,.06);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.lez-method-card:nth-child(1) {
  border-top: 4px solid var(--aqua);
}

.lez-method-card:nth-child(2) {
  border-top: 4px solid var(--turquoise);
}

.lez-method-card:nth-child(3) {
  border-top: 4px solid var(--blue);
}

.lez-method-card:nth-child(4) {
  border-top: 4px solid var(--orange);
}

.lez-method-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(23,48,68,.10);
}

.lez-method-card > span {
  font-size: .8rem;
  font-weight: 900;
  color: var(--blue);
}

.lez-method-card h3 {
  margin: 1.6rem 0 .7rem;
  color: #173044;
  font-size: 1.2rem;
}

.lez-method-card p {
  margin: 0;
  color: #61717c;
  line-height: 1.65;
}

.lez-method-link {
  margin-top: 2rem;
  text-align: center;
}


/* =========================================================
   LIVELLI
   ========================================================= */

.lez-levels {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 96% 10%,
      rgba(255,160,58,.10),
      transparent 22%
    ),
    linear-gradient(
      180deg,
      rgba(62,223,218,.10),
      rgba(16,190,243,.04)
    );
}

.lez-levels-grid {
  display: grid;
  grid-template-columns:
    minmax(0,.82fr)
    minmax(0,1.18fr);
  gap: clamp(3rem,7vw,6rem);
  align-items: center;
}

.lez-levels h2 {
  margin: .8rem 0 1rem;
  color: #173044;
  font-size: clamp(2.7rem,4.4vw,4.3rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.lez-levels-lead {
  max-width: 560px;
  color: #526978;
  line-height: 1.7;
}

.lez-level-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .9rem;
}

.lez-level-list article {
  position: relative;
  min-height: 175px;
  padding: 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(16,162,247,.09);
  box-shadow: 0 10px 26px rgba(23,48,68,.06);
}

.lez-level-list article::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--aqua);
}

.lez-level-list article:nth-child(2)::before {
  background: var(--turquoise);
}

.lez-level-list article:nth-child(3)::before {
  background: var(--blue);
}

.lez-level-list article:nth-child(4)::before {
  background: var(--orange);
}

.lez-level-list span {
  color: #173044;
  font-size: 1.1rem;
  font-weight: 850;
}

.lez-level-list p {
  color: #61717c;
  line-height: 1.55;
}

.lez-level-list a {
  color: var(--blue);
  font-weight: 800;
}

.lez-university small {
  display: block;
  margin-top: .75rem;
  color: #71818b;
  line-height: 1.5;
}


/* =========================================================
   MODALITÀ
   ========================================================= */

.lez-mode {
  background: #fff;
}

.lez-mode-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}

.lez-mode-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(62,223,218,.15),
      rgba(255,255,255,.96)
    );
  border: 1px solid rgba(16,162,247,.10);
}

.lez-mode-online {
  background:
    linear-gradient(
      145deg,
      rgba(16,190,243,.14),
      rgba(255,255,255,.96)
    );
}

.lez-mode-label {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.lez-mode-card h3 {
  margin: 1rem 0 .8rem;
  color: #173044;
  font-size: 1.7rem;
}

.lez-mode-card p,
.lez-mode-card ul {
  color: #526978;
  line-height: 1.65;
}

.lez-mode-card ul {
  padding-left: 1.2rem;
  margin-bottom: 1.6rem;
}


/* =========================================================
   PREZZI
   ========================================================= */

.lez-prices {
  /* Fondo scuro continuo: leggibilita dei testi bianchi anche sul lato ciano. */
  background: linear-gradient(135deg, #103c57 0%, #14516a 55%, #15536b 100%);
  color: #fff;
}

.lez-prices-grid {
  display: grid;
  grid-template-columns:
    minmax(0,1fr)
    auto;
  gap: 4rem;
  align-items: center;
}

.lez-prices h2 {
  margin: .8rem 0 1rem;
  color: #fff;
  font-size: clamp(2.7rem,4.5vw,4.4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.lez-prices p {
  color: rgba(255,255,255,.94);
}

.lez-prices-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.lez-prices-action .btn {
  min-height: 54px;
  padding-left: 1.8rem;
  padding-right: 1.8rem;
  background: #fff;
  color: #173044;
  border-color: #fff;
}

.lez-prices-action small {
  color: rgba(255,255,255,.85);
}


/* =========================================================
   RECENSIONI
   ========================================================= */

.lez-reviews {
  position: relative;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(62,223,218,.11),
      transparent 25%
    ),
    #fff;
}

.lez-reviews-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 2.6rem;
}

.lez-reviews-heading h2 {
  margin: .7rem 0 0;
  max-width: 700px;
  color: #173044;
  font-size: clamp(2.5rem,4vw,4rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.lez-google-rating {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem .95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(16,162,247,.10);
  box-shadow: 0 10px 24px rgba(23,48,68,.05);
}

.lez-google-rating > span {
  color: var(--orange);
}

.lez-google-rating strong {
  color: #173044;
}

.lez-google-rating small {
  color: #71818b;
}

.lez-review-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}

.lez-review {
  margin: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(16,162,247,.09);
  box-shadow: 0 14px 32px rgba(23,48,68,.06);
}

.lez-review:nth-child(1) {
  border-top: 4px solid var(--aqua);
}

.lez-review:nth-child(2) {
  border-top: 4px solid var(--turquoise);
}

.lez-review:nth-child(3) {
  border-top: 4px solid var(--orange);
}

.lez-review > div {
  color: var(--orange);
  font-size: .78rem;
}

.lez-review p {
  color: #455d6c;
  line-height: 1.65;
}

.lez-review footer {
  margin-top: auto;
}

.lez-review footer strong {
  display: block;
  color: #173044;
}

.lez-review footer span {
  display: block;
  margin-top: .2rem;
  color: #82909a;
  font-size: .74rem;
}


/* =========================================================
   FAQ
   ========================================================= */

.lez-faq {
  background:
    linear-gradient(
      180deg,
      rgba(62,223,218,.08),
      rgba(16,190,243,.03)
    );
}

.lez-faq-grid {
  display: grid;
  grid-template-columns:
    minmax(0,.75fr)
    minmax(0,1.25fr);
  gap: clamp(3rem,8vw,7rem);
  align-items: start;
}

.lez-faq h2 {
  margin: .8rem 0 0;
  color: #173044;
  font-size: clamp(2.5rem,4.4vw,4rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.lez-faq-grid > div:first-child > p:last-child {
  color: #61717c;
}

.lez-faq-list {
  display: grid;
  gap: .8rem;
}

.lez-faq-list details {
  padding: 1.15rem 1.3rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16,162,247,.08);
}

.lez-faq-list summary {
  cursor: pointer;
  color: #173044;
  font-weight: 800;
}

.lez-faq-list details p {
  margin: .85rem 0 0;
  color: #61717c;
  line-height: 1.6;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.lez-final-cta {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background:
    radial-gradient(
      circle at 93% 8%,
      rgba(62,223,218,.36),
      transparent 27%
    ),
    radial-gradient(
      circle at 3% 94%,
      rgba(255,160,58,.20),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      var(--blue),
      var(--turquoise)
    );
  color: #fff;
}

.lez-final-grid {
  display: grid;
  grid-template-columns:
    minmax(0,1fr)
    minmax(0,.9fr);
  gap: clamp(4rem,8vw,8rem);
  align-items: center;
}

.lez-final-cta h2 {
  margin: .8rem 0 0;
  color: #fff;
  font-size: clamp(2.8rem,4.8vw,4.8rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.lez-final-grid > div:last-child > p {
  color: rgba(255,255,255,.96);
  font-size: 1.08rem;
  line-height: 1.7;
}

.lez-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.lez-final-actions .btn.primary {
  background: #fff;
  color: #173044;
  border-color: #fff;
}

.lez-final-actions .btn.secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,255,255,.10);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {

  .lez-subject-grid,
  .lez-method-grid,
  .lez-review-grid {
    grid-template-columns: 1fr;
  }

  .lez-subject-card,
  .lez-method-card,
  .lez-review {
    min-height: 0;
  }

  .lez-needs-grid,
  .lez-levels-grid,
  .lez-prices-grid,
  .lez-faq-grid,
  .lez-final-grid {
    grid-template-columns: 1fr;
  }

  .lez-needs-grid,
  .lez-levels-grid,
  .lez-final-grid {
    gap: 2.8rem;
  }

  .lez-level-list {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .lez-prices-grid {
    gap: 2rem;
  }

  .lez-prices-action {
    align-items: flex-start;
  }

  .lez-reviews-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

  #lezioni-page .section,
  .lez-final-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }


  /* GENERALE */

  .lez-section-intro {
    text-align: left;
  }

  .lez-section-intro > p:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .lez-section-intro h2,
  .lez-needs h2,
  .lez-levels h2,
  .lez-prices h2,
  .lez-faq h2 {
    font-size: clamp(2.5rem,11vw,3.7rem);
  }


  /* MATERIE */

  .lez-subject-grid {
    margin-top: 2rem;
  }

  .lez-subject-card {
    padding: 1.5rem;
    border-radius: 20px;
  }


  /* NEEDS */

  .lez-needs-grid {
    gap: 2.4rem;
  }

  .lez-needs-list article {
    grid-template-columns: 42px 1fr;
    padding: 1rem 1.1rem;
  }


  /* METODO */

  .lez-method-grid {
    margin-top: 2rem;
  }

  .lez-method-card {
    padding: 1.4rem;
  }


  /* LIVELLI */

  .lez-level-list {
    grid-template-columns: 1fr;
  }

  .lez-level-list article {
    min-height: 0;
  }


  /* MODALITÀ */

  .lez-mode-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .lez-mode-card {
    padding: 1.5rem;
  }


  /* PREZZI */

  .lez-prices-action {
    align-items: stretch;
  }

  .lez-prices-action .btn {
    width: 100%;
  }


  /* RATING */

  .lez-google-rating {
    width: 100%;
    flex-wrap: wrap;
  }


  /* CTA */

  .lez-final-cta {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .lez-final-cta h2 {
    font-size: clamp(2.6rem,11vw,3.8rem);
  }

  .lez-final-grid {
    gap: 2.4rem;
  }

  .lez-final-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lez-final-actions .btn {
    width: 100%;
    justify-content: center;
  }

}
/* Rafforza il contrasto sui gradienti mantenendo la grafica originale. */
.lez-final-cta { box-shadow: inset 0 0 0 100vmax rgba(0, 35, 82, .42); }
