/* ============================================================
   AGENZIA NUBES — Design System
   Palette dal logo: teal #5E939B · lime #AFC25F
   ============================================================ */

:root {
  --teal: #5E939B;
  --teal-dark: #3E6E76;
  --teal-ink: #2C4A51;
  --lime: #AFC25F;
  --lime-dark: #8CA346;
  --lime-soft: #EEF3DC;
  --ink: #22333B;
  --body: #46606A;
  --bg: #F4F8F8;
  --white: #FFFFFF;
  --line: rgba(44, 74, 81, 0.12);
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 20px 50px -18px rgba(44, 74, 81, 0.25);
  --shadow-sm: 0 10px 30px -12px rgba(44, 74, 81, 0.18);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--lime-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.05rem; margin-bottom: 8px; }

::selection { background: var(--lime); color: var(--teal-ink); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--teal-ink); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(860px, 92%); }

.text-teal { color: var(--teal-dark); }
.text-lime { color: var(--lime); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(94, 147, 155, 0.12);
  border: 1px solid rgba(94, 147, 155, 0.25);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-dark .eyebrow {
  color: var(--lime);
  background: rgba(175, 194, 95, 0.12);
  border-color: rgba(175, 194, 95, 0.3);
}

.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-soft { background: linear-gradient(180deg, #EAF1F1 0%, var(--bg) 100%); }
.section-sub { font-size: 1.12rem; max-width: 640px; margin-bottom: 20px; }

/* ============ BOTTONI ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-lime { background: var(--lime); color: var(--teal-ink); box-shadow: 0 12px 28px -10px rgba(175, 194, 95, 0.7); }
.btn-lime:hover { background: var(--lime-dark); color: #fff; transform: translateY(-2px); }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: var(--teal-ink); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--teal-ink); font-weight: 600; padding: 10px 18px; }
.btn-ghost:hover { color: var(--lime-dark); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.nav.scrolled {
  box-shadow: 0 4px 30px rgba(44, 74, 81, 0.1);
}
.nav-inner {
  width: min(1240px, 94%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 20px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-weight: 500; font-size: 0.95rem; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--lime); border-radius: 2px;
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 420px at 82% 8%, rgba(175, 194, 95, 0.22), transparent 65%),
    radial-gradient(700px 500px at 8% 20%, rgba(94, 147, 155, 0.2), transparent 65%),
    radial-gradient(500px 400px at 50% 90%, rgba(94, 147, 155, 0.12), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
.hero-sub { font-size: 1.15rem; max-width: 540px; margin: 22px 0 30px; }
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof {
  list-style: none; display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap;
}
.hero-proof li { font-size: 0.95rem; color: var(--body); }
.hero-proof strong {
  display: block; font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 800; color: var(--teal-dark); line-height: 1.1;
}
.hero-visual img {
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  transition: transform .5s ease;
}
.hero-visual img:hover { transform: rotate(0deg) scale(1.01); }

/* ============ MARQUEE ============ */
.marquee {
  margin-top: 80px; padding: 18px 0;
  background: var(--teal-ink);
  overflow: hidden;
  transform: rotate(-1deg) scale(1.02);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: rgba(255, 255, 255, 0.85); white-space: nowrap;
  display: flex; align-items: center; gap: 48px;
}
.marquee-track span::after { content: "●"; color: var(--lime); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ PILASTRI ============ */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-top: 48px;
}
.pillar {
  position: relative;
  background: var(--white); border-radius: var(--radius);
  padding: 40px 34px 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  opacity: 0; transition: opacity .35s;
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar:hover::before { opacity: 1; }
.pillar-num {
  font-family: var(--font-display); font-weight: 800; font-size: 3rem;
  color: rgba(94, 147, 155, 0.22); line-height: 1; display: block; margin-bottom: 14px;
}
.pillar h3 { font-size: 1.35rem; }
.pillar p { font-size: 0.98rem; margin-bottom: 18px; }
.pillar-link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--teal-dark);
}
.pillar-link:hover { color: var(--lime-dark); }

/* ============ SPLIT ============ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.split-rev > .split-copy { order: 2; }
.split-rev > .split-visual { order: 1; }
.split-copy > p { margin-bottom: 16px; }
.split-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-top: 28px;
}
.feature {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px;
  transition: transform .3s ease, border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--teal); }
.feature h4 { color: var(--teal-dark); }
.feature p { font-size: 0.92rem; }

/* ============ PRICING ============ */
.pricing {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 56px;
}
.price-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card-dark { background: var(--teal-ink); border-color: var(--teal-ink); }
.price-card-dark h4, .price-card-dark .price { color: #fff; }
.price-card-dark .price-note { color: rgba(255, 255, 255, 0.75); }
.price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.7rem; color: var(--teal-dark); margin: 10px 0 8px;
}
.price span { font-size: 0.95rem; font-weight: 600; color: var(--body); }
.price-card-dark .price span { color: rgba(255, 255, 255, 0.75); }
.price-note { font-size: 0.9rem; }

/* ============ CHECK LIST ============ */
.check-list { list-style: none; margin: 22px 0 26px; }
.check-list li {
  position: relative; padding: 9px 0 9px 36px; font-size: 1rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--lime); color: var(--teal-ink);
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.check-list strong { color: var(--ink); }
.section-dark .check-list strong { color: #fff; }

.mini-pricing {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 6px 0 30px;
}
.mini-pricing > div {
  background: var(--white); border: 1px dashed rgba(94, 147, 155, 0.45);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.section-dark .mini-pricing > div {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(175, 194, 95, 0.4);
}
.section-dark .mini-pricing .price { color: var(--lime); }
.section-dark .mini-pricing .price-note { color: rgba(255, 255, 255, 0.75); }

/* ============ SEZIONE DARK ============ */
.section-dark {
  background:
    radial-gradient(700px 500px at 90% 0%, rgba(175, 194, 95, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(94, 147, 155, 0.2), transparent 60%),
    var(--teal-ink);
  color: rgba(255, 255, 255, 0.82);
}
.section-dark h2 { color: #fff; }
.section-dark .split-visual img { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }

/* ============ CORSI ============ */
.course-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 44px;
}
.course {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tag-course {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--lime-soft); color: var(--lime-dark);
  border-radius: 100px; padding: 5px 12px; margin-bottom: 10px;
}
.course h3 { font-size: 1.08rem; }
.course-meta { font-size: 0.85rem; color: var(--teal); font-weight: 500; }
.course-price {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  color: var(--teal-dark); margin-top: 10px;
}

/* ============ STATS ============ */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .3s ease;
}
.stat:hover { transform: translateY(-4px); }
.stat-n {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 3rem; color: var(--teal-dark); line-height: 1;
}
.stat:nth-child(even) .stat-n { color: var(--lime-dark); }
.stat-l { display: block; margin-top: 10px; font-size: 0.92rem; }

/* ============ STEP ============ */
.steps {
  list-style: none; margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: step;
}
.step {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}
.step:hover { transform: translateY(-6px); }
.step span {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  background: linear-gradient(120deg, var(--teal), var(--lime-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px; line-height: 1;
}
.step p { font-size: 0.93rem; }

/* ============ FAQ ============ */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.faq {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq[open] { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); padding: 20px 60px 20px 24px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(94, 147, 155, 0.12); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 600; transition: transform .3s, background .3s;
}
.faq[open] summary::after { content: "−"; background: var(--lime); }
.faq p { padding: 0 24px 22px; font-size: 0.98rem; }

/* ============ CTA / CONTATTI ============ */
.section-cta {
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(175, 194, 95, 0.25), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(94, 147, 155, 0.25), transparent 60%),
    #EAF1F1;
}
.cta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin: 40px 0;
}
.cta-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cta-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cta-ico {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.cta-card:nth-child(2) .cta-ico { background: linear-gradient(135deg, var(--lime), var(--lime-dark)); color: var(--teal-ink); }
.cta-card strong { color: var(--ink); font-family: var(--font-display); }
.cta-card span:last-child { font-size: 0.95rem; color: var(--body); }

.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 7px;
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
  margin-bottom: 18px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg);
  color: var(--ink); transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(94, 147, 155, 0.15);
  background: #fff;
}
.form-note { font-size: 0.85rem; margin-top: 14px; }

/* ============ PAGINE INTERNE ============ */
.page-hero {
  padding: 64px 0 70px;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(175, 194, 95, 0.2), transparent 60%),
    radial-gradient(700px 500px at 5% 30%, rgba(94, 147, 155, 0.18), transparent 60%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 800px; }
.page-hero .section-sub { margin-bottom: 30px; }
.breadcrumb { font-size: 0.88rem; margin-bottom: 22px; color: var(--body); }
.breadcrumb a { color: var(--teal-dark); font-weight: 500; }

/* ============ FOOTER ============ */
.footer { background: var(--teal-ink); color: rgba(255, 255, 255, 0.75); padding: 70px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 50px;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer nav a { display: block; color: rgba(255, 255, 255, 0.75); padding: 5px 0; font-size: 0.95rem; }
.footer nav a:hover, .footer a:hover { color: var(--lime); }
.footer a { color: rgba(255, 255, 255, 0.85); }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-grid p { font-size: 0.95rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ============ REVEAL ============ */
/* Senza JS il contenuto resta sempre visibile: l'animazione e' un miglioramento, non un requisito */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ============ ACCENTO SERIF EDITORIALE ============ */
.accent {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--teal-dark);
}
.accent-lime { color: var(--lime); }
.section-dark h2 .accent { color: var(--lime); }

/* ============ TRUSTBAR ============ */
.trustbar {
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.trustbar-inner {
  display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  padding: 18px 0;
}
.trustbar-inner span {
  font-size: 0.92rem; color: var(--body);
  display: flex; align-items: center; gap: 8px;
}
.trustbar-inner span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); flex: none;
}
.trustbar-inner strong { color: var(--teal-ink); font-weight: 600; }

/* ============ PILASTRI: prezzo ============ */
.pillar-price {
  font-size: 0.9rem; color: var(--body);
  margin: -6px 0 16px !important;
}
.pillar-price strong {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; color: var(--teal-dark);
}

/* ============ STATS IN RIGA ============ */
.stats-row {
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(36px, 5vw, 56px);
}
@media (max-width: 1024px) { .stats-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .trustbar-inner { gap: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .pillars, .pricing { grid-template-columns: 1fr 1fr; }
  .course-grid, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(244, 248, 248, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 30px; font-size: 1.3rem;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-links a { font-size: 1.3rem; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 10px; z-index: 101;
  }
  .nav-toggle span {
    width: 26px; height: 2.5px; background: var(--teal-ink); border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .hero { padding-top: 40px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split-rev > .split-copy { order: 1; }
  .split-rev > .split-visual { order: 2; }
  .hero-visual img { transform: none; }
  .marquee { transform: none; margin-top: 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .mini-pricing { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pillars, .pricing, .course-grid, .steps, .stats { grid-template-columns: 1fr; }
  .hero-proof { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}

/* ============ NAVIGAZIONE MOBILE: proporzioni, touch e accessibilita' ============ */
.nav-logo {
  position: relative;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.nav-logo img {
  width: auto;
  height: 44px;
  max-width: none;
  flex: none;
}

@media (max-width: 860px) {
  /* Il backdrop-filter sul contenitore renderebbe il pannello fixed alto quanto l'header. */
  .nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-inner {
    min-height: 76px;
    padding: 12px 0;
    gap: 16px;
  }
  .nav-logo img { width: 132px; height: 44px; }
  .nav-cta { margin-left: auto; flex: none; }
  .nav-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 12px 10px;
    align-items: center;
    justify-content: center;
    flex: none;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:focus-visible,
  .nav-links a:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 4px;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(104px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(28px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 100% 0%, rgba(175, 194, 95, 0.2), transparent 38%),
      radial-gradient(circle at 0% 100%, rgba(94, 147, 155, 0.16), transparent 42%),
      #f4f8f8;
    backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav-links::before {
    content: "Navigazione";
    width: 100%;
    max-width: 440px;
    margin: 0 auto 12px;
    color: var(--teal-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 440px;
    min-height: 64px;
    margin-inline: auto;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--teal-ink);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 6vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { color: var(--teal-dark); }
  html.nav-open,
  body.nav-open { overscroll-behavior: none; }
}

@media (max-width: 860px) {
  .hero-grid > *,
  .split > *,
  .cta-grid > *,
  .form-grid > *,
  .pricing > *,
  .pillars > *,
  .course-grid > *,
  .steps > *,
  .stats > *,
  .footer-grid > * { min-width: 0; }
}

@media (max-width: 600px) {
  .nav-cta .btn-lime { display: none; }
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .hero-actions { align-items: stretch; }
  .hero-actions .btn {
    width: 100%;
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-toggle span { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
