/* ============================================================
   Taylor Business English — redesign editoriale
   Colors & type: TBE Brand Guidelines
   - White #fff · Light #efefef · Green #406256
   - Purple #5b2dca · Dark purple #1b012a
   - Playfair Display + Raleway · Square Corner 8px
   ============================================================ */

:root {
  /* Brand palette (TBE Brand Guidelines) */
  --c-white:       #ffffff;
  --c-light:       #efefef;
  --c-light-2:     #e6e4e9;
  --c-green:       #406256;
  --c-green-deep:  #314a41;
  --c-purple:      #5b2dca;
  --c-purple-hi:   #866ec0;
  --c-purple-deep: #1b012a;
  --c-ink:         #1b012a;
  --c-text:        #1b012a;
  --c-muted:       #6b6775;
  --c-border:      rgba(27,1,42,0.10);
  --c-border-soft: rgba(27,1,42,0.06);

  /* Brand gradient */
  --g-brand: linear-gradient(90deg, #1b012a 0%, #5b2dca 55%, #866ec0 100%);

  /* Typography */
  --ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:    'Raleway', 'Helvetica Neue', Arial, sans-serif;

  /* Shape — Square Corner 8px */
  --r:    8px;
  --r-sm: 8px;
  --r-lg: 8px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  color: var(--c-text);
  background: var(--c-light);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* No italic anywhere */
em, i { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Full-bleed container for sections with big background cards */
.hero > .container,
.cta-call > .container,
.cta-final > .container,
.footer > .container {
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==== Typography ==== */
.display {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.display em,
h1 em, h2 em, h3 em, h4 em {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--c-purple);
}
.display strong { font-weight: 600; }

/* Unified section-title sizing — all big & bold like .about-title */
.percorso-text h2,
.lezioni-left h2,
.about-title,
.oggi-content h2,
.benefit-left h2,
.instagram-text h2,
.section-title {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* Kickers */
.kicker {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text);
  display: inline-block;
  margin: 0;
}
.kicker-light { color: rgba(255,255,255,0.9); }

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--c-text);
  transition: gap 0.25s ease, color 0.2s ease;
}
.link-arrow:hover { gap: 14px; color: var(--c-purple); }

/* ==== Buttons (Square Corner 8px, Bold uppercase, framed box) ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: var(--c-purple);
  color: var(--c-white);
}
.btn-primary:hover {
  background: #4a24b0;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(91,45,202,0.28);
}
.btn-accent {
  background: var(--c-white);
  color: var(--c-purple-deep);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
}
.btn-ghost:hover {
  background: var(--c-text);
  color: var(--c-white);
}

/* ==== Reveal-on-scroll ==== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"]  { transform: scale(0.96); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==== NAVBAR ==== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 20px 0;
  pointer-events: none;
}
.nav-inner {
  pointer-events: none;
  position: relative;
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 22px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled .nav-inner {
  pointer-events: auto;
  opacity: 1;
  transform: none;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 40px -20px rgba(27,1,42,0.22);
}
.nav-brand { display: inline-flex; }
.nav-brand img { height: 32px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  padding: 10px 16px;
  border-radius: var(--r);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(27,1,42,0.06); color: var(--c-purple); }
.nav-cta { padding: 12px 22px; font-size: 12px; }

/* Hamburger toggle — mobile only */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: rgba(27,1,42,0.04); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==== HERO ==== */
.hero {
  padding: 20px 0 80px;
}
.hero-card {
  background: var(--c-white);
  border-radius: var(--r);
  padding: 110px 40px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(91,45,202,0.08), transparent 70%),
    radial-gradient(600px 300px at 10% 110%, rgba(64,98,86,0.08), transparent 70%);
  pointer-events: none;
}
.hero-logo {
  display: block;
  width: auto;
  height: clamp(56px, 7vw, 96px);
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(52px, 7.6vw, 116px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 20px auto 24px;
  max-width: 14ch;
  color: var(--c-text);
}
.hero-title em {
  color: var(--c-purple);
  font-weight: 500;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 38px;
  color: var(--c-text);
  opacity: 0.82;
}
.hero-sub strong { font-weight: 700; }
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.hero-avatars { display: inline-flex; }
.hero-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--c-white);
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(27,1,42,0.12);
}
.hero-avatars img:first-child { margin-left: 0; }

