/* (tools-nav CSS moved to style.css — globale) */

/* ---- HERO SUB (tagline cluster, non pseudo-menu) ---- */

.hero-sub h2 {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin: 3px 0;
    letter-spacing: 0.01em;
}

[data-theme="dark"] .hero-sub h2 {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .hero-sub h2 {
        font-size: 0.9rem;
    }
}

/* ---- HERO CONTAINER ---- */

.hero-container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px 20px;
}

.hero-header {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


.hero-logo {
    width: 125px;
    height: 125px;
    object-fit: contain;
}

.hero-header h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin: 0;
}

.hero-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .hero-container {
        padding: 30px 18px 50px;
    }

    .hero-header {
        margin-bottom: 40px;
    }

    .hero-title-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .hero-header h1 {
        font-size: 24px;
    }

    .hero-header p {
        font-size: 16px;
    }
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.tools-grid:first-of-type {
    margin-top: 0;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 520px;
        margin: 30px auto 0;
    }

    .tools-grid:first-of-type {
        margin-top: 0;
    }
}

.card-large {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
}

@media (max-width: 480px) {
    .card-large {
        padding: 40px 28px;
    }
}

.card-large:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

.card-large h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.card-large p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
}

.button-link {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
}

/* ---- Featured tool: Live Tournament Companion ---- */
.featured-tool {
    margin-top: 40px;
    padding: 40px 44px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.25);
    color: white;
    position: relative;
    overflow: hidden;
}

.featured-tool::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #10b981, #3b82f6);
}

.featured-tool-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fcd34d;
    margin-bottom: 16px;
}

.featured-tool-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.featured-tool-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin: 0 0 24px 0;
}

.featured-tool-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.featured-tool-features li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.featured-tool-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
}

.featured-tool-cta {
    background: white;
    color: #1e3a8a;
    font-weight: 700;
}

.featured-tool-cta:hover {
    background: #f1f5f9;
}

@media (max-width: 600px) {
    .featured-tool {
        padding: 32px 24px;
    }
    .featured-tool-title {
        font-size: 22px;
    }
    .featured-tool-subtitle {
        font-size: 14px;
    }
}

[data-theme="dark"] .featured-tool {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    box-shadow: 0 20px 50px rgba(49, 46, 129, 0.4);
}
.about-project {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.about-project a,
.about-project a:visited {
    color: var(--link-color);
    text-decoration: underline;
}
/* ABOUT SECTION MOBILE FIX */

@media (max-width: 600px) {
    .about-project {
        margin-top: 30px;
        padding: 0 20px;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .about-project br {
        display: none;
    }
}
.seo-links {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 50px;
    margin-bottom: 0;
    opacity: 0.6;
}
.seo-links a {
    color: #6b7280;
    text-decoration: none;
}
.seo-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .seo-links {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        text-align: left;
        padding-left: 16px;
        -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
        mask-image: linear-gradient(to right, black 88%, transparent 100%);
    }
    .seo-links::-webkit-scrollbar {
        display: none;
    }
    .seo-links.fade-left {
        -webkit-mask-image: linear-gradient(to left, black 88%, transparent 100%);
        mask-image: linear-gradient(to left, black 88%, transparent 100%);
    }
    .seo-links.fade-both {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 88%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 8%, black 88%, transparent 100%);
    }
}

.seo-links-title {
    font-size: 0.8rem;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.seo-links-title a {
    color: #6b7280;
    text-decoration: none;
}

.seo-links-title a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .about-project {
        margin-top: 15px;
    }

    .internal-links {
        margin-top: 10px;
    }
    footer {
        padding-top: 30px;
    }
}

.seo-text {
    max-width: 700px;
    margin: 30px auto 0 auto;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
}

.guide-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
}

.guide-link:hover {
    color: var(--accent);
}

/* Mobile button layout fix */
@media (max-width: 480px) {
    .button-link {
        padding: 12px 18px;
        font-size: 15px;
        line-height: 1.2;
    }

    .card-large h2 {
        font-size: 22px;
    }
}

/* ---- Product section: ChessFlow ---- */
.chessflow-section {
    margin-top: 60px;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chessflow-section-text {
    max-width: 640px;
}

.chessflow-section h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 12px;
}

.chessflow-section-tagline {
    font-size: 19px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 20px;
}

.chessflow-section-text p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px;
    font-size: 15px;
}

.chessflow-section-cta {
    margin-top: 20px;
}

.chessflow-section-visual {
    width: 100%;
    max-width: 640px;
    margin-top: 40px;
}

.chessflow-section-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
    .chessflow-section {
        margin-top: 40px;
        padding: 40px 20px;
    }

    .chessflow-section h2 {
        font-size: 24px;
    }

    .chessflow-section-tagline {
        font-size: 16px;
    }
}

.tools-grid-single {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.tools-grid-single .card-large {
    width: 100%;
    max-width: 560px;
}

/* Mobile: già ok (stack automatico) */
@media (max-width: 768px) {
    .tools-grid-single {
        margin-top: 30px;
    }
}
