/*
Theme Name: myXorange Landing
Theme URI: https://myxorange.it
Author: SIN.A.L.C. & Replit
Author URI: https://myxorange.it
Description: Tema landing page responsive per myXorange — Your Personal AI. Hero d'impatto, un solo pulsante, SEO completa (allenamento AI, psicologo AI, schede automatiche e tutte le funzioni) e dati strutturati. Logo ben visibile.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myxorange
Tags: landing-page, one-page, custom-logo, responsive, translation-ready
*/

/* ---------------------------------------------------------------------------
   Variabili / Reset
--------------------------------------------------------------------------- */
:root {
        --mx-orange: #f97316;
        --mx-orange-strong: #ea6a0c;
        --mx-orange-soft: #fb923c;
        --mx-ink: #2a2017;
        --mx-muted: #6b5d4f;
        --mx-cream-1: #fff8f1;
        --mx-cream-2: #fdecdd;
        --mx-border: rgba(249, 115, 22, 0.18);
        --mx-card: #ffffff;
        --mx-shadow: 0 18px 40px -20px rgba(234, 106, 12, 0.45);
        --mx-radius: 18px;
        --mx-maxw: 1080px;
}

*,
*::before,
*::after {
        box-sizing: border-box;
}

html {
        scroll-behavior: smooth;
}

body {
        margin: 0;
        font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        color: var(--mx-ink);
        background: linear-gradient(160deg, var(--mx-cream-1) 0%, var(--mx-cream-2) 100%);
        background-attachment: fixed;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
}

img {
        max-width: 100%;
        height: auto;
        display: block;
}

a {
        color: inherit;
        text-decoration: none;
}

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

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        backdrop-filter: saturate(140%) blur(10px);
        background: rgba(255, 248, 241, 0.78);
        border-bottom: 1px solid var(--mx-border);
}

.header-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 14px;
        padding-bottom: 14px;
}

.brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
}

.brand-logo {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        box-shadow: var(--mx-shadow);
}

.brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
}

.brand-name {
        font-weight: 800;
        font-size: 1.25rem;
        letter-spacing: -0.01em;
}

.brand-tagline {
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--mx-orange-strong);
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero {
        position: relative;
        overflow: hidden;
}

.hero::before {
        content: "";
        position: absolute;
        top: -30%;
        left: 50%;
        width: 760px;
        height: 760px;
        max-width: 120vw;
        transform: translateX(-50%);
        background: radial-gradient(circle, rgba(251, 146, 60, 0.28) 0%, rgba(251, 146, 60, 0) 62%);
        pointer-events: none;
}

.hero-inner {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 56px;
        padding-bottom: 72px;
}

.hero-logo {
        width: 132px;
        height: 132px;
        border-radius: 26px;
        box-shadow: 0 24px 50px -18px rgba(234, 106, 12, 0.55);
        margin-bottom: 26px;
}

.hero-badge {
        display: inline-block;
        padding: 7px 16px;
        border-radius: 999px;
        background: rgba(249, 115, 22, 0.12);
        border: 1px solid var(--mx-border);
        color: var(--mx-orange-strong);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 22px;
}

.hero-title {
        margin: 0 0 22px;
        font-weight: 900;
        letter-spacing: -0.025em;
        line-height: 1.02;
        display: flex;
        flex-direction: column;
        gap: 2px;
}

.hero-title-brand {
        font-size: clamp(2.6rem, 7vw, 4.6rem);
        color: var(--mx-ink);
}

.hero-title-line {
        font-size: clamp(2.2rem, 6vw, 4rem);
        color: var(--mx-ink);
}

.hero-title-accent {
        font-size: clamp(2.2rem, 6vw, 4rem);
        background: linear-gradient(90deg, var(--mx-orange-soft), var(--mx-orange-strong));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: var(--mx-orange);
}

.hero-subtitle {
        max-width: 640px;
        margin: 0 auto 34px;
        font-size: clamp(1rem, 2.4vw, 1.18rem);
        color: var(--mx-muted);
}

/* ---------------------------------------------------------------------------
   Pulsante unico (CTA)
--------------------------------------------------------------------------- */
.cta-button {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 16px 34px;
        border-radius: 999px;
        font-size: 1.05rem;
        font-weight: 700;
        color: #fff;
        background: linear-gradient(135deg, var(--mx-orange-soft) 0%, var(--mx-orange-strong) 100%);
        box-shadow: 0 16px 30px -12px rgba(234, 106, 12, 0.7);
        transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
        transform: translateY(-2px);
        filter: brightness(1.04);
        box-shadow: 0 22px 38px -12px rgba(234, 106, 12, 0.8);
        outline: none;
}

.cta-arrow {
        transition: transform 0.18s ease;
}

.cta-button:hover .cta-arrow {
        transform: translateX(4px);
}

/* ---------------------------------------------------------------------------
   Funzioni / Servizi (SEO)
--------------------------------------------------------------------------- */
.services {
        padding: 18px 0 72px;
}

.services-title {
        text-align: center;
        font-size: clamp(1.7rem, 4vw, 2.4rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        margin: 0 0 10px;
}

.services-intro {
        text-align: center;
        max-width: 600px;
        margin: 0 auto 40px;
        color: var(--mx-muted);
}

.services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
}

.service-card {
        background: var(--mx-card);
        border: 1px solid var(--mx-border);
        border-radius: var(--mx-radius);
        padding: 22px 22px 24px;
        box-shadow: 0 12px 30px -22px rgba(234, 106, 12, 0.5);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 38px -22px rgba(234, 106, 12, 0.7);
}

.service-name {
        margin: 0 0 8px;
        font-size: 1.12rem;
        font-weight: 800;
        color: var(--mx-orange-strong);
}

.service-desc {
        margin: 0;
        font-size: 0.95rem;
        color: var(--mx-muted);
}

/* ---------------------------------------------------------------------------
   Condivisione
--------------------------------------------------------------------------- */
.share {
        padding: 8px 0 64px;
}

.share-inner {
        text-align: center;
}

.share-title {
        font-size: clamp(1.5rem, 3.4vw, 2rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        margin: 0 0 8px;
}

.share-intro {
        color: var(--mx-muted);
        margin: 0 auto 26px;
        max-width: 520px;
}

.share-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
}

.share-btn {
        position: relative;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px !important;
        height: 48px !important;
        min-width: 0;
        max-width: 48px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        line-height: 0;
        color: #fff;
        background: #888;
        box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5);
        transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
        -webkit-tap-highlight-color: transparent;
}

.share-btn svg {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px;
        max-height: 20px;
        display: block;
        flex: 0 0 auto;
}

.share-btn img {
        display: none;
}

.share-btn:hover,
.share-btn:focus-visible {
        transform: translateY(-4px) scale(1.06);
        filter: brightness(1.05);
        box-shadow: 0 16px 28px -12px rgba(0, 0, 0, 0.55);
        outline: none;
}

.share-facebook { background: #1877f2; }
.share-x        { background: #000000; }
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0a66c2; }
.share-telegram { background: #229ed9; }
.share-email    { background: #ea6a0c; }
.share-copy     { background: linear-gradient(135deg, var(--mx-orange-soft), var(--mx-orange-strong)); }
.share-native   { background: var(--mx-ink); }

/* Stato "copia link" */
.share-copy .icon-check {
        display: none;
}

.share-copy.is-copied .icon-link {
        display: none;
}

.share-copy.is-copied .icon-check {
        display: block;
}

.share-copy.is-copied {
        background: #16a34a;
}

.share-copied {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        background: #16a34a;
        color: #fff;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 8px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
}

.share-copy.is-copied .share-copied {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer {
        border-top: 1px solid var(--mx-border);
        background: rgba(255, 248, 241, 0.6);
}

.footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding-top: 30px;
        padding-bottom: 36px;
        text-align: center;
}

.footer-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        box-shadow: var(--mx-shadow);
}

.footer-credit {
        margin: 0;
        font-size: 0.9rem;
        color: var(--mx-muted);
        max-width: 640px;
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 640px) {
        .hero-inner {
                padding-top: 40px;
                padding-bottom: 52px;
        }

        .hero-logo {
                width: 108px;
                height: 108px;
                border-radius: 22px;
        }

        .brand-tagline {
                display: none;
        }

        .cta-button {
                width: 100%;
                justify-content: center;
        }
}

@media (prefers-reduced-motion: reduce) {
        * {
                transition: none !important;
                scroll-behavior: auto !important;
        }
}
