/* ============================================================
   FILE: public/assets/platform.css
   Stili landing marketing Studiodesk. Indipendente da admin.css —
   il pannello tenant vive in altro spazio. Tema chiaro principale,
   palette: viola/indaco con accenti orange.
   ============================================================ */

:root {
    --pf-primary:   #6366f1;
    --pf-primary-d: #4f46e5;
    --pf-accent:    #f97316;
    --pf-bg:        #ffffff;
    --pf-bg-soft:   #f8fafc;
    --pf-bg-dark:   #0f172a;
    --pf-text:      #0f172a;
    --pf-muted:     #64748b;
    --pf-light:     #94a3b8;
    --pf-border:    #e2e8f0;
    --pf-card:      #ffffff;
    --pf-shadow:    0 4px 20px rgba(15,23,42,.06);
    --pf-shadow-lg: 0 20px 60px rgba(99,102,241,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--pf-text); background: var(--pf-bg);
    line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1180px; margin: 0 auto;
    padding: 0 24px;
}

/* === NAV ============================================================ */
.pf-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: all .25s;
}
.pf-nav.scrolled { background: rgba(255,255,255,.95); border-bottom-color: var(--pf-border); }
.pf-nav-inner {
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.pf-logo {
    display: inline-flex; align-items: center;
    color: var(--pf-text); text-decoration: none;
}
.pf-logo-img { height: 36px; width: auto; display: block; }
@media (max-width: 600px) { .pf-logo-img { height: 30px; } }
/* Fallback per residui hardcoded del vecchio markup "S" */
.pf-logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-d));
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: .92rem;
    margin-right: 9px;
}
.pf-nav-menu { display: flex; gap: 28px; align-items: center; }
.pf-nav-menu a {
    font-size: .88rem; font-weight: 600; color: var(--pf-muted);
    transition: color .15s;
}
.pf-nav-menu a:hover { color: var(--pf-text); }
.pf-nav-cta {
    display: flex; gap: 10px; align-items: center;
}
.pf-btn-link {
    font-size: .88rem; font-weight: 700; color: var(--pf-text);
    padding: 8px 14px; border-radius: 9px;
    transition: background .15s;
}
.pf-btn-link:hover { background: var(--pf-bg-soft); }
.pf-btn-primary {
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-d));
    color: white; padding: 9px 18px; border-radius: 10px;
    font-weight: 700; font-size: .88rem;
    border: none; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 14px rgba(99,102,241,.32);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.pf-btn-primary:hover {
    transform: translateY(-1px); filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(99,102,241,.42); color: white;
}
.pf-btn-outline {
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent; color: var(--pf-text);
    padding: 9px 18px; border-radius: 10px;
    font-weight: 700; font-size: .88rem;
    border: 1.5px solid var(--pf-border);
    transition: all .15s; cursor: pointer; font-family: inherit;
}
.pf-btn-outline:hover { border-color: var(--pf-primary); color: var(--pf-primary); }

.pf-burger {
    display: none; width: 40px; height: 40px; border: none;
    background: transparent; cursor: pointer;
    color: var(--pf-text); font-size: 1.4rem;
    align-items: center; justify-content: center;
}
@media (max-width: 880px) {
    .pf-nav-menu { display: none; }
    .pf-nav-cta .pf-btn-link { display: none; }
    .pf-burger { display: inline-flex; }
    .pf-nav-menu.mobile-open {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: white; padding: 14px 24px 22px;
        gap: 14px; align-items: stretch;
        border-bottom: 1px solid var(--pf-border);
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }
    .pf-nav-menu.mobile-open a { padding: 8px 0; font-size: .95rem; color: var(--pf-text); }
}

/* === HERO =========================================================== */
.pf-hero {
    padding: 120px 0 80px;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(99,102,241,.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(249,115,22,.06) 0%, transparent 50%),
        var(--pf-bg);
    position: relative; overflow: hidden;
}
.pf-hero-grid {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 60px; align-items: center;
}
.pf-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -1.2px;
    margin-bottom: 18px;
}
.pf-hero h1 .accent {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-accent) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pf-hero p.lead {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: var(--pf-muted); margin-bottom: 28px;
    max-width: 560px;
}
.pf-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.pf-hero-trust {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-size: .82rem; color: var(--pf-muted);
}
.pf-hero-trust .item {
    display: inline-flex; align-items: center; gap: 6px;
}
.pf-hero-trust .item i { color: #10b981; }

/* Mockup screenshot stilizzato a destra */
.pf-hero-visual {
    position: relative; perspective: 1400px;
}
.pf-mock {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--pf-shadow-lg);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform .5s;
}
.pf-mock:hover { transform: rotateY(0) rotateX(0); }
.pf-mock-bar {
    display: flex; gap: 6px; margin-bottom: 14px; align-items: center;
}
.pf-mock-bar .dot {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18);
}
.pf-mock-bar .dot:nth-child(1) { background: #ef4444; }
.pf-mock-bar .dot:nth-child(2) { background: #f59e0b; }
.pf-mock-bar .dot:nth-child(3) { background: #22c55e; }
.pf-mock-bar .url {
    flex: 1; height: 22px; background: rgba(255,255,255,.08);
    border-radius: 6px; font-size: .68rem; color: rgba(255,255,255,.5);
    display: flex; align-items: center; padding: 0 10px;
    font-family: ui-monospace, monospace; margin-left: 6px;
}
.pf-mock-screen {
    background: #f1f5f9; border-radius: 8px;
    height: 360px; padding: 16px;
    display: grid; grid-template-columns: 200px 1fr;
    gap: 12px;
}
.pf-mock-side {
    background: #0f172a; border-radius: 6px;
    padding: 14px 10px; color: white;
    font-size: .68rem;
    display: flex; flex-direction: column; gap: 7px;
}
.pf-mock-side-item {
    padding: 5px 8px; border-radius: 4px;
    color: rgba(255,255,255,.55); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.pf-mock-side-item.active { background: rgba(255,255,255,.12); color: white; }
.pf-mock-side-item::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; opacity: .55;
}
.pf-mock-content {
    background: white; border-radius: 6px; padding: 14px;
    display: flex; flex-direction: column; gap: 9px;
}
.pf-mock-card {
    height: 56px; background: #f8fafc; border-radius: 6px;
    border-left: 3px solid var(--pf-primary);
    padding: 10px;
    display: flex; flex-direction: column; gap: 4px;
}
.pf-mock-card.urgent { border-left-color: #ef4444; }
.pf-mock-card .line-1 { height: 9px; background: #cbd5e1; border-radius: 3px; width: 70%; }
.pf-mock-card .line-2 { height: 7px; background: #e2e8f0; border-radius: 3px; width: 50%; }
.pf-mock-card .line-3 { height: 7px; background: #e2e8f0; border-radius: 3px; width: 90%; }

@media (max-width: 880px) {
    .pf-hero { padding: 96px 0 60px; }
    .pf-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .pf-hero-visual { display: none; }
}

/* === SECTION BASE =================================================== */
.pf-section {
    padding: 80px 0;
}
.pf-section-soft { background: var(--pf-bg-soft); }
.pf-section-dark {
    background: var(--pf-bg-dark);
    color: white;
}
.pf-section-dark p { color: rgba(255,255,255,.7); }

.pf-section-header {
    text-align: center; max-width: 680px; margin: 0 auto 50px;
}
.pf-section-tag {
    display: inline-block; font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.4px;
    color: var(--pf-primary); padding: 5px 14px;
    background: rgba(99,102,241,.1); border-radius: 30px;
    margin-bottom: 16px;
}
.pf-section h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800; letter-spacing: -.8px; line-height: 1.15;
    margin-bottom: 14px;
}
.pf-section-header p {
    font-size: 1.05rem; color: var(--pf-muted);
    line-height: 1.6;
}
.pf-section-dark .pf-section-tag {
    background: rgba(99,102,241,.18); color: #a5b4fc;
}

/* === FEATURES ======================================================== */
.pf-features-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pf-feature {
    background: var(--pf-card); border: 1px solid var(--pf-border);
    border-radius: 16px; padding: 28px 26px;
    transition: all .25s;
}
.pf-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--pf-shadow);
    border-color: rgba(99,102,241,.3);
}
.pf-feature-ic {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 18px;
    color: white;
}
.pf-feature h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.3px; }
.pf-feature p { font-size: .92rem; color: var(--pf-muted); line-height: 1.6; }

/* === PRICING ========================================================= */
.pf-pricing-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 980px; margin: 0 auto;
}
.pf-pricing {
    background: var(--pf-card); border: 1.5px solid var(--pf-border);
    border-radius: 18px; padding: 30px 26px;
    transition: all .25s; position: relative;
    display: flex; flex-direction: column;
}
.pf-pricing:hover { transform: translateY(-4px); box-shadow: var(--pf-shadow); }
.pf-pricing.featured {
    border-color: var(--pf-primary);
    box-shadow: 0 12px 38px rgba(99,102,241,.18);
}
.pf-pricing.featured::before {
    content: 'PIÙ POPOLARE'; position: absolute;
    top: -12px; right: 24px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-d));
    color: white; padding: 4px 14px; border-radius: 20px;
    font-size: .65rem; font-weight: 800; letter-spacing: 1px;
}
.pf-pricing-name {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -.4px;
    margin-bottom: 6px;
}
.pf-pricing-desc {
    font-size: .85rem; color: var(--pf-muted); margin-bottom: 22px;
    min-height: 38px;
}
.pf-pricing-prezzo {
    font-size: 2.4rem; font-weight: 800; line-height: 1;
    letter-spacing: -1.5px;
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 4px;
}
.pf-pricing-prezzo .periodo { font-size: .82rem; font-weight: 600; color: var(--pf-muted); letter-spacing: 0; }
.pf-pricing-prezzo.custom { font-size: 1.5rem; }
.pf-pricing hr { border: none; border-top: 1px solid var(--pf-border); margin: 22px 0; }
.pf-pricing ul {
    list-style: none; flex: 1;
    margin-bottom: 22px;
}
.pf-pricing li {
    padding: 6px 0; font-size: .9rem; color: var(--pf-text);
    display: flex; align-items: flex-start; gap: 9px;
}
.pf-pricing li i {
    color: #10b981; flex-shrink: 0; margin-top: 3px;
    font-size: .9rem;
}
.pf-pricing li.no { color: var(--pf-light); }
.pf-pricing li.no i { color: var(--pf-light); }

/* === TESTIMONIANZE =================================================== */
.pf-testi-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.pf-testi {
    background: var(--pf-card); border: 1px solid var(--pf-border);
    border-radius: 18px; padding: 28px 26px;
    box-shadow: var(--pf-shadow);
}
.pf-testi-stars {
    color: #fbbf24; margin-bottom: 14px;
    font-size: .92rem; letter-spacing: 2px;
}
.pf-testi-text {
    font-size: .98rem; line-height: 1.65; color: var(--pf-text);
    margin-bottom: 22px;
}
.pf-testi-text::before {
    content: '"'; font-family: Georgia, serif;
    font-size: 2rem; color: var(--pf-primary);
    line-height: 0; vertical-align: -.8em; margin-right: 4px;
}
.pf-testi-author { display: flex; align-items: center; gap: 12px; }
.pf-testi-author .ava {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-accent));
    color: white; font-weight: 800; font-size: .9rem;
    display: flex; align-items: center; justify-content: center;
}
.pf-testi-author .nome { font-weight: 700; font-size: .92rem; }
.pf-testi-author .ruolo { font-size: .76rem; color: var(--pf-muted); margin-top: 2px; }

/* === FAQ ============================================================= */
.pf-faq { max-width: 760px; margin: 0 auto; }
.pf-faq-item {
    background: var(--pf-card); border: 1px solid var(--pf-border);
    border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.pf-faq-item summary {
    padding: 18px 22px; cursor: pointer; font-weight: 700;
    font-size: .98rem; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; user-select: none;
}
.pf-faq-item summary::-webkit-details-marker { display: none; }
.pf-faq-item summary::after {
    content: '+'; font-size: 1.4rem; font-weight: 400;
    color: var(--pf-primary); flex-shrink: 0;
    transition: transform .2s;
}
.pf-faq-item[open] summary::after { content: '−'; }
.pf-faq-body {
    padding: 0 22px 20px; color: var(--pf-muted);
    font-size: .92rem; line-height: 1.65;
}

/* === CONTATTI FORM =================================================== */
.pf-contact-grid {
    display: grid; grid-template-columns: 1fr 1.3fr;
    gap: 50px; align-items: start;
}
.pf-contact-info h2 { font-size: 1.8rem; margin-bottom: 14px; letter-spacing: -.6px; }
.pf-contact-info p { color: var(--pf-muted); margin-bottom: 24px; line-height: 1.6; }
.pf-contact-bullets { list-style: none; margin: 0 0 24px; }
.pf-contact-bullets li {
    padding: 8px 0; font-size: .92rem;
    display: flex; align-items: center; gap: 10px;
}
.pf-contact-bullets li i {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(99,102,241,.1); color: var(--pf-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: .92rem; flex-shrink: 0;
}
.pf-form {
    background: var(--pf-card); border: 1px solid var(--pf-border);
    border-radius: 18px; padding: 32px;
    box-shadow: var(--pf-shadow);
}
.pf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-field { margin-bottom: 14px; }
.pf-field label {
    display: block; font-size: .82rem; font-weight: 700;
    color: var(--pf-text); margin-bottom: 6px;
}
.pf-field label .req { color: var(--pf-accent); margin-left: 2px; }
.pf-field input, .pf-field textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--pf-border); border-radius: 10px;
    font-size: .92rem; font-family: inherit;
    color: var(--pf-text); background: var(--pf-bg);
    transition: border-color .15s, box-shadow .15s;
}
.pf-field input::placeholder, .pf-field textarea::placeholder { color: var(--pf-light); }
.pf-field input:focus, .pf-field textarea:focus {
    outline: none; border-color: var(--pf-primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
.pf-field textarea { min-height: 120px; resize: vertical; }
.pf-form-submit {
    width: 100%; padding: 13px 24px; margin-top: 4px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-d));
    color: white; border: none; border-radius: 11px;
    font-weight: 700; font-size: .95rem; cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 16px rgba(99,102,241,.35);
    transition: transform .15s, filter .15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pf-form-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pf-form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.pf-form-privacy {
    font-size: .72rem; color: var(--pf-light);
    margin-top: 14px; text-align: center; line-height: 1.5;
}
.pf-form-privacy a { color: var(--pf-primary); text-decoration: underline; }

/* Honeypot: campo invisibile per i bot. NON display:none (smart bot lo vedono). */
.pf-honeypot {
    position: absolute !important; left: -9999px !important;
    width: 1px !important; height: 1px !important;
    opacity: 0 !important; pointer-events: none !important;
}

.pf-form-msg {
    padding: 12px 16px; border-radius: 10px;
    font-size: .88rem; margin-bottom: 14px;
    display: flex; align-items: flex-start; gap: 10px;
}
.pf-form-msg.ok  { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.pf-form-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 880px) {
    .pf-section { padding: 60px 0; }
    .pf-contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .pf-form-row { grid-template-columns: 1fr; }
    .pf-form { padding: 22px; }
}

/* === FOOTER ========================================================== */
.pf-footer {
    background: var(--pf-bg-dark); color: rgba(255,255,255,.7);
    padding: 60px 0 30px; font-size: .88rem;
}
.pf-footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.pf-footer h4 {
    font-size: .76rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    color: white; margin-bottom: 16px;
}
.pf-footer ul { list-style: none; }
.pf-footer ul li { padding: 4px 0; }
.pf-footer ul li a {
    color: rgba(255,255,255,.6); transition: color .15s;
}
.pf-footer ul li a:hover { color: white; }
.pf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 14px; font-size: .8rem; color: rgba(255,255,255,.5);
}
@media (max-width: 700px) {
    .pf-footer-grid { grid-template-columns: 1fr 1fr; }
    .pf-footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
    .pf-footer-grid { grid-template-columns: 1fr; }
}
