/**********LESSION******//**********LESSION******/
/**********LESSION******//**********LESSION******/
/**********LESSION******//**********LESSION******/
/**********LESSION******//**********LESSION******/
/**********LESSION******//**********LESSION******/
/**********LESSION******//**********LESSION******/
/**********LESSION******//**********LESSION******/
/**********LESSION******//**********LESSION******/
/**********LESSION******//**********LESSION******/
 :root {
      --bg-page: #128C7E;
      --bg-section: #128C7E;
      --text-main: #111827;
      --text-muted: #6b7280;
      --accent-yellow: #ffe49c;
      --accent-green: #d9f5df;
      --accent-salmon: #ffd9d2;
      --accent-blue: #d8ecff;
      --primary: #ff4b68;
      --star: #ffb800;
      --card-radius: 28px;
      --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.16);
    }

 

    .page {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 64px 16px;
      background: #1c47ff;
    }

    /* Sezione calendario stile Calendly */

    .booking-page {
      background: #128C7E;
    }

    .booking-section {
      max-width: 1120px;
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
      gap: 40px;
      align-items: center;
    }

    .booking-copy-eyebrow {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 600;
      color: var(--primary);
      margin-bottom: 10px;
    }

    .booking-title {
      font-size: 40px;
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 16px;
    }

    .booking-subtitle {
      font-size: 16px;
      color: var(--text-muted);
      max-width: 420px;
      margin-bottom: 18px;
    }

    .booking-bullets {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 6px;
      font-size: 14px;
      color: var(--text-muted);
    }

    .booking-bullets li::before {
      content: "•";
      color: var(--primary);
      font-weight: 700;
      display: inline-block;
      width: 1em;
      margin-left: -1em;
    }

    .booking-note {
      margin-top: 18px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .booking-card {
      background: #ffffff;
      border-radius: 32px;
      padding: 24px 24px 22px;
      box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
      gap: 18px;
    }

    .booking-card-header {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 10px;
    }

    .booking-card-title {
      font-size: 16px;
      font-weight: 700;
    }

    .booking-card-subtitle {
      font-size: 13px;
      color: var(--text-muted);
    }

    .booking-duration {
      font-size: 13px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 4px;
    }

    .booking-duration-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      border-radius: 999px;
      background: #fff4f7;
      color: var(--primary);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .booking-calendar {
      border-radius: 20px;
      background: #f9fafb;
      padding: 16px 14px 12px;
    }

    .booking-calendar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      font-size: 13px;
      font-weight: 600;
    }

    .booking-calendar-days {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 6px;
      font-size: 11px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .booking-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 6px;
    }

    .booking-day {
      border-radius: 999px;
      border: none;
      padding: 6px 0;
      font-size: 12px;
      background: #ffffff;
      color: #111827;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      transition: background 0.16s ease, color 0.16s ease,
        box-shadow 0.16s ease, transform 0.1s ease;
    }

    .booking-day span {
      display: block;
      line-height: 1;
    }

    .booking-day--muted {
      opacity: 0.4;
      cursor: default;
    }

    .booking-day:not(.booking-day--muted):hover {
      background: #fff4f7;
      color: var(--primary);
      box-shadow: 0 8px 14px rgba(148, 163, 184, 0.3);
      transform: translateY(-1px);
    }

    .booking-day.is-selected {
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 12px 24px rgba(220, 38, 38, 0.4);
    }

    .booking-times {
      border-radius: 20px;
      background: #f9fafb;
      padding: 16px 14px 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: 230px;
      overflow: hidden;
    }

    .booking-times-header {
      font-size: 13px;
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .booking-times-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
      gap: 8px;
      margin-top: 4px;
    }

    .booking-time {
      border-radius: 999px;
      border: none;
      padding: 6px 10px;
      background: #ffffff;
      font-size: 12px;
      cursor: pointer;
      transition: background 0.16s ease, color 0.16s ease,
        box-shadow 0.16s ease, transform 0.1s ease;
    }

    .booking-time:hover {
      background: #fff4f7;
      color: var(--primary);
      box-shadow: 0 8px 14px rgba(148, 163, 184, 0.3);
      transform: translateY(-1px);
    }

    .booking-time.is-selected {
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 12px 24px rgba(220, 38, 38, 0.4);
    }

    .booking-cta {
      margin-top: 2px;
      font-size: 12px;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .booking-primary-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 9px 16px;
      border-radius: 999px;
      border: none;
      background: var(--primary);
      color: #ffffff;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      gap: 6px;
      align-self: flex-start;
      transition: background 0.15s ease, transform 0.1s ease,
        box-shadow 0.15s ease;
    }

    .booking-primary-btn:hover {
      background: #ff3956;
      box-shadow: 0 16px 35px rgba(220, 38, 38, 0.4);
      transform: translateY(-1px);
    }

    .booking-primary-btn:active {
      transform: translateY(0);
      box-shadow: 0 8px 18px rgba(220, 38, 38, 0.5);
    }

    .booking-primary-btn svg {
      width: 15px;
      height: 15px;
    }

    .testimonials-section {
      max-width: 1120px;
      width: 100%;
      background: var(--bg-section);
      border-radius: 40px;
      padding: 56px 56px 64px;
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
      gap: 40px;
      align-items: center;
    }

    /* Colonna sinistra */

    .rating-stars {
      color: var(--star);
      font-size: 22px;
      letter-spacing: 4px;
      margin-bottom: 18px;
    }

    .section-title {
      font-size: 40px;
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 18px;
    }

    .section-subtitle {
      font-size: 17px;
      color: var(--text-muted);
      max-width: 420px;
    }

    .section-subtitle strong {
      color: var(--text-main);
      font-weight: 800;
    }

    .nav-row {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: 32px;
    }

    .nav-arrows {
      display: inline-flex;
      gap: 12px;
    }

    .nav-arrow-btn {
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: none;
      background: #ffffff;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease,
        background 0.15s ease;
      color: #111827;
    }

    .nav-arrow-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
      background: #fff7f9;
    }

    .nav-arrow-btn:active {
      transform: translateY(0);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    }

    .nav-arrow-btn svg {
      width: 18px;
      height: 18px;
    }

    .nav-meta {
      font-size: 13px;
      color: var(--text-muted);
    }

    .nav-meta strong {
      color: var(--text-main);
    }

    /* Colonna destra: card impilate */

    .testimonials-stack-wrapper {
      position: relative;
      height: 360px;
      overflow: visible;
    }

    .testimonials-stack {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .testimonial-card {
      position: absolute;
      inset: 0;
      margin-left: auto;
      max-width: 420px;
      background: var(--accent-yellow);
      border-radius: var(--card-radius);
      padding: 26px 26px 24px;
      box-shadow: var(--shadow-soft);
      display: flex;
      flex-direction: column;
      gap: 16px;
      opacity: 0;
      transform: translateX(60px) translateY(40px) scale(0.9);
      pointer-events: none;
      transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 260ms ease, filter 260ms ease;
    }

    .testimonial-card--yellow { /****QUESTA è LA CARD DELLO SLIDER****/
       background: rgba(255, 255, 255, 0.1);
       backdrop-filter: blur(20px) saturate(180%);
       -webkit-backdrop-filter: blur(20px) saturate(180%);
       /* Bordo */
       border: 1px solid rgba(255, 255, 255, 0.2);
       /* Ombra */
       box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
       /* background: var(--accent-yellow);*/
    }

    .testimonial-card--green {
      background: var(--accent-green);
    }

    .testimonial-card--salmon {
      background: var(--accent-salmon);
    }

    .testimonial-card--blue {
      background: var(--accent-blue);
    }

    /* Stati per simulare lo stack (simile a Superprof) */

    .testimonial-card.is-active {
      opacity: 1;
      transform: translateX(0) translateY(0) scale(1);
      z-index: 3;
      pointer-events: auto;
      filter: none;
    }

    .testimonial-card.is-next {
      opacity: 1;
      transform: translateX(24px) translateY(22px) scale(0.96);
      z-index: 2;
      filter: brightness(0.98) saturate(0.98);
    }

    .testimonial-card.is-behind {
      opacity: 1;
      transform: translateX(44px) translateY(40px) scale(0.92);
      z-index: 1;
      filter: brightness(0.96) saturate(0.94);
    }

    /* Header card */

    .card-header {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 700;
      color: #111827;
      flex-shrink: 0;
      overflow: hidden;
    }
     
    

    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .card-header-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
      font-size: 14px;
    }

    .card-header-name {
      font-weight: 700;
    }

    .card-header-role {
      font-size: 12px;
      color: var(--text-muted);
    }

    .card-body {
      font-size: 15px;
      line-height: 1.55;
      color: #111827;
    }

    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
      margin-top: 4px;
    }

    .card-student-name {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-weight: 600;
    }

    .card-stars {
      color: var(--star);
      letter-spacing: 2px;
    }

    /* Responsiveness */

    @media (max-width: 900px) {
         .booking-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
      }

      .booking-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
      }
      .testimonials-section {
        grid-template-columns: minmax(0, 1fr);
        padding: 32px 20px 40px;
        border-radius: 28px;
      }

      .testimonials-stack-wrapper {
        margin-top: 8px;
        height: 330px;
      }

      .testimonial-card {
        max-width: 100%;
        margin-right: 0;
      }
    }

    @media (max-width: 600px) {
        .booking-title {
        font-size: 28px;
      }

      .booking-subtitle {
        font-size: 14px;
      }

      .booking-card {
        padding: 16px;
        border-radius: 24px;
      }

      .booking-calendar,
      .booking-times {
        padding: 12px 10px 10px;
      }

      .booking-times-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 6px;
      }
      .section-title {
        font-size: 30px;
      }

      .section-subtitle {
        font-size: 15px;
      }

      .nav-row {
        justify-content: space-between;
      }

      .testimonials-section {
        padding-inline: 18px;
      }
    }
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/
  /*********ABOUT ABOUT ABOUT ABOUT ABOUT ********************************/

    :root {
      --clr-bg:      #f4f0ea;
      --clr-ink:     #03161e;
      --clr-mid:     #6b6558;
      --clr-gold:    #70f097;
      --clr-pale:    #e8e2d9;
      --clr-white:   #faf8f5;
    
 
      --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    }

    html { scroll-behavior: auto; }

    body {
      background: var(--clr-bg);
      color: var(--clr-ink);
      font-family: var(--ff-body);
      font-size: clamp(15px, 1.6vw, 17px);
      line-height: 1.65;
      overflow-x: hidden;
    }


    /* ─── HERO ─────────────────────────────────────────────────────── */
    #hero {
      position: relative;
      height: 100vh;
      min-height: 560px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .text-footer {
      padding: 10% 0;
    }
    .hero-photo-wrap {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      will-change: transform;
      z-index: 1;
    }

    .hero-photo-inner {
      position: relative;
      width: min(340px, 62vw);
    }

    .hero-photo-inner::before {
      content: '';
      position: absolute;
      inset: -12px;
      border: 1.5px solid var(--clr-gold);
      opacity: 0.45;
      pointer-events: none;
    }

    .hero-photo-inner img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      filter: grayscale(18%) contrast(1.04);
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background: radial-gradient(ellipse 80% 60% at 50% 50%,
        rgba(244,240,234,0) 20%,
        rgba(244,240,234,0.72) 80%,
        rgba(244,240,234,0.96) 100%);
    }

    .hero-text {
      position: relative;
      z-index: 3;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      will-change: transform;
    }


    .hero-tagline {
      font-size: clamp(0.8rem, 1.8vw, 1rem);
      color: #03161e;
      max-width: 66ch;
      opacity: 0;
      transform: translateY(14px);
      animation: fadeUp 1s var(--ease-out) 0.58s forwards;
    }



    .scroll-hint {
      position: absolute;
      bottom: 2.5rem; left: 50%;
      transform: translateX(-50%);
      z-index: 5;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      color: var(--clr-mid);
      font-size: 0.68rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      opacity: 0;
      animation: fadeIn 1.2s ease 1.2s forwards;
    }
    .scroll-hint svg { animation: arrowBounce 2.2s ease-in-out infinite; }

    /* ═══════════════════════════════════════════════════════════════
       SKILLS — PIN & SCROLL
       ─────────────────────────────────────────────────────────────
       #skills-spacer  height = N × 100vh   (set by JS)
       #skills-pin     sticky top:0, height:100vh → pinned during spacer
       .skills-track   translateY driven by scroll offset inside spacer
       ═══════════════════════════════════════════════════════════════ */

    #skills-spacer {
      position: relative;
      /* height set dynamically by JS */
    }

    #skills-pin {
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: hidden;
      display: flex;
    }

    /* LEFT: static, always shown */
    .skills-left {
      width: 38%;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 6rem 4vw 6rem 8vw;
      background: var(--clr-ink);
      z-index: 10;
    }



    .skills-left-title {
      font-family: var(--ff-display);
      font-size: clamp(3.5rem, 6vw, 6rem);
      font-weight: 300;
      line-height: 0.92;
      color: var(--clr-white);
    }
    .skills-left-title em { display: block; font-style: italic; color: var(--clr-gold); }

    .skills-left-note {
      margin-top: 2.5rem;
      font-size: 0.82rem;
      color: var(--clr-mid);
      max-width: 24ch;
      line-height: 1.7;
    }

    .skills-counter {
      margin-top: auto;
      padding-top: 3rem;
      font-family: var(--ff-display);
      font-size: 0.9rem;
      color: rgba(255,255,255,0.18);
      letter-spacing: 0.08em;
    }

    /* RIGHT: clipped — track slides inside */
    .skills-right {
      flex: 1;
      position: relative;
      overflow: hidden;
    }

    /* Track slides upward via JS — uses real px set by JS, not vh */
    .skills-track {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      will-change: transform;
    }

    /* Each panel = same height as #skills-pin (set by JS via --pin-h) */
    .skill-panel {
      height: var(--pin-h, 100vh);
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 6rem 8vw 6rem 6vw;
      position: relative;
      overflow: hidden;
    }

    .skill-panel:nth-child(1) { background: var(--clr-bg); }
    .skill-panel:nth-child(2) { background: var(--clr-pale); }
    .skill-panel:nth-child(3) { background: var(--clr-white); }

    .skill-num {
      font-family: var(--ff-display);
      font-size: clamp(6rem, 18vw, 14rem);
      font-weight: 300;
      line-height: 1;
      color: rgba(14,13,11,0.06);
      position: absolute;
      top: 1.5rem; right: 4vw;
      pointer-events: none;
      user-select: none;
    }

    .skill-tag {
      font-size: 0.7rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--clr-gold);
      margin-bottom: 1.2rem;
    }

    .skill-title {
      font-family: var(--ff-display);
      font-size: clamp(2.4rem, 5.5vw, 4.8rem);
      font-weight: 300;
      line-height: 1;
      color: var(--clr-ink);
      margin-bottom: 1.8rem;
    }
    .skill-title em { font-style: italic; color: var(--clr-gold); }

    .skill-divider {
      width: 3rem; height: 1.5px;
      background: var(--clr-gold);
      margin-bottom: 1.8rem;
    }

    .skill-desc {
      font-size: clamp(0.88rem, 1.5vw, 1rem);
      color: var(--clr-mid);
      max-width: 44ch;
      line-height: 1.8;
    }

    .skill-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 2rem;
    }

    .pill {
      border: 1px solid rgba(184,150,74,0.4);
      border-radius: 2px;
      padding: 0.4rem 0.95rem;
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--clr-ink);
    }



    /* ─── FOOTER ──────────────────────────────────────────────────── */
    footer {
      background: var(--clr-ink);
      color: var(--clr-white);
     /* padding: 5rem 8vw 4rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: end;*/
    }
  
   

    /* ─── KEYFRAMES ───────────────────────────────────────────────── */
    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn {
      to { opacity: 1; }
    }
    @keyframes arrowBounce {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(6px); }
    }

    /* ─── RESPONSIVE ──────────────────────────────────────────────── */
    @media (max-width: 768px) {

      #skills-spacer { height: auto !important; }

      #skills-pin {
        position: relative;
        height: auto;
        flex-direction: column;
      }

      .skills-left {
        width: 100%;
        padding: 5rem 6vw 3rem;
      }

      .skills-right { overflow: visible; height: auto; }

      .skills-track {
        position: relative !important;
        transform: none !important;
      }

      .skill-panel {
        height: auto !important;
        min-height: 75vh;
        padding: 4rem 6vw;
      }

      
    
    }