/* =============================================
   Aula.school — Landing Page · Light & Luminous
   ============================================= */

/* ── Variables ── */
:root {
  --brand-1: #4f6ef7;
  --brand-2: #7c3aed;
  --accent: #06d6a0;
  --accent-2: #38bdf8;

  --bg-body: #f8faff;
  --bg-white: #ffffff;
  --bg-light: #f0f4ff;

  --text-dark: #1e293b;
  --text-body: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(79,110,247,.10);
  --shadow-lg: 0 12px 40px rgba(79,110,247,.12);
  --shadow-brand: 0 8px 28px rgba(79,110,247,.30);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-body);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { color: var(--text-dark); }
.text-white-80 { color: rgba(255,255,255,.80) !important; }
.text-white-60 { color: rgba(255,255,255,.60) !important; }

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
.nav-glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(79,110,247,.08);
  transition: background .35s, box-shadow .35s;
}
.nav-glass.scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 20px rgba(79,110,247,.08);
}
.nav-glass .nav-link { color: var(--text-body) !important; font-weight: 500; font-size: .88rem; transition: color .2s; }
.nav-glass .nav-link:hover { color: var(--brand-1) !important; }
.navbar-toggler { border-color: rgba(79,110,247,.2); }
.navbar-toggler-icon { filter: none; background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%234f6ef7' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

.subsection-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 999px;
  border: 1.5px solid var(--brand-1);
  color: var(--brand-1);
  background: rgba(79,110,247,.06);
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff !important;
  border: none;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  filter: brightness(1.05);
  color: #fff !important;
}
.shadow-brand { box-shadow: var(--shadow-brand); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #eef2ff 0%, #f8faff 35%, #fdf4ff 65%, #f0f9ff 100%);
}
.min-vh-hero { min-height: calc(100vh - 60px); padding-top: 7rem; padding-bottom: 3rem; }

