/* ============================================
   RIPETIZIONI — style.css
   Design: Minimal, Editorial, Professional
   ============================================ */

/* ── Override BitLab navbar styles that conflict ── */
/* Nav-CTA sempre visibile e contenuto nel pill navbar */
#nav-cta {
  display: inline-flex !important;
  font-size: .8125rem !important;
  padding: .375rem .875rem !important;
  border-radius: 999px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  height: auto !important;
}

/* Logo nella navbar — riempie l'altezza su tutti i dispositivi */
#navbar .nav-logo img {
  height: 3rem !important;
}

/* Mobile: logo ingrandito sulla navbar */
@media (max-width: 767px) {
  #navbar .nav-logo img {
    height: 52px !important;
  }
}

/* Proteggi hero ripetizioni dall'override di BitLab */
.hero {
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  border-bottom: none !important;
}
.hero-content {
  position: relative !important;
  z-index: 2 !important;
  padding: 12rem 0 4rem !important;
  max-width: 620px !important;
}
.hero .container {
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 6vw, 7rem) !important;
  max-width: none !important;
}

/* Mobile: testo subito sotto la navbar */
@media (max-width: 767px) {
  .hero-content {
    padding: 5rem 0 1rem !important; /* Alzato e ridotto il padding in basso */
    max-width: 100% !important;
  }
  .hero-content h1 {
    font-size: 2.2rem !important; /* Rimpicciolito */
  }
  .hero-content p {
    font-size: 1.05rem !important;
  }
  .hero .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}
.hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center right !important;
  z-index: 0 !important;
}

@media (max-width: 767px) {
  .hero-bg {
    object-position: bottom center !important; /* Bloccato in basso per mostrare l'illustrazione */
  }
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #ebebeb;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --accent: #1a1a1a;
  --accent-light: #f0f0f0;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1.1; margin-bottom: 1rem; color: var(--black); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--gray-600); line-height: 1.65; }

.text-lead {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.5;
  color: var(--gray-600);
  font-weight: 400;
  max-width: 900px;
}

a { text-decoration: none; color: inherit; }

strong { color: var(--black); font-weight: 600; }

/* ── LAYOUT ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.5rem 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  transition: opacity var(--transition);
}

.header-cta:hover {
  opacity: 0.82;
}

/* ── Desktop Nav Links ── */
.rip-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.rip-nav-link {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.rip-nav-link:hover,
.rip-nav-link.active {
  color: var(--black);
  background: rgba(0,0,0,0.05);
}

/* ── Hamburger ── */
.rip-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.rip-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.rip-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rip-hamburger.open span:nth-child(2) { opacity: 0; }
.rip-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Overlay ── */
.rip-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.rip-overlay.open {
  transform: translateX(0);
}

.rip-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.rip-overlay-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  color: var(--black);
}

.rip-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rip-overlay-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--black);
  font-size: 1.15rem;
  font-weight: 600;
  transition: opacity 0.15s;
}

.rip-overlay-link:first-child {
  border-top: 1px solid var(--gray-100);
}

.rip-overlay-link:active { opacity: 0.5; }

.rip-overlay-cta { color: var(--black); font-weight: 700; }

.rip-overlay-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  min-width: 24px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rip-nav-links { display: none; }
  .rip-hamburger { display: flex; }
  .header-cta { display: none; }
}


.hide-on-desktop {
  display: none;
}

.mobile-slider-nav {
  display: none;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.88) 42%,
    rgba(255,255,255,0.15) 68%,
    rgba(255,255,255,0) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 12rem 0 4rem;
  max-width: 620px;
}

/* Dentro l'hero il container non si centra: il testo parte da sinistra */
.hero .container {
  margin-left: 0;
  margin-right: auto;
  padding-left: clamp(1.5rem, 6vw, 7rem);
  max-width: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--black);
  font-size: clamp(3rem, 6vw, 5rem);
}

.hero-title em {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gray-500);
  letter-spacing: -0.02em;
  margin-top: 0.2rem;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--gray-600);
  margin-bottom: 2.25rem;
  line-height: 1.7;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badge {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.hero-badge strong {
  color: var(--black);
}

/* Stats strip below hero */
.hero-stats-strip {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  padding: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--gray-200);
  text-align: center;
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 50px;
  padding: 0.875rem 2rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  border-radius: var(--radius-md);
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}

/* ── LABEL SECTION ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

/* ── FEATURES / METODO (Stile Immagine) ── */
.method-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

.feature-col {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
}

.feature-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── SUBJECTS (Minimal) ── */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.subject-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subject-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subject-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--gray-300);
}

.price-card.featured {
  background: var(--black);
  border-color: var(--black);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.price-card.featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: #111;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.price-card.featured .price-label {
  color: rgba(255,255,255,0.6);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f3f4f6, #ffffff);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  white-space: nowrap;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--black);
}

.price-card.featured .price-amount {
  color: var(--white);
}

.price-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0;
}

.price-card.featured .price-unit {
  color: rgba(255,255,255,0.5);
}

.price-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.price-card.featured .price-desc {
  color: rgba(255,255,255,0.7);
}

.price-saving {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.price-card.featured .price-saving {
  color: rgba(255,255,255,0.8);
  border-top-color: rgba(255,255,255,0.15);
}

.price-cta {
  margin-top: auto;
}

.price-card .btn-outline {
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-width: 1.5px;
}

.price-card.featured .btn {
  background: var(--white);
  color: var(--black);
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
}

.price-card.featured .btn:hover {
  background: #f3f4f6;
  transform: scale(1.02);
}

/* ── FREE LESSON BANNER ── */
.free-banner {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.free-banner-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.free-banner-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.free-banner .btn {
  background: var(--white);
  color: var(--black);
  flex-shrink: 0;
}

.free-banner .btn:hover {
  opacity: 0.88;
}

/* ── FORM STEP-BY-STEP ── */
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1.5rem;
}

.step-dot {
  width: 2.5rem;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  transition: var(--transition);
}

.step-dot.active {
  background: var(--black);
}

.step-dot.completed {
  background: var(--gray-500);
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}

input,
select,
textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.07);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success-icon svg {
  stroke: white;
}

/* ── FOOTER ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-link {
  font-size: 0.8rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--black);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.9) 50%,
      rgba(255,255,255,0.3) 100%
    );
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    justify-content: flex-start;
  }

  .hero-bg {
    object-position: center bottom;
  }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 30%);
  }

  .hero-content {
    padding: 5.5rem 0 2rem;
    max-width: 100%;
  }

  .hide-on-mobile {
    display: none;
  }
  .hide-on-desktop {
    display: block;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat {
    padding: 1.25rem 0.5rem;
    border-right: 1px solid var(--gray-200);
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat:last-child {
    border-right: none;
  }



  .features-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }
  
  .features-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-col {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200); /* override desktop */
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  }

  .mobile-slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .mobile-slider-nav button {
    background: var(--white);
    border: 1px solid var(--gray-200);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--black);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.2s;
  }

  .mobile-slider-nav button:active {
    background: var(--gray-100);
    transform: scale(0.95);
  }

  .subjects-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }
  
  .subjects-grid::-webkit-scrollbar {
    display: none;
  }

  .subject-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    border-radius: 0;
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .price-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
    border-radius: var(--radius-xl);
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
  }

  .free-banner {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
  }

  .free-banner .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .step-actions {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .step-actions .btn {
    width: 100%;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-bg {
    object-position: 80% center;
  }
}

/* ── CONTATTI ── */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
  margin: 2.5rem auto 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
  text-decoration: none;
  color: var(--black);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.contact-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--black);
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

.contact-card-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.contact-card:hover .contact-card-arrow {
  transform: translateX(4px);
}

/* ── CONTATTI LAYOUT (BitLab style) ── */
.contatti-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}
@media (max-width: 860px) {
  .contatti-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contatti-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2rem;
}

textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--black);
  background: white;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
