
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #fff; color: #111; line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }


/* Logo — dual file, fixed container for consistent size */

/* ═══ CURVED SECTION TRANSITIONS ═══ */
.curve-top { position: relative; }
.curve-top::before { content: ''; position: absolute; top: -59px; left: 0; right: 0; height: 60px; background: inherit; clip-path: polygon(0 100%, 100% 0, 100% 100%); z-index: 1; }
.what-you-get { position: relative; }
.what-you-get::before { content: ''; position: absolute; top: -59px; left: 0; right: 0; height: 60px; background: #efe9df; clip-path: polygon(0 100%, 100% 0, 100% 100%); z-index: 1; }

/* ═══ NAVBAR ═══ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: #cd6903; z-index: 9999; width: 0%; transition: width 0.05s linear; }
/* Dark mode switch */
.dark-switch { cursor: pointer; }
.dark-switch-track { width: 52px; height: 28px; background: #e5e2dc; border-radius: 14px; position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; transition: background 0.3s; }
.dark-switch-icon { font-size: 0.65rem; line-height: 1; z-index: 1; }
.dark-switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,0.15); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
/* Mobile nav */


/* ─── HERO — Full-width immersive ─── */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 120px 24px 80px; color: #fff; }
.hero-badge { display: inline-block; background: rgba(205,105,3,0.9); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 6px 16px; border-radius: 20px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: #cd6903; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: #cd6903; }
.hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 14px 32px; border-radius: 50px; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; font-family: 'Inter', sans-serif; }
.btn-orange { background: #cd6903; color: #fff; }
.btn-orange:hover { background: #b85d02; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { border-color: #cd6903; color: #cd6903; }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { background: #cd6903; color: #fff; }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #cd6903; }
.btn-full { width: 100%; justify-content: center; }

/* ─── SECTION TAGS ─── */
.section-tag { display: inline-block; font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: #cd6903; margin-bottom: 14px; font-weight: 600; }

/* ─── INTRO ─── */
.intro { padding: 100px 24px; background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.intro-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: #111; margin-bottom: 20px; }
.intro-text h2 em { color: #cd6903; font-style: italic; }
.intro-text p { font-size: 0.95rem; color: #3a3a3a; line-height: 1.8; margin-bottom: 16px; }
.intro-img { border-radius: 12px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.intro-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ─── WHAT YOU GET ─── */
.what-you-get { padding: 100px 24px; background: #efe9df; }
.wyg-header { text-align: center; margin-bottom: 56px; }
.wyg-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.wyg-header h2 em { color: #cd6903; font-style: italic; }
.wyg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wyg-card { background: #fff; border-radius: 14px; padding: 32px 24px; text-align: center; transition: transform 0.3s; }
.wyg-card:hover { transform: translateY(-4px); }
.wyg-icon { font-size: 2rem; margin-bottom: 16px; }
.wyg-card h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.wyg-card p { font-size: 0.85rem; color: #6b6b6b; line-height: 1.6; }

/* ─── SOCIAL PROOF BAR ─── */
.social-proof-bar { padding: 48px 24px; background: #fff; border-bottom: 1px solid #e5e2dc; }

/* ─── VIDEO PREVIEW ─── */
.video-preview { position: relative; max-width: 700px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.12); cursor: pointer; aspect-ratio: 16/9; background: #111; }
.video-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-preview:hover img { transform: scale(1.03); }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); transition: background 0.3s; }
.video-preview:hover .video-play { background: rgba(0,0,0,0.35); }
.play-btn { width: 72px; height: 72px; border-radius: 50%; background: #cd6903; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(205,105,3,0.4); transition: transform 0.3s; }
.video-preview:hover .play-btn { transform: scale(1.1); }
.play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }

/* ─── BEFORE/AFTER SLIDER ─── */
.ba-container { max-width: 700px; margin: 0 auto; position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.12); user-select: none; -webkit-user-select: none; aspect-ratio: 16/10; }
.ba-img { position: absolute; inset: 0; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { z-index: 1; }
.ba-after { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-slider { position: absolute; inset: 0; z-index: 3; cursor: ew-resize; }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 8px rgba(0,0,0,0.3); }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; }
.ba-handle svg { width: 20px; height: 20px; fill: #cd6903; }
.ba-label { position: absolute; bottom: 16px; padding: 4px 14px; border-radius: 20px; font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-family: 'Inter', sans-serif; z-index: 4; }
.ba-label-before { left: 16px; background: rgba(0,0,0,0.6); color: #fff; }
.ba-label-after { right: 16px; background: #cd6903; color: #fff; }

/* ─── STUDENT COUNTER ─── */
.student-counter { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; padding: 8px 18px; margin-top: 20px; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: scPulse 2s ease-in-out infinite; }
@keyframes scPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.sc-text { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.sc-num { color: #fff; font-weight: 700; }
.sp-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.sp-item { text-align: center; }
.sp-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: #111; }
.sp-label { font-size: 0.72rem; color: #6b6b6b; text-transform: uppercase; letter-spacing: 1px; }
.sp-stars { color: #cd6903; font-size: 1rem; letter-spacing: 2px; }

/* ─── REVIEWS ─── */
.course-reviews { padding: 80px 24px; background: #efe9df; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.review-card { background: #fff; border-radius: 12px; padding: 28px; }
.review-quote { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: #cd6903; line-height: 1; opacity: 0.4; }
.review-text { font-size: 0.88rem; color: #3a3a3a; line-height: 1.7; margin: 8px 0 16px; }
.review-author { font-size: 0.82rem; font-weight: 600; color: #111; }
.review-meta { font-size: 0.72rem; color: #6b6b6b; }

/* ─── NEXT STEP ─── */
.next-step { padding: 80px 24px; background: #fff; border-top: 1px solid #e5e2dc; }
.next-inner { display: flex; gap: 32px; align-items: center; max-width: 700px; margin: 0 auto; }
.next-arrow { font-size: 2rem; color: #cd6903; flex-shrink: 0; }
.next-text h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.next-text p { font-size: 0.85rem; color: #6b6b6b; }
.next-text a { color: #cd6903; font-weight: 600; font-size: 0.88rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .intro-grid { grid-template-columns: 1fr !important; }
    .wyg-grid { grid-template-columns: 1fr !important; }
    .reviews-grid { grid-template-columns: 1fr !important; }
    .sp-inner { gap: 24px; }
    .next-inner { flex-direction: column; text-align: center; }
    .hero-stats { gap: 20px; }
    .hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    /* Inline grid sections */
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: auto 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:auto 1fr"] { grid-template-columns: 1fr !important; }
    /* Docente photo center on mobile */
    [style*="width:160px;height:160px;border-radius:50%"] { margin: 0 auto; }
    /* Docente section text center on mobile */
    .container > [style*="grid-template-columns:auto 1fr"] > div:last-child { text-align: center; }
    /* Competenze 3-col to 1-col */
    [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
    /* Sticky CTA mobile */
    .sticky-cta-mobile { display: flex !important; }
    /* Footer 5-col collapse */
    [style*="grid-template-columns:1.5fr"] { grid-template-columns: 1fr !important; gap: 24px !important; text-align: center; }
    body { padding-bottom: 64px; }
}

/* ─── STICKY CTA MOBILE ─── */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 998;
    padding: 12px 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.sticky-cta-mobile.visible { transform: translateY(0); }
.sticky-cta-mobile a {
    background: #cd6903; color: #fff; padding: 12px 32px; border-radius: 50px;
    font-size: 0.88rem; font-weight: 700; font-family: 'Inter', sans-serif;
    text-align: center; flex: 1; max-width: 360px; transition: background 0.3s;
}
.sticky-cta-mobile a:hover { background: #b85d02; }

/* ═══ DARK MODE ═══ */
body.dark { background: #111; color: #e0e0e0; }
body.dark .dark-switch-track { background: #333; }
body.dark .dark-switch-thumb { transform: translateX(24px); background: #cd6903; }
body.dark .section-tag { color: #cd6903; }
body.dark .intro { background: #111; }
body.dark .intro-text h2 { color: #fff; }
body.dark .intro-text p { color: rgba(255,255,255,0.6); }
body.dark .what-you-get { background: #1a1a1a; }
body.dark .wyg-card { background: #222; }
body.dark .wyg-card h3 { color: #fff; }
body.dark .wyg-card p { color: rgba(255,255,255,0.5); }
body.dark .course-reviews { background: #111; }
body.dark .review-card { background: #1a1a1a; }
body.dark .review-text { color: rgba(255,255,255,0.6); }
body.dark .review-author { color: #fff; }
body.dark .review-meta { color: rgba(255,255,255,0.4); }
body.dark h2 { color: #fff; }
body.dark [style*="background:#fff"] { background: #111 !important; }
body.dark [style*="background:#efe9df"] { background: #1a1a1a !important; }
body.dark [style*="background:#f8f6f2"] { background: #222 !important; }
body.dark [style*="color:#111"] { color: #fff !important; }
body.dark [style*="color:#3a3a3a"] { color: rgba(255,255,255,0.7) !important; }
body.dark [style*="color:#6b6b6b"] { color: rgba(255,255,255,0.5) !important; }
body.dark [style*="border:1px solid #e5e2dc"] { border-color: rgba(255,255,255,0.1) !important; }
body.dark [style*="border-bottom:1px solid #e5e2dc"] { border-color: rgba(255,255,255,0.08) !important; }
body.dark .sticky-cta-mobile { background: rgba(17,17,17,0.95); }

/* ═══ ACCENT BRONZE ═══ */
body.accent-bronze .section-tag { color: #7a5f3a; }
body.accent-bronze .btn-orange { background: #7a5f3a; }
body.accent-bronze .btn-orange:hover { background: #5e4a2d; }
body.accent-bronze .btn-dark:hover { background: #7a5f3a; }
body.accent-bronze .btn-white:hover { background: #7a5f3a; }
body.accent-bronze .btn-outline-white:hover { border-color: #7a5f3a; color: #7a5f3a; }
body.accent-bronze .scroll-progress { background: #7a5f3a; }
body.accent-bronze .wyg-header h2 em { color: #7a5f3a; }
body.accent-bronze .review-quote { color: #7a5f3a; }
body.accent-bronze .hero-badge { background: rgba(122,95,58,0.9); }
body.accent-bronze .hero h1 em { color: #7a5f3a; }
body.accent-bronze .hero-stat-num { color: #7a5f3a; }
body.accent-bronze .intro-text h2 em { color: #7a5f3a; }
body.accent-bronze .sp-stars { color: #7a5f3a; }
body.accent-bronze .sticky-cta-mobile a { background: #7a5f3a; }
body.accent-bronze .ba-label-after { background: #7a5f3a; }
body.accent-bronze .ba-handle svg { fill: #7a5f3a; }
body.accent-bronze .sc-num { color: #7a5f3a; }
body.accent-bronze [style*="color:#cd6903"] { color: #7a5f3a !important; }
body.accent-bronze [style*="background:#cd6903"] { background: #7a5f3a !important; }
body.accent-bronze [style*="background:rgba(205,105,3"] { background: rgba(122,95,58,0.06) !important; }
body.accent-bronze [style*="border-color:#cd6903"] { border-color: #7a5f3a !important; }
body.accent-bronze [style*="background:linear-gradient(135deg,#cd6903"] { background: linear-gradient(135deg,#7a5f3a,#a07d4a) !important; }


/* ═══ DARK MODE COMPREHENSIVE ═══ */
body.dark { background: #111 !important; color: #e0e0e0 !important; }
body.dark .dark-switch-track { background: #333 !important; }
body.dark .dark-switch-thumb { background: #cd6903 !important; }
body.dark h1, body.dark h2, body.dark h3 { color: #fff !important; }
body.dark p { color: rgba(255,255,255,0.6) !important; }
body.dark section { background: #111 !important; }
body.dark [style*="background:#fff"] { background: #111 !important; }
body.dark [style*="background:#efe9df"] { background: #1a1a1a !important; }
body.dark [style*="background:#faf8f5"] { background: #1a1a1a !important; }
body.dark [style*="background:#f8f6f2"] { background: #1a1a1a !important; }
body.dark [style*="color:#111"] { color: #fff !important; }
body.dark [style*="color:#3a3a3a"] { color: rgba(255,255,255,0.7) !important; }
body.dark [style*="color:#6b6b6b"] { color: rgba(255,255,255,0.5) !important; }
body.dark [style*="border:1px solid #e5e2dc"] { border-color: rgba(255,255,255,0.1) !important; }
body.dark [style*="border-bottom:1px solid #e5e2dc"] { border-color: rgba(255,255,255,0.08) !important; }
body.dark [style*="border:1.5px solid #e5e2dc"] { border-color: rgba(255,255,255,0.1) !important; }
body.dark .btn-dark { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
body.dark .btn-outline-dark { border-color: rgba(255,255,255,0.15) !important; color: rgba(255,255,255,0.6) !important; }

@keyframes pulse{0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.6;transform:scale(0.85);}}
.reveal-item{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal-item.revealed{opacity:1;transform:translateY(0)}

/* ═══ FLOATING CTA ═══ */
.floating-cta{position:fixed;bottom:0;left:0;right:0;z-index:999;background:rgba(17,17,17,.95);backdrop-filter:blur(16px);padding:12px 20px;text-align:center;opacity:0;transform:translateY(100%);pointer-events:none;transition:all .4s ease;border-top:1px solid rgba(205,105,3,.2)}
.floating-cta.visible{opacity:1;transform:translateY(0);pointer-events:all}
.floating-cta-split{display:flex;align-items:center;justify-content:center;gap:8px}
.floating-cta .cta-wa{display:inline-flex;align-items:center;gap:6px;padding:12px 24px;background:#25d366;color:#fff;border-radius:50px;font-size:.82rem;font-weight:600;text-decoration:none;transition:background .3s;font-family:'Inter',sans-serif}
.floating-cta .cta-wa:hover{background:#1da851}
.floating-cta .cta-inner{display:inline-flex;align-items:center;gap:8px;padding:12px 32px;background:#cd6903;color:#fff;border-radius:50px;font-size:.88rem;font-weight:600;text-decoration:none;box-shadow:0 4px 20px rgba(205,105,3,.35);transition:background .3s}
.floating-cta .cta-inner:hover{background:#b85d02}
@media(max-width:768px){.floating-cta-split{gap:6px}.floating-cta .cta-wa,.floating-cta .cta-inner{padding:11px 16px;font-size:.78rem;border-radius:40px}}