/* Animated gradient orbs */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  will-change: transform;
}
.orb-1 { width: 45vw; height: 45vw; max-width: 600px; max-height: 600px; top: -10%; left: -10%; background: radial-gradient(circle, #c4b5fd, #a78bfa 60%, transparent 70%); animation: orbFloat 14s ease-in-out infinite; }
.orb-2 { width: 40vw; height: 40vw; max-width: 500px; max-height: 500px; bottom: -15%; right: -8%;  background: radial-gradient(circle, #93c5fd, #60a5fa 60%, transparent 70%); animation: orbFloat 18s ease-in-out infinite reverse; }
.orb-3 { width: 25vw; height: 25vw; max-width: 320px; max-height: 320px; top: 20%; right: 25%;     background: radial-gradient(circle, #6ee7b7, #34d399 60%, transparent 70%); opacity: .3; animation: orbFloat 12s ease-in-out infinite; }
.orb-4 { width: 18vw; height: 18vw; max-width: 220px; max-height: 220px; bottom: 30%; left: 15%;   background: radial-gradient(circle, #fda4af, #fb7185 60%, transparent 70%); opacity: .25; animation: orbFloat 16s ease-in-out infinite 2s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(12px, -18px) scale(1.04); }
  66%  { transform: translate(-8px, 10px) scale(.97); }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(79,110,247,.08);
  border: 1px solid rgba(79,110,247,.15);
  color: var(--brand-1);
  font-weight: 600;
  font-size: .82rem;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text-dark);
}
.grad-text {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 540px;
}

/* Hero wave */
.hero-wave-wrap {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave { width: 100%; height: auto; display: block; }

/* Browser mockup */
.hero-mockup { position: relative; max-width: 480px; margin-left: auto; }
.mockup-browser {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(79,110,247,.15), 0 0 0 1px rgba(79,110,247,.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.browser-dots {
  display: flex;
  gap: 6px;
  padding: 14px 18px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #fca5a5; }
.browser-dots span:nth-child(2) { background: #fcd34d; }
.browser-dots span:nth-child(3) { background: #6ee7b7; }
.browser-content {
  display: flex;
  height: 320px;
  gap: 0;
}
.mock-sidebar {
  width: 52px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  border-right: 1px solid #e2e8f0;
}
.mock-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.mock-card {
  border-radius: var(--radius-sm);
  animation: cardPulse 3s ease-in-out infinite;
}
.mc-1 { background: linear-gradient(135deg, #c4b5fd, #a78bfa); grid-column: span 2; animation-delay: 0s; }
.mc-2 { background: linear-gradient(135deg, #93c5fd, #60a5fa); animation-delay: .5s; }
.mc-3 { background: linear-gradient(135deg, #6ee7b7, #34d399); animation-delay: 1s; }
.mc-4 { background: linear-gradient(135deg, #fda4af, #fb7185); grid-column: span 2; animation-delay: 1.5s; }
@keyframes cardPulse {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}
.mockup-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(79,110,247,.12), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   SECTIONS BASE
   ═══════════════════════════════════════════════ */
.sec { padding: 5.5rem 0; }
.sec-white { background: var(--bg-white); }
.sec-light { background: var(--bg-light); }

.sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(79,110,247,.07);
  border: 1px solid rgba(79,110,247,.12);
  color: var(--brand-1);
  font-weight: 600;
  font-size: .8rem;
}
.sec-pill-violet { background: rgba(124,58,237,.07); border-color: rgba(124,58,237,.15); color: #7c3aed; }
.sec-pill-amber  { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.15); color: #d97706; }

.sec-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--text-dark);
}
.sec-sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════
   PAIN CARDS
   ═══════════════════════════════════════════════ */
.card-pain {
  background: var(--bg-white);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-pain:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-pain-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.icon-red    { background: #fef2f2; color: #ef4444; }
.icon-amber  { background: #fffbeb; color: #f59e0b; }
.icon-violet { background: #f5f3ff; color: #8b5cf6; }
.icon-blue   { background: #eff6ff; color: #3b82f6; }
.icon-green  { background: #f0fdf4; color: #22c55e; }
.icon-cyan   { background: #ecfeff; color: #06b6d4; }
.icon-teal   { background: #f0fdfa; color: #14b8a6; }

.card-pain h5 { color: var(--text-dark); font-weight: 700; margin-bottom: 10px; font-size: 1.05rem; }
.card-pain p  { color: var(--text-body); margin: 0; font-size: .9rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════
   PILLAR SECTIONS
   ═══════════════════════════════════════════════ */
.pillar-num {
  display: inline-block;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .18;
}
.pillar-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}
.pillar-icon-lg {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  font-size: 2.8rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}
.pillar-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,110,247,.08), transparent 70%);
  filter: blur(20px);
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-body);
  font-size: .9rem;
  line-height: 1.6;
}
.check-list li i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
  font-size: .85rem;
}
.check-list.compact li { padding: 4px 0; font-size: .87rem; }

/* ═══════════════════════════════════════════════
   SPECIAL CARDS (Funzioni speciali)
   ═══════════════════════════════════════════════ */
.card-special {
  background: var(--bg-white);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.card-special:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-special-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cs-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   TRUST / SECURITY
   ═══════════════════════════════════════════════ */
.trust-globe {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 2px solid rgba(79,110,247,.10);
  font-size: 4rem;
  color: var(--brand-1);
  box-shadow: 0 16px 50px rgba(79,110,247,.10);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(6,214,160,.08);
  border: 1px solid rgba(6,214,160,.20);
  color: #059669;
  font-weight: 700;
  font-size: .82rem;
}
.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-white);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.trust-card:hover { transform: translateY(-3px); }
.trust-card-icon { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   REVIEWS / TESTIMONIALS
   ═══════════════════════════════════════════════ */
.card-review {
  background: var(--bg-white);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.card-review:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.review-stars { color: #f59e0b; margin-bottom: 14px; font-size: .85rem; letter-spacing: 2px; }
.card-review > p { color: var(--text-body); font-size: .9rem; line-height: 1.7; font-style: italic; }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  flex-shrink: 0;
}
.review-avatar.bg-teal   { background: linear-gradient(135deg, #14b8a6, #06d6a0); }
.review-avatar.bg-violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* ═══════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════ */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
}
.accordion-item {
  background: var(--bg-white) !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.accordion-button {
  background: transparent !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: .93rem;
  box-shadow: none !important;
  padding: 18px 22px;
}
.accordion-button:not(.collapsed) { color: var(--brand-1) !important; }
.accordion-button::after { filter: none; }
.accordion-body {
  color: var(--text-body);
  font-size: .9rem;
  line-height: 1.75;
  padding: 0 22px 20px;
}

/* ═══════════════════════════════════════════════
   CTA (Final — keeps dark/gradient)
   ═══════════════════════════════════════════════ */
.sec-cta {
  background:
    radial-gradient(120% 120% at 10% 10%, #7c3aed 0%, transparent 50%),
    radial-gradient(100% 100% at 90% 20%, #4f6ef7 0%, transparent 45%),
    linear-gradient(160deg, #1e1b4b, #0f172a 60%);
  position: relative;
  overflow: hidden;
}
.sec-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-counter { text-align: center; }
.cta-num {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.cta-unit {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}

/* ═══════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 0 1rem 1rem;
  pointer-events: none;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s ease;
}
.cookie-banner-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, .88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -4px 40px rgba(0,0,0,.25);
}
.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  flex: 1;
  min-width: 0;
}
.cookie-banner-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-banner-title {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 .25rem;
}
.cookie-banner-desc {
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  line-height: 1.55;
  margin: 0;
}
.cookie-banner-desc a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-desc a:hover {
  color: #fff;
}
.cookie-banner-actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
.cookie-banner-actions .btn {
  white-space: nowrap;
  font-size: .82rem;
}
@media (max-width: 767.98px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
  }
  .cookie-banner-text {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cookie-banner-actions {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.65);
}
.footer a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.text-white-50 { color: rgba(255,255,255,.50) !important; }

/* ═══════════════════════════════════════════════
   REVEAL ON SCROLL
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .min-vh-hero { min-height: auto; padding-top: 6.5rem; padding-bottom: 4rem; }
  .pillar-visual { min-height: 160px; }
  .pillar-icon-lg { width: 85px; height: 85px; font-size: 2rem; border-radius: 22px; }
  .pillar-num { font-size: 2.5rem; }
  .trust-globe { width: 120px; height: 120px; font-size: 3rem; margin-bottom: 1rem; }
}

@media (max-width: 767.98px) {
  .sec { padding: 3.5rem 0; }
  .hero-title { font-size: 1.7rem; }
  .card-pain, .card-special, .card-review { padding: 22px 18px; }
  .cta-num { font-size: 2.2rem; }
  .cta-counters { gap: 2rem !important; }
}