textarea:focus { border-color: var(--black); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-item[open] { border-color: var(--black); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.faq-question {
  padding: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--gray-400); transition: transform 0.3s, color 0.3s;
}
.faq-item[open] .faq-question::after { content: "−"; color: var(--black); transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.5rem 1.5rem; font-size: 0.95rem; line-height: 1.6; color: var(--gray-600); }

/* ── FOOTER ── */
.rip-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.rip-footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
  .rip-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.rip-footer-logo img { opacity: 0.9; filter: invert(1) brightness(2); }

.rip-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  justify-content: center;
}
.rip-footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.rip-footer-links a:hover { color: white; background: rgba(255,255,255,0.08); }

.rip-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}
@media (max-width: 768px) { .rip-footer-contacts { text-align: left; } }
.rip-footer-contacts a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.rip-footer-contacts a:hover { color: white; }

.rip-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.rip-footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.rip-footer-bottom a:hover { color: rgba(255,255,255,0.7); }
@media (max-width: 560px) {
  .rip-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ══════════════════════════════════════════
   RESPONSIVE OTTIMIZZATO — Tablet & Mobile
   (hero escluso)
   ══════════════════════════════════════════ */

/* ── Tablet (≤ 860px) ── */
@media (max-width: 860px) {
  h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  h3 { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }
  .text-lead { font-size: 1rem; }
  .method-section { padding: 3.5rem 0; }
  .method-section h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 1rem; }
  .free-banner { gap: 1.5rem; }
  .contatti-form-card { padding: 1.5rem; }
  .hero-stats { gap: 0; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; }
  h3 { font-size: 1.1rem; }
  p, .text-lead { font-size: 0.95rem; line-height: 1.65; }

  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .method-section { padding: 3rem 0; }
  .method-section h2 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
  .method-section .text-lead { font-size: 0.92rem; }

  .section-tag { font-size: 0.68rem; }
  .section-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .section-sub { font-size: 0.9rem; }

  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 1rem 0.5rem; border-right: 1px solid var(--gray-200); }
  .stat:last-child { border-right: none; }
  .stat-value { font-size: 1.3rem; }
  .stat-label { font-size: 0.68rem; white-space: normal; text-align: center; }

  .subject-name { font-size: 1.2rem; }
  .subject-tag { font-size: 0.72rem; padding: 0.3rem 0.6rem; }

  .feature-eyebrow { font-size: 0.72rem; }
  .feature-title { font-size: 1.05rem; }
  .feature-desc { font-size: 0.88rem; }

  .free-banner { padding: 1.5rem 1.25rem; flex-direction: column; text-align: center; gap: 1.25rem; }
  .free-banner-title { font-size: 1.25rem; }
  .free-banner-sub { font-size: 0.88rem; }

  .contatti-info h2 { font-size: 1.5rem; }
  .contatti-info p { font-size: 0.9rem; }
  .contatti-form-card { padding: 1.25rem; border-radius: 16px; }
  .contact-card { padding: 1rem 1.125rem; }
  .contact-card-value { font-size: 0.875rem; }

  .form-group label { font-size: 0.82rem; }
  input, select { font-size: 0.9rem; padding: 0.75rem 0.875rem; }

  .rip-footer { padding: 2rem 0 1.5rem; }
  .rip-footer-inner { gap: 1rem; }
  .rip-footer-links { justify-content: flex-start; }
  .rip-footer-links a { font-size: 0.82rem; padding: 0.3rem 0.6rem; }
  .rip-footer-contacts a { font-size: 0.8rem; word-break: break-all; }
  .rip-footer-bottom { font-size: 0.75rem; }
}

/* ── Mobile piccolo (≤ 480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  h2 { font-size: clamp(1.3rem, 6.5vw, 1.75rem); }

  .price-card { flex: 0 0 90% !important; }
  .feature-col { flex: 0 0 90% !important; }
  .subject-card { flex: 0 0 90% !important; }

  .contact-card-value { font-size: 0.82rem; }
  .contact-card-icon { width: 38px; height: 38px; }

  .stat { padding: 1rem; }

  .hero-actions .btn { width: 100%; text-align: center; }
}