/* ==== SECTION HEAD ==== */
.section-head {
  padding: 0 4px 28px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.section-title {
  max-width: 16ch;
  margin-left: auto;
  text-align: right;
}
@media (max-width: 860px) {
  .section-title { text-align: left; margin-left: 0; }
}

/* ==== IMAGE CHIP ==== */
.img-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--c-white);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--r);
  box-shadow: 0 4px 14px rgba(27,1,42,0.12);
  z-index: 2;
}

/* ==== PERCORSO ==== */
.percorso {
  padding: 20px 0 100px;
}
.percorso-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.percorso-text h2 {
  margin-bottom: 28px;
}
.percorso-text p {
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 0 28px;
}
.percorso-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--c-green-deep);
}
.percorso-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==== RECENSIONI SLIDER ==== */
.reviews {
  padding: 20px 0 100px;
}
.reviews .section-head {
  padding-bottom: 40px;
}
.reviews-slider {
  position: relative;
  --cpad: 28px;
  margin-inline: calc(50% - 50vw);
}
.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px max(var(--cpad), calc(50vw - 620px + var(--cpad)));
  scroll-padding-left: max(var(--cpad), calc(50vw - 620px + var(--cpad)));
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.reviews-track.is-dragging .review-slide { pointer-events: none; }
.review-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--c-light-2);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.review-slide:hover {
  transform: translateY(-6px);
}
.review-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}
.slider-dot:hover { background: rgba(27,1,42,0.25); }
.slider-dot.is-active {
  background: var(--c-purple);
  width: 22px;
}

/* ==== CTA CALL ==== */
.cta-call {
  padding: 10px 0 100px;
}
.cta-card {
  background: var(--c-green);
  color: var(--c-white);
  border-radius: var(--r);
  padding: 100px 40px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(255,255,255,0.08), transparent 70%),
    radial-gradient(400px 200px at 100% 100%, rgba(91,45,202,0.15), transparent 70%);
  pointer-events: none;
}
.cta-card .kicker { margin-bottom: 22px; position: relative; z-index: 1; }

/* CTA titles — allineati al titolo Percorso */
.cta-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5.2vw, 72px);
  color: var(--c-white);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  position: relative;
  z-index: 1;
}
.cta-title em {
  color: var(--c-white);
  font-weight: 500;
}
.cta-sub {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 28px auto 40px;
  max-width: 680px;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.cta-sub strong { font-weight: 700; color: var(--c-white); }
.cta-card .btn { position: relative; z-index: 1; }

/* ==== ABOUT ==== */
.about {
  padding: 20px 0 100px;
}
.about-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px 70px;
  align-items: end;
  padding: 0 4px 56px;
}
.about-title {
  max-width: 14ch;
}
.about-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 520px;
}
.about-text strong { color: var(--c-text); font-weight: 700; }

.about-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.teacher { margin: 0; transition: transform 0.4s ease; }
.teacher:hover { transform: translateY(-4px); }
.teacher-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--c-light-2);
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.teacher:hover .teacher-photo img { transform: scale(1.04); }
.teacher figcaption {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.teacher .name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--c-text);
  letter-spacing: -0.005em;
}
.teacher .role {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--c-muted);
  font-weight: 500;
}

/* ==== LEZIONI ==== */
.lezioni {
  padding: 20px 0 100px;
}
.lezioni-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.lezioni-left h2 {
  margin-bottom: 22px;
}
.lezioni-intro {
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 420px;
  margin: 0;
}
.lezioni-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ==== FEATURE CARD (Lezioni + Benefit) ==== */
.feature-card {
  background: var(--c-white);
  border-radius: var(--r);
  padding: 22px 24px 24px;
  position: relative;
  border: 1px solid var(--c-border-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(27,1,42,0.25);
  border-color: rgba(91,45,202,0.25);
}
.feature-kicker {
  display: inline-block;
  background: var(--c-light);
  color: var(--c-purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r);
  margin-bottom: 14px;
}
.feature-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.feature-head h3 {
  font-family: var(--ff-body);
  font-size: 19px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  letter-spacing: -0.005em;
}
.feature-ico {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-muted);
  margin: 0;
}

/* ==== COURSES ==== */
.courses {
  padding: 20px 0 100px;
}
.courses .section-head {
  padding-bottom: 50px;
}
.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.course-card {
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -24px rgba(27,1,42,0.22);
}
.course-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: 14px 14px 0;
  border-radius: var(--r);
}
.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.course-card:hover .course-image img { transform: scale(1.05); }
.course-body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.course-body .btn {
  align-self: flex-start;
  margin-top: auto;
}
.course-body h3 {
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 18px;
}
.course-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0 0 14px;
}
.course-body p strong { color: var(--c-text); font-weight: 700; }

/* ==== IMPARA OGGI ==== */
.oggi {
  padding: 20px 0 100px;
}
.oggi-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.oggi-image {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 620px;
  border-radius: var(--r);
  overflow: hidden;
}
.oggi-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.oggi-image:hover img { transform: scale(1.04); }
.oggi-content { max-width: 560px; }
.oggi-content .kicker { margin-bottom: 22px; }
.oggi-content h2 {
  margin-bottom: 26px;
}
.oggi-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-muted);
  margin: 0 0 34px;
}
.oggi-content p strong { font-weight: 700; color: var(--c-text); }

/* ==== BENEFIT ==== */
.benefit {
  padding: 20px 0 100px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.benefit-left h2 {
  margin-bottom: 22px;
}
.benefit-intro {
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 0 28px;
}
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* ==== CTA FINAL (brand gradient, no bg image) ==== */
.cta-final {
  padding: 20px 0 10px;
}
.cta-final-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  color: var(--c-white);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px;
  background: var(--g-brand);
}
.cta-final-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.cta-final-inner .kicker { margin-bottom: 22px; }
.cta-final-inner .cta-title { color: var(--c-white); }
.cta-final-inner .cta-title em {
  color: var(--c-white);
  border-bottom-color: var(--c-purple-hi);
}
.cta-final-inner .cta-sub { color: rgba(255,255,255,0.92); }
.cta-final-inner .cta-sub strong { color: var(--c-white); font-weight: 700; }

/* ==== INSTAGRAM ==== */
.instagram {
  padding: 60px 0 100px;
}
.instagram-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.instagram-text .kicker { margin-bottom: 18px; }
.instagram-text h2 {
  margin: 0 0 22px;
  max-width: 12ch;
}
.instagram-intro {
  max-width: 46ch;
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--c-text);
  opacity: 0.82;
}
.instagram-intro strong { font-weight: 700; opacity: 1; }
.instagram-slider {
  position: relative;
}
.instagram-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 4px 8px;
  margin: -4px -4px 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.instagram-track::-webkit-scrollbar { display: none; }
.instagram-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.instagram-track.is-dragging .ig-post { pointer-events: none; }
.ig-post {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 16px) / 2);
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--c-light-2);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.instagram-dots { margin-top: 22px; justify-content: flex-start; }
.ig-post img,
.ig-post video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ig-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27,1,42,0.55));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.ig-post::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b012a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='5'/><circle cx='12' cy='12' r='4'/><circle cx='17.5' cy='6.5' r='1' fill='%231b012a'/></svg>") center/16px no-repeat;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(27,1,42,0.18);
}
.ig-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(27,1,42,0.16);
}
.ig-post:hover::after { opacity: 1; }
.ig-post:hover::before { opacity: 1; transform: translateY(0); }
/* ==== FOOTER ==== */
.footer {
  background: var(--c-light);
  color: var(--c-text);
  padding: 10px 0 40px;
}
.footer-card {
  padding: 16px 16px 36px;
  color: var(--c-text);
}

/* Info columns */
.footer-info-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 40px 56px;
}
.footer-info-col { display: flex; flex-direction: column; gap: 6px; }
.footer-info-label {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.footer-info-link,
.footer-info-text {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  transition: color 0.2s ease;
}
.footer-info-link:hover { color: var(--c-purple); }

/* Bottom row */
.footer-card-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
}
.footer-meta {
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
}
.footer-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  justify-self: center;
  box-shadow: 0 4px 20px rgba(27, 1, 42, 0.06);
}
.footer-pill-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-text);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.footer-pill-tab:hover { background: rgba(27, 1, 42, 0.06); }
.footer-pill-tab.is-active,
.footer-pill-tab.is-active:hover {
  background: var(--c-purple);
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(91,45,202,0.35);
}
.footer-pill-tab-orange { color: #FF5800; }
.footer-pill-tab-orange:hover { background: rgba(255,88,0,0.12); color: #FF5800; }
.footer-card-bottom-spacer { display: block; }

/* ==== RESPONSIVE ==== */
/* Tablet landscape — tighten nav */
@media (max-width: 1080px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 10px 12px; font-size: 12px; }
}

/* iPad portrait — 2-col layouts still readable */
@media (max-width: 1024px) and (min-width: 760px) {
  .container { padding: 0 24px; }
  .percorso-grid,
  .about-head,
  .oggi-grid {
    gap: 40px;
  }
  .courses-grid { gap: 20px; }
  .benefit-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-team { gap: 18px; }
  .reviews-slider { --cpad: 24px; }
  .review-slide { flex: 0 0 calc((100% - 20px) / 2); }
}

/* Tablet portrait / large phone — nav goes hamburger, grids collapse */
@media (max-width: 960px) {
  .nav { padding: 12px 16px 0; }
  .nav-inner { padding: 8px 10px 8px 16px; gap: 10px; }
  .nav-brand { margin-right: auto; }
  .nav-brand img { height: 26px; }
  .nav-cta { padding: 10px 14px; font-size: 11px; letter-spacing: 0.12em; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r);
    box-shadow: 0 20px 40px -20px rgba(27,1,42,0.22);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: var(--r);
  }

  .hero { padding: 12px 0 60px; }
  .hero-card {
    padding: 90px 28px 80px;
    min-height: 100vh;
    min-height: calc(100svh - 24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .percorso-grid,
  .about-head,
  .lezioni-grid,
  .courses-grid,
  .benefit-grid,
  .oggi-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .benefit-cards { grid-template-columns: 1fr; }

  .percorso { padding: 10px 0 70px; }
  .cta-call { padding: 10px 0 60px; }
  .cta-card { padding: 70px 24px 80px; }

  .about { padding: 10px 0 60px; }
  .about-head { padding-bottom: 40px; }
  .about-team {
    --cpad: 28px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-inline: calc(50% - 50vw);
    padding-inline: var(--cpad);
    padding-bottom: 16px;
    scroll-padding-inline: var(--cpad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .about-team::-webkit-scrollbar { display: none; }
  .teacher {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  .reviews { padding: 10px 0 60px; }
  .review-slide { flex: 0 0 calc((100% - 20px) / 2); }

  .lezioni { padding: 10px 0 60px; }
  .courses { padding: 10px 0 60px; }
  .course-body { padding: 24px 22px 28px; }
  .oggi { padding: 10px 0 60px; }
  .oggi-image { max-height: 520px; aspect-ratio: 16/11; }
  .benefit { padding: 10px 0 60px; }

  .cta-final-card { padding: 70px 24px; min-height: 420px; }

  .instagram { padding: 30px 0 70px; }
  .instagram-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }
  .instagram-text h2 { max-width: none; }
  .instagram-track { gap: 14px; }
  .ig-post { flex: 0 0 calc((100% - 14px) / 2); }

  .footer { padding: 10px 0 24px; }
  .footer-card { padding: 10px 10px 28px; border-radius: var(--r); }
  .footer-info-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 44px 20px 56px;
  }
  .footer-info-link,
  .footer-info-text { overflow-wrap: anywhere; }
  .footer-card-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
    text-align: center;
  }
  .footer-meta { order: 2; }
  .footer-pill-nav { order: 1; justify-self: center; }
  .footer-card-bottom-spacer { display: none; }
}

/* Phone */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero > .container,
  .cta-call > .container,
  .cta-final > .container,
  .footer > .container { padding-left: 14px; padding-right: 14px; }

  .nav-cta { padding: 9px 12px; font-size: 10.5px; letter-spacing: 0.1em; }
  .nav-brand img { height: 22px; }

  .hero { padding: 8px 0 40px; }
  .hero-card {
    padding: 64px 20px 60px;
    min-height: 100vh;
    min-height: calc(100svh - 16px);
  }
  .hero-logo { height: clamp(72px, 14vw, 110px); margin-bottom: 26px; }
  .hero-title {
    font-size: clamp(46px, 13.5vw, 72px);
    max-width: 100%;
    margin: 18px auto 22px;
  }
  .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }

  .percorso { padding: 10px 0 50px; }
  .percorso-grid { gap: 28px; }
  .percorso-text p { font-size: 15px; }

  .cta-call { padding: 10px 0 48px; }
  .cta-card { padding: 54px 20px 60px; }
  .cta-sub { margin: 22px auto 28px; letter-spacing: 0.14em; font-size: 11px; }

  .about { padding: 10px 0 48px; }
  .about-text { font-size: 15px; }
  .about-team { --cpad: 18px; }
  .teacher { flex: 0 0 82%; }
  .teacher .name { font-size: 20px; }

  .reviews { padding: 10px 0 48px; }
  .reviews-slider { --cpad: 18px; }
  .reviews-track { gap: 14px; }
  .review-slide { flex: 0 0 78%; }

  .lezioni { padding: 10px 0 48px; }
  .lezioni-intro { font-size: 15px; }

  .courses { padding: 10px 0 48px; }
  .course-body { padding: 22px 20px 26px; }
  .course-body h3 { font-size: 22px; }
  .course-body p { font-size: 14px; }
  .course-image { margin: 10px 10px 0; }

  .oggi { padding: 10px 0 48px; }
  .oggi-content p { font-size: 15px; }
  .oggi-image { aspect-ratio: 4/5; max-height: 480px; }

  .benefit { padding: 10px 0 48px; }
  .benefit-intro { font-size: 15px; }
  .feature-card { padding: 20px 20px 22px; }
  .feature-head h3 { font-size: 17px; }

  .cta-final { padding: 10px 0 10px; }
  .cta-final-card { padding: 54px 20px; min-height: 380px; }

  .instagram { padding: 20px 0 56px; }
  .instagram-layout { gap: 28px; }
  .instagram-intro { font-size: 15px; margin-bottom: 26px; }
  .instagram-track { gap: 12px; }
  .ig-post { flex: 0 0 70%; }
  .instagram-text .btn { width: 100%; max-width: 340px; }

  .footer-info-cols { grid-template-columns: 1fr; gap: 24px; padding: 32px 14px 40px; }
  .footer-pill-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
  }
  .footer-pill-tab {
    width: 100%;
    padding: 12px 18px;
    font-size: 13px;
    flex: none;
  }
  .footer-pill-tab.is-active,
  .footer-pill-tab.is-active:hover {
    box-shadow: 0 4px 12px rgba(91, 45, 202, 0.25);
  }

  .btn {
    padding: 14px 20px;
    font-size: 12px;
    letter-spacing: 0.1em;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

/* Small phones (iPhone SE 320 / Galaxy Fold ~280) */
@media (max-width: 380px) {
  .nav-inner { gap: 6px; padding: 6px 8px 6px 12px; }
  .nav-cta { padding: 8px 10px; font-size: 10px; }
  .nav-toggle { width: 38px; height: 38px; }
  .hero-title { font-size: clamp(38px, 13vw, 56px); }
  .hero-card {
    padding: 56px 16px 52px;
    min-height: 100vh;
    min-height: calc(100svh - 12px);
  }
  .hero-logo { height: clamp(64px, 14vw, 96px); }
  .cta-card { padding: 46px 16px 54px; }
  .cta-final-card { padding: 46px 16px; }
  .container { padding: 0 14px; }
  .reviews-slider { --cpad: 14px; }
  .about-team { --cpad: 14px; }
  .footer-pill-tab { padding: 9px 12px; font-size: 12px; }
}

/* Touch target sizing on phones */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ==== Anti horizontal overflow safety net ==== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
video, iframe {
  max-width: 100%;
  height: auto;
}
