/* Derivado do CSS do original (27/11/2026) para clone fiel local. */
.langsw { position: relative; display: inline-flex; align-items: center; }
.langsw-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1.5px solid #eee; border-radius: 50px;
    background: #fff; color: #333; font-family: "Outfit", sans-serif;
    font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1;
    transition: border-color .2s, background .2s; white-space: nowrap;
}
.langsw-trigger:hover { border-color: #FF8A3D; background: #FFF8F0; }
.langsw-trigger .fi { width: 18px; height: 13px; border-radius: 2px; flex-shrink: 0; }
.langsw-code { font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.langsw-chevron { width: 10px; height: 10px; flex-shrink: 0; transition: transform .2s; color: #999; }
.langsw.open .langsw-chevron { transform: rotate(180deg); }
.langsw-panel {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1px solid #eee; border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.10); min-width: 170px;
    z-index: 2000; padding: 6px; max-height: 340px; overflow-y: auto;
}
.langsw.open .langsw-panel { display: block; }
.langsw-item {
    display: flex; align-items: center; gap: 9px; padding: 8px 10px;
    border-radius: 8px; font-size: 14px; color: #333;
    text-decoration: none; transition: background .15s; white-space: nowrap;
}
.langsw-item:hover { background: #FFF8F0; }
.langsw-item-active { background: #FFF8F0; font-weight: 600; color: #FF8A3D; }
.langsw-item .fi { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; }
@media (max-width: 900px) {
    .langsw-panel { right: auto; left: 0; }
}
    /* adattamenti selettore lingua alla nav della home */
    .nav-links .langsw-trigger { font-family: 'Outfit', sans-serif; }
    .nav-links a.langsw-item { color: #333; font-size: 14px; font-weight: 400; }
    .nav-links a.langsw-item:hover { color: #FF8A3D; }
    .nav-links a.langsw-item-active { color: #FF8A3D; font-weight: 600; }
    @media (max-width: 768px) {
        .nav-links .langsw { width: 100%; }
        .nav-links .langsw-trigger { width: 100%; justify-content: flex-start; }
        .nav-links .langsw-panel { position: static; box-shadow: none; margin-top: 8px; }
    }
    :root {
        --primary: #FF8A3D;
        --light-blue: #FF8A3D;
        --max-width: 1200px;
        --beige-bg: #FFF8F0;
    }

    #flag2 { display: none; }
    #flag3 { display: none; }

    * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
    body { overflow-x: hidden; background: white; }

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

    /* ===== HEADER ===== */
    .header-wrapper {
        position: fixed; width: 100%; background: white;
        z-index: 1000; top: 0; border-bottom: 1px solid #eee; height: 80px;
    }
    .header {
        max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
        height: 100%; display: flex; justify-content: space-between;
        align-items: center; position: relative;
    }
    .logo-container { display: flex; align-items: center; gap: 15px; white-space: nowrap; }
    a.logo-link { text-decoration: none; display: flex; align-items: center; gap: 15px; white-space: nowrap; width: auto; }
    .logo-img { width: 40px; height: 40px; }
    .logo-text { font-size: 1.5rem; font-weight: 600; color: #333; white-space: nowrap; }
    .nav-links { margin-left: auto; display: flex; gap: 40px; }
    .nav-links a { color: #333; text-decoration: none; font-size: 1.1rem; font-weight: 500; transition: color 0.3s ease; }
    .nav-links a:hover { color: #666; }
    .hamburger {
        display: none; font-size: 1.8rem; cursor: pointer; color: #333;
        position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 1001;
    }

    /* ===== FEATURED BANNER ===== */
    .featured-banner {
        padding-top: 85px; padding-bottom: 5px;
        background: linear-gradient(135deg, #ffffff 0%, var(--beige-bg) 50%);
        overflow: hidden;
    }
    .featured-scroll {
        display: flex; gap: 20px;
        animation: scrollFeatured 200s linear infinite;
        width: fit-content;
    }
    .featured-cover {
        flex: 0 0 180px; height: 270px; border-radius: 10px; overflow: hidden;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2); transition: transform 0.3s;
    }
    .featured-cover:hover { transform: scale(1.05); }
    .featured-cover img { width: 100%; height: 100%; object-fit: cover; }
    @keyframes scrollFeatured {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* ===== HERO ===== */
.hero {
    padding-top: 20px;
    padding-bottom: 40px;
    background: linear-gradient(135deg, var(--beige-bg) 0%, #ffffff 100%);
    text-align: center;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; line-height: 1.2; }
.hero-subtitle { font-size: 1.35rem; color: #666; max-width: 750px; margin: 0 auto 20px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
    .create-btn {
        background: var(--primary); color: white; border: none; padding: 16px 45px;
        border-radius: 50px; font-size: 1.2rem; font-weight: 600; cursor: pointer;
        transition: all 0.3s ease; text-decoration: none; display: inline-block;
        box-shadow: 0 4px 15px rgba(255,138,61,0.3);
    }
    .create-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,138,61,0.4); }
    .how-it-works-btn {
        background: white; color: var(--primary); border: 2px solid var(--primary);
        padding: 16px 45px; border-radius: 50px; font-size: 1.2rem; font-weight: 600;
        cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block;
    }
    .how-it-works-btn:hover { background: var(--primary); color: white; }

    /* ===== HOW IT WORKS ===== */
    .how-it-works-section { background: var(--beige-bg); padding: 80px 0; }
    .section-subtitle { text-align: center; font-size: 1.1rem; color: #666; margin-bottom: 50px; font-weight: 400; }
    .section-title { text-align: center; font-size: 2.5rem; margin-bottom: 15px; color: #333; }
    .steps-flow {
        display: flex; align-items: center; justify-content: space-between;
        max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative;
    }
    .step-card {
        flex: 1; position: relative; background: white; border-radius: 15px;
        padding: 40px 30px; margin: 0 20px; text-align: center;
        transition: transform 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    .step-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
    .step-icon {
        font-size: 2.5rem; margin-bottom: 20px; height: 60px; width: 60px;
        background: var(--primary); color: white; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    }
    .step-number {
        position: absolute; top: -15px; left: -15px; background: var(--primary);
        color: white; width: 30px; height: 30px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; font-weight: bold;
    }
    .step-card h4 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 600; color: #333; }
    .step-card p  { font-size: 1rem; line-height: 1.5; color: #666; }
    .arrow-separator {
        position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
        font-size: 2rem; color: var(--primary); z-index: 1;
    }

    /* ===== SELETTORE MODALITA' IN "COME FUNZIONA" ===== */
    .mode-switch { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; padding: 0 20px; }
    .mode-btn {
        display: inline-flex; align-items: center; gap: 9px; background: #fff;
        border: 2px solid #eee; border-radius: 50px; padding: 11px 24px; cursor: pointer;
        font-size: 0.98rem; font-weight: 600; color: #888; transition: all 0.25s;
        font-family: 'Outfit', sans-serif;
    }
    .mode-btn i { font-size: 1rem; }
    .mode-btn:hover { border-color: #ddd; }
    .mode-btn.active[data-mode="auto"] { border-color: var(--primary); color: var(--primary); background: rgba(255,138,61,0.07); }
    .mode-btn.active[data-mode="adv"]  { border-color: #7c3aed; color: #6d28d9; background: rgba(124,58,237,0.1); }
    .compare-link { text-align: center; margin-bottom: 44px; }
    .compare-link button {
        background: none; border: none; color: #999; font-size: 0.86rem; cursor: pointer;
        text-decoration: underline; font-family: 'Outfit', sans-serif;
        display: inline-flex; align-items: center; gap: 6px;
    }
    .compare-link button:hover { color: var(--primary); }
    /* colori quando e' attiva la modalita' avanzata */
    .steps-flow.adv .step-icon, .steps-flow.adv .step-number { background: #7c3aed; }
    .steps-flow.adv .arrow-separator { color: #7c3aed; }

    /* popup di confronto */
    .cmp-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none;
        align-items: center; justify-content: center; z-index: 2000; padding: 1.5rem;
    }
    .cmp-overlay.show { display: flex; }
    .cmp-pop {
        background: #fff; border-radius: 18px; max-width: 720px; width: 100%;
        padding: 2rem; position: relative; max-height: 88vh; overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .cmp-x { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; font-size: 1.1rem; color: #aaa; cursor: pointer; }
    .cmp-x:hover { color: #333; }
    .cmp-pop h3 { font-size: 1.5rem; text-align: center; margin-bottom: 0.3rem; }
    .cmp-sub { text-align: center; color: #666; font-size: 0.9rem; margin-bottom: 1.7rem; }
    .cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .cmp-col { border: 2px solid #eee; border-radius: 14px; padding: 1.4rem; }
    .cmp-col.auto { border-color: rgba(255,138,61,0.35); background: #fffaf6; }
    .cmp-col.adv  { border-color: rgba(124,58,237,0.3); background: #faf8ff; }
    .cmp-head { display: flex; align-items: center; gap: 9px; margin-bottom: 0.9rem; font-weight: 700; font-size: 1.05rem; }
    .cmp-col.auto .cmp-head { color: var(--primary); }
    .cmp-col.adv  .cmp-head { color: #6d28d9; }
    .cmp-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; padding: 0; }
    .cmp-col li { display: flex; gap: 0.6rem; font-size: 0.88rem; color: #555; line-height: 1.5; }
    .cmp-col li i { margin-top: 0.25rem; flex-shrink: 0; font-size: 0.75rem; }
    .cmp-col.auto li i { color: var(--primary); }
    .cmp-col.adv  li i { color: #7c3aed; }
    @media (max-width: 760px) { .cmp-grid { grid-template-columns: 1fr; } }

    /* ===== FEATURES ===== */
    .features-section { padding: 0; background: white; }
    .features-section .section-title { padding: 80px 20px 40px 20px; text-align: center; }
    .features-container { width: 100%; }
    .feature-row-wrapper { width: 100%; padding: 60px 0; }
    .feature-row-wrapper:nth-child(even) { background: white; }
    .feature-row-wrapper:nth-child(odd)  { background: var(--beige-bg); }
    .feature-row {
        display: flex; align-items: center; gap: 60px;
        max-width: 1188px; margin: 0 auto; padding: 0 20px;
    }
    .feature-row .feature-text            { flex: 0 0 35%; order: 1; }
    .feature-row .feature-image-container { flex: 0 0 60%; order: 2; }
    .feature-row.reverse .feature-text            { order: 2; }
    .feature-row.reverse .feature-image-container { order: 1; }
    .feature-text h3 { font-size: 2rem; margin-bottom: 20px; color: #333; font-weight: 600; }
    .feature-text p  { font-size: 1.2rem; color: #666; line-height: 1.8; }
    .feature-image-container {
        position: relative; border-radius: 15px; overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: transform 0.3s ease;
    }
    .feature-image-container:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
    .feature-image-container img { width: 100%; height: auto; display: block; aspect-ratio: 16/10; object-fit: cover; }

    /* Categories grid */
    .categories-grid {
        display: grid; grid-template-columns: repeat(5, 1fr);
        gap: 30px; padding: 50px 60px;
        background: linear-gradient(135deg, #fff5ee 0%, #ffffff 100%);
        border-radius: 15px; width: 100%; min-width: 650px;
    }
    .cat-icon { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: all 0.3s ease; }
    .cat-icon-circle {
        width: 85px; height: 85px; background: white; border-radius: 15px;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: all 0.3s ease;
    }
    .cat-icon:hover .cat-icon-circle { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(255,138,61,0.4); }
    .cat-icon-circle i { font-size: 2.4rem; color: var(--primary); }
    .cat-icon-label { font-size: 0.95rem; color: #333; font-weight: 500; text-align: center; line-height: 1.2; }

    /* Languages grid */
    .languages-grid {
        display: grid; grid-template-columns: repeat(5, 1fr);
        gap: 30px; padding: 50px 60px;
        background: linear-gradient(135deg, #ffffff 0%, #fff5ee 100%);
        border-radius: 15px; width: 100%; min-width: 650px;
    }
    .lang-item { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: all 0.3s ease; }
    .lang-flag {
        width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.3s ease; border: 3px solid white;
    }
    .lang-item:hover .lang-flag { transform: scale(1.1) translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); border-color: var(--primary); }
    .lang-label { font-size: 0.95rem; color: #333; font-weight: 500; text-align: center; }

    /* Chapter suggestion */
    .chapter-suggestion-graphic {
        background: linear-gradient(135deg, #fff5ee 0%, #ffffff 100%);
        border-radius: 15px; padding: 50px; min-height: 400px;
        display: flex; flex-direction: column; gap: 30px;
    }
    .book-title-box {
        background: linear-gradient(135deg, var(--primary) 0%, #ff6b1a 100%);
        color: white; padding: 25px 35px; border-radius: 12px;
        display: flex; align-items: center; gap: 15px;
        font-size: 1.5rem; font-weight: 700;
        box-shadow: 0 6px 20px rgba(255,138,61,0.4); letter-spacing: 0.5px;
    }
    .book-title-box i { font-size: 2rem; }
    .chapters-container { display: flex; flex-direction: column; gap: 15px; }
    .chapter-item {
        background: white; padding: 20px 28px; border-radius: 12px;
        display: flex; align-items: center; gap: 18px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        opacity: 0; transform: translateX(-30px);
        animation: slideInChapter 0.6s ease forwards;
        border-left: 4px solid var(--primary);
    }
    .chapter-item.delay-1 { animation-delay: 0.2s; }
    .chapter-item.delay-2 { animation-delay: 0.4s; }
    .chapter-item.delay-3 { animation-delay: 0.6s; }
    @keyframes slideInChapter { to { opacity: 1; transform: translateX(0); } }
    .chapter-icon {
        width: 45px; height: 45px;
        background: linear-gradient(135deg, var(--primary) 0%, #ff6b1a 100%);
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        color: white; font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
        animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
        0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,138,61,0.4); }
        50%       { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255,138,61,0); }
    }
    .chapter-item span { color: #333; font-weight: 600; font-size: 1.1rem; overflow: hidden; white-space: nowrap; }
    @keyframes typing { from { width: 0; } to { width: 100%; } }
    .chapter-item.typing span { display: inline-block; width: 0; animation: typing 2s steps(40,end) forwards; }
    .chapter-item.typing.delay-1 span { animation-delay: 0.8s; }
    .chapter-item.typing.delay-2 span { animation-delay: 1.6s; }
    .chapter-item.typing.delay-3 span { animation-delay: 2.4s; }

    /* Three covers grid */
    .three-covers-grid {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 20px; padding: 30px;
        background: linear-gradient(135deg, #fff5ee 0%, #ffffff 100%);
        border-radius: 15px;
    }
    .single-cover {
        width: 100%; aspect-ratio: 2/3; min-height: 300px; object-fit: cover;
        border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); transition: transform 0.3s ease;
    }
    .single-cover:hover { transform: translateY(-10px) scale(1.05); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }

    /* File icons grid */
    .file-icons-grid {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 40px; padding: 50px;
        background: linear-gradient(135deg, #ffffff 0%, #fff5ee 100%);
        border-radius: 15px; align-items: center; justify-items: center;
    }
    .file-icon-item { display: flex; flex-direction: column; align-items: center; gap: 15px; transition: transform 0.3s ease; }
    .file-icon-item:hover { transform: translateY(-10px); }
    .file-icon-circle {
        width: 120px; height: 120px; border-radius: 20px;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15); transition: all 0.3s ease;
    }
    .file-icon-item:hover .file-icon-circle { box-shadow: 0 15px 40px rgba(0,0,0,0.25); }
    .file-icon-circle.epub { background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); }
    .file-icon-circle.pdf  { background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%); }
    .file-icon-circle.doc  { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); }
    .file-icon-circle i { font-size: 4rem; color: white; }
    .file-icon-label { font-size: 1.2rem; font-weight: 600; color: #333; text-transform: uppercase; letter-spacing: 1px; }

    /* ===== COVER TOOL ===== */
    .cover-tool-section { padding: 80px 0; background: white; }
    .cover-tool-content { display: flex; align-items: center; gap: 50px; max-width: 1000px; margin: 0 auto; }
    .cover-examples { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .cover-example { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    .cover-tool-text { flex: 1; }
    .cover-tool-text h3 { font-size: 2.5rem; margin-bottom: 20px; color: #333; }
    .cover-tool-text p  { font-size: 1.2rem; color: #666; line-height: 1.8; margin-bottom: 30px; }
    .tool-btn {
        background: var(--light-blue); color: white; padding: 15px 40px; border-radius: 30px;
        text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
        font-size: 1.1rem; font-weight: 500; transition: transform 0.3s ease;
    }
    .tool-btn:hover { transform: translateY(-2px); }

    /* ===== BOOK SAMPLES ===== */
    .book-samples-section { width: 100%; max-width: 1200px; margin: 80px auto; padding: 20px; }
    .book-samples-title { text-align: center; font-size: 2.5rem; color: #333; margin-bottom: 50px; font-weight: 600; }
    .book-samples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0 auto; }
    .book-sample-card {
        display: flex; flex-direction: column; align-items: center;
        background: white; border-radius: 10px; padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease;
    }
    .book-sample-card:hover { transform: translateY(-5px); }
    .book-sample-cover { width: 200px; height: 300px; object-fit: cover; border-radius: 5px; margin-bottom: 15px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
    .book-sample-button {
        background: var(--light-blue); color: white; padding: 12px 24px; border-radius: 25px;
        text-decoration: none; display: flex; align-items: center; gap: 8px;
        font-weight: 500; transition: background-color 0.3s ease; border: none; cursor: pointer;
    }
    .book-sample-button:hover { background-color: #e07b2d; }

    /* ===== FAQ ===== */
    .faq { max-width: 800px; margin: 80px auto; padding: 0 20px; }
    .faq h2 { font-size: 2.5rem; margin-bottom: 40px; text-align: center; color: #333; }
    .faq-item { margin-bottom: 20px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
    .faq-question {
        padding: 25px; background: #f8f8f8; cursor: pointer; font-weight: 500;
        font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; user-select: none;
    }
    .toggle { margin-left: 10px; font-size: 1.5rem; font-weight: bold; }
    .faq-answer { padding: 25px; line-height: 1.6; font-size: 1.1rem; display: none; }

    /* ===== FOOTER ===== */
    .footer-new {
        width: 100%; background: #f8f9fa; padding: 25px 0;
        position: relative; margin-top: 100px; box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
    }
    .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .footer-wrapper { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
    .footer-copyright { color: #666; font-size: 14px; }
    .footer-link { color: black; text-decoration: none; font-size: 14px; transition: opacity 0.3s; }
    .footer-link:hover { opacity: 0.8; }
    .footer-divider { color: #666; font-size: 14px; }

    /* Riga delle lingue: sigle corte, una riga sola anche su telefono.
       Il titolo del link porta il nome per esteso, cosi' chi passa col mouse
       capisce, e i motori hanno comunque un testo leggibile. */
    .footer-langs {
        display: flex; justify-content: center; align-items: center;
        flex-wrap: wrap; gap: 8px; margin-top: 14px;
    }
    .footer-lang {
        color: #999; text-decoration: none; font-size: 12px;
        letter-spacing: 0.4px; transition: color 0.2s;
    }
    .footer-lang:hover { color: var(--primary); }
    .footer-lang-sep { color: #ccc; font-size: 11px; }

    /* ===== ADVANCED MODE ===== */
    .advanced-mode-section {
        padding: 80px 0;
        background: linear-gradient(160deg, #fff8f0 0%, #ffffff 50%, #fff5ed 100%);
        overflow: hidden;
    }
    .adv-layout {
        max-width: 1000px; margin: 0 auto; padding: 0 20px;
    }
    .adv-text-side { text-align: center; margin-bottom: 2.8rem; }
    .adv-title { font-size: 2.4rem; font-weight: 800; color: #222; margin-bottom: 16px; line-height: 1.2; }
    .adv-title span { color: var(--primary); }
    .adv-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 32px; line-height: 1.75;
                    max-width: 640px; margin-left: auto; margin-right: auto; }
    .adv-cta-btn {
        display: inline-flex; align-items: center; gap: 10px;
        background: var(--primary); color: white; padding: 16px 42px;
        border-radius: 50px; font-size: 1.1rem; font-weight: 600;
        text-decoration: none; transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(255,138,61,0.35);
    }
    .adv-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,138,61,0.45); }
    /* ---- Editor mockup (stile pagina bianca, come /ai-ebook-maker) ---- */
    .adv-editor { border: 1px solid #ececec; border-radius: 14px; overflow: hidden;
                  box-shadow: 0 14px 50px rgba(0,0,0,.09); background: #fff; }
    .adv-ed-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px;
                  border-bottom: 1px solid #ececec; background: #fff; }
    .adv-ed-dots { display: flex; gap: 6px; }
    .adv-ed-dots span { width: 11px; height: 11px; border-radius: 50%; background: #e2e2e2; }
    .adv-ed-name { font-weight: 600; font-size: 0.9rem; color: #333; }
    .adv-ed-tools { margin-left: auto; display: flex; gap: 9px; color: #8a8a8a; font-size: 0.85rem; }
    .adv-ed-tools span { width: 26px; height: 26px; display: flex; align-items: center;
                         justify-content: center; border-radius: 6px; background: #f6f6f6; }
    .adv-ed-body { display: grid; grid-template-columns: 210px 1fr; min-height: 420px; }
    .adv-ed-toc { border-right: 1px solid #ececec; background: #fcfcfc; padding: 16px 0; }
    .adv-ed-toc div { padding: 9px 18px; font-size: 0.85rem; color: #555;
                      border-left: 3px solid transparent; }
    .adv-ed-toc div.on { color: var(--primary); background: #fff6f0;
                         border-left-color: var(--primary); font-weight: 600; }
    .adv-ed-page { background: #f0efed; padding: 26px; display: flex; justify-content: center; }
    .adv-ed-sheet { background: #fff; width: 100%; max-width: 520px; padding: 34px 40px 40px;
                    border-radius: 3px; box-shadow: 0 2px 14px rgba(0,0,0,.07); }
    .adv-ed-ch { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
                 color: var(--primary); font-weight: 700; text-align: center; margin-bottom: 0.5rem; }
    .adv-ed-h { font-family: 'Lora', Georgia, serif; font-size: 1.6rem; text-align: center;
                margin-bottom: 1.6rem; font-weight: 600; color: #222; }
    .adv-ed-sheet p { font-family: 'Lora', Georgia, serif; font-size: 0.94rem;
                      line-height: 1.75; margin-bottom: 0.9rem; color: #2a2a2a; }
    .adv-ed-empty { border: 1.5px solid var(--primary); border-radius: 7px; padding: 12px 14px;
                    color: #8a8a8a; font-size: 0.9rem; font-style: italic; margin-top: 1.1rem; }
    .adv-ed-acts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
    .adv-ed-acts b { font-weight: 600; font-size: 0.76rem; padding: 6px 12px; border-radius: 7px;
                     background: var(--primary); color: #fff; display: inline-flex;
                     align-items: center; gap: 6px; }
    .adv-ed-acts i.act { font-style: normal; font-weight: 500; font-size: 0.76rem;
                         padding: 6px 12px; border-radius: 7px; border: 1px solid #ececec;
                         color: #555; display: inline-flex; align-items: center; gap: 6px; }

    /* ===== RESPONSIVE 1024px ===== */
    @media (max-width: 1024px) {
        .features-list { grid-template-columns: 1fr; }
        .hero-container { gap: 40px; }
        .steps-flow { flex-direction: column; }
        .step-card { margin: 20px 0; }
        .arrow-separator { position: static; transform: rotate(90deg); margin: 10px 0; }
        .step-card:last-child .arrow-separator { display: none; }
        .feature-row-wrapper { padding: 40px 0; }
        .feature-row { flex-direction: column !important; gap: 30px; }
        .feature-row .feature-text,
        .feature-row .feature-image-container,
        .feature-row.reverse .feature-text,
        .feature-row.reverse .feature-image-container { order: unset !important; }
        .feature-text h3 { font-size: 1.6rem; }
        .feature-text p  { font-size: 1.1rem; }
        .categories-grid { grid-template-columns: repeat(4,1fr); gap: 15px; padding: 30px 15px; min-width: auto; width: 100%; }
        .cat-icon-circle { width: 70px; height: 70px; }
        .cat-icon-circle i { font-size: 1.6rem; }
        .cat-icon-label { font-size: 0.8rem; font-weight: 600; }
        .languages-grid { grid-template-columns: repeat(4,1fr); gap: 15px; padding: 25px; min-width: auto; width: 100%; }
        .lang-flag { width: 100%; aspect-ratio: 4/3; }
        .lang-label { font-size: 0.75rem; }
        .categories-grid .cat-icon:nth-child(n+9)  { display: none; }
        .languages-grid .lang-item:nth-child(n+13) { display: none; }
        .chapter-suggestion-graphic { padding: 25px; min-height: auto; gap: 20px; }
        .book-title-box { padding: 18px 22px; font-size: 1.15rem; }
        .book-title-box i { font-size: 1.5rem; }
        .chapter-item { padding: 16px 20px; gap: 15px; }
        .chapter-icon { width: 40px; height: 40px; font-size: 1.1rem; }
        .chapter-item span { font-size: 1rem; white-space: normal; }
        .adv-title { font-size: 2.1rem; }
    }

    /* ===== ADVANCED MODE — editor stretto ===== */
    @media (max-width: 900px) {
        .adv-ed-body { grid-template-columns: 1fr; }
        .adv-ed-toc { display: none; }
        .adv-ed-page { padding: 16px; }
        .adv-ed-sheet { padding: 24px 22px 28px; }
    }

    /* ===== RESPONSIVE 768px ===== */
    @media (max-width: 768px) {
        .hamburger { display: block; font-size: 2rem; top: 20%; transform: none; right: 20px; }
        .nav-links {
            display: none; position: absolute; top: 80px; left: 0; right: 0;
            background: white; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            flex-direction: column; gap: 20px; z-index: 999;
        }
        .nav-links.active { display: flex; }
        .logo-img { width: 35px; height: 35px; }
        .logo-text { font-size: 1.2rem; }
        .featured-cover { flex: 0 0 160px; height: 240px; }
        .hero { padding-top: 20px; padding-bottom: 50px; }
        .hero h1 { font-size: 2.2rem; margin-bottom: 20px; }
        .hero-subtitle { font-size: 1.1rem; margin-bottom: 30px; }
        .hero-buttons { flex-direction: column; align-items: center; }
        .create-btn, .how-it-works-btn { width: 100%; max-width: 300px; text-align: center; }
        .section-title { font-size: 1.8rem; margin-bottom: 40px; }
        .steps-flow { padding: 0 20px; flex-direction: column; gap: 0; overflow: visible; }
        .step-card {
            position: relative; display: flex; flex-direction: row; align-items: flex-start;
            margin: 0; padding: 20px; gap: 20px; min-width: auto; flex: none;
            text-align: left; margin-bottom: 30px; overflow: visible;
        }
        .step-card:last-child { margin-bottom: 0; }
        .step-number { top: -10px; left: -10px; width: 30px; height: 30px; font-size: 1rem; }
        .step-icon { font-size: 2rem; width: 50px; height: 50px; flex-shrink: 0; margin: 0; }
        .step-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
        .step-card h4 { font-size: 1.1rem; margin-bottom: 0; text-align: left; font-weight: 600; }
        .step-card p  { font-size: 0.9rem; text-align: left; line-height: 1.4; margin: 0; }
        .arrow-separator { display: none !important; }
        .feature-image-container { width: 100%; }
        /* Three covers */
        .three-covers-grid { grid-template-columns: repeat(3,1fr); gap: 10px; padding: 15px; }
        .single-cover { width: 100%; aspect-ratio: 2/3; min-height: 200px; }
        /* File icons */
        .file-icons-grid { grid-template-columns: repeat(3,1fr); gap: 15px; padding: 20px 15px; }
        .file-icon-circle { width: 70px; height: 70px; }
        .file-icon-circle i { font-size: 2rem; }
        .file-icon-label { font-size: 0.75rem; }
        /* Categories */
        .categories-grid { grid-template-columns: repeat(4,1fr); gap: 10px; padding: 25px 10px; min-width: auto; width: 100%; }
        .cat-icon-circle { width: 60px; height: 60px; }
        .cat-icon-circle i { font-size: 1.4rem; }
        .cat-icon-label { font-size: 0.7rem; }
        .categories-grid .cat-icon:nth-child(n+9) { display: none; }
        /* Languages */
        .languages-grid { grid-template-columns: repeat(4,1fr); gap: 12px; padding: 20px; min-width: auto; width: 100%; }
        .lang-label { font-size: 0.7rem; }
        .languages-grid .lang-item:nth-child(n+13) { display: none; }
        #flag2 { display: block; }
        #flag3 { display: block; }
        /* Chapter */
        .chapter-suggestion-graphic { padding: 20px; gap: 18px; }
        .book-title-box { padding: 15px 18px; font-size: 1rem; flex-direction: column; text-align: center; }
        .book-title-box i { font-size: 1.3rem; }
        .chapter-item { padding: 14px 16px; gap: 12px; }
        .chapter-icon { width: 36px; height: 36px; font-size: 1rem; }
        .chapter-item span { font-size: 0.9rem; white-space: normal; }
        /* Cover tool - ESATTAMENTE dal doc 1 */
        .cover-tool-content { flex-direction: column; }
        .cover-examples { grid-template-columns: repeat(2, 1fr); gap: 15px; }
        .cover-example { width: 100%; height: 180px; }
        .cover-tool-text h3 { font-size: 2rem; }
        .cover-tool-text p  { font-size: 1.05rem; }
        /* Book samples */
        .book-samples-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
        .book-sample-card:nth-child(n+5) { display: none; }
        .book-sample-cover { width: 160px; height: 240px; }
        /* Footer */
        .footer-wrapper { flex-direction: column; text-align: center; gap: 10px; }
        .footer-divider { display: none; }
        /* Advanced mode */
        .advanced-mode-section { padding: 60px 0; }
        .adv-title { font-size: 1.9rem; }
        .adv-subtitle { font-size: 1rem; }
        .adv-ed-page { padding: 14px; }
        .adv-ed-sheet { padding: 24px 20px 26px; }
    }

    /* ===== RESPONSIVE 480px ===== */
    @media (max-width: 480px) {
        .featured-cover { flex: 0 0 150px; height: 225px; }
        .hero h1 { font-size: 2rem; }
        .hero-subtitle { font-size: 1rem; }
        .step-card { padding: 25px 15px; }
        .step-icon { font-size: 1.8rem; width: 45px; height: 45px; }
        .step-card h4 { font-size: 1.1rem; }
        .step-card p  { font-size: 0.9rem; }
        .feature-row-wrapper { padding: 30px 0; }
        .feature-text h3 { font-size: 1.4rem; }
        .feature-text p  { font-size: 1rem; }
        .categories-grid { grid-template-columns: repeat(4,1fr); gap: 10px; padding: 25px 10px; }
        .cat-icon-circle { width: 60px; height: 60px; }
        .cat-icon-circle i { font-size: 1.4rem; }
        .cat-icon-label { font-size: 0.7rem; }
        .categories-grid .cat-icon:nth-child(n+9) { display: none; }
        .languages-grid { grid-template-columns: repeat(4,1fr); gap: 12px; padding: 20px; }
        .lang-label { font-size: 0.7rem; }
        .languages-grid .lang-item:nth-child(n+13) { display: none; }
        .three-covers-grid { grid-template-columns: repeat(3,1fr); gap: 8px; padding: 12px; }
        .file-icons-grid { grid-template-columns: repeat(3,1fr); gap: 12px; padding: 15px 10px; }
        .file-icon-circle { width: 60px; height: 60px; }
        .file-icon-circle i { font-size: 1.8rem; }
        .file-icon-label { font-size: 0.7rem; }
        .cover-examples { grid-template-columns: repeat(2,1fr); gap: 15px; }
        .cover-example { height: 180px; }
        .book-samples-grid { gap: 15px; }
        .book-sample-cover { width: 140px; height: 210px; }
        .book-sample-button { padding: 10px 20px; font-size: 0.9em; }
        .adv-title { font-size: 1.65rem; }
    }
		
		
		.featured-banner {
    padding-left: 20px;
    padding-right: 20px;
}
		
		

		
	@keyframes scrollFeaturedMobile {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .featured-scroll {
        animation: scrollFeaturedMobile 120s linear infinite !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .featured-scroll {
        animation: scrollFeaturedMobile 30s linear infinite !important;
    }
}
