/*
Theme Name: Geco Cloud
Theme URI: https://www.softwareindustries.it
Author: Software Industries
Author URI: https://www.softwareindustries.it
Description: Tema vetrina per Geco Cloud — piattaforma multi-tenant di gestione commesse, protocolli, contratti, timesheet, CRM e budget. Palette coordinata con il brand Software Industries.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geco-cloud
*/

/* ==========================================================================
   Design tokens — palette estratta da softwareindustries.it
   ========================================================================== */
:root {
    --c-accent:        #e66445;
    --c-accent-dark:   #cf4f31;
    --c-accent-soft:   rgba(230, 100, 69, 0.12);
    --c-red:           #aa1f29;
    --c-dark:          #17262f;
    --c-darker:        #121c22;
    --c-slate:         #1f2531;
    --c-gray:          #abafb5;
    --c-light:         #e0e1e4;
    --c-bg:            #ffffff;
    --c-bg-alt:        #f6f7f8;
    --c-text:          #1f2531;
    --c-text-soft:     #4a5257;
    --c-white:         #ffffff;

    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 24px 60px -22px rgba(18, 28, 34, 0.40);
    --shadow-sm: 0 10px 30px -14px rgba(18, 28, 34, 0.28);
    --shadow-accent: 0 18px 40px -16px rgba(230, 100, 69, 0.5);
    --maxw:      1180px;
    --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    --grad-accent: linear-gradient(120deg, #e66445, #aa1f29);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent-dark); }
h1, h2, h3, h4 { line-height: 1.14; color: var(--c-dark); font-weight: 800; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); margin: 0 0 0.6em; }
h3 { font-size: 1.3rem; margin: 0 0 0.4em; }
p  { margin: 0 0 1em; color: var(--c-text-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }
.section { padding: 104px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-dark); color: var(--c-light); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--c-gray); }
.text-center { text-align: center; }
.grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--c-accent); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--c-accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--c-accent); border-radius: 2px; }
.text-center .eyebrow, .eyebrow--center { justify-content: center; }
.lead { font-size: 1.22rem; line-height: 1.6; max-width: 720px; }
.section .lead.text-center { margin-left: auto; margin-right: auto; }
.section-head { max-width: 680px; margin: 0 auto 58px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 30px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition); line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.32); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark:hover { background: var(--c-darker); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--white { background: #fff; color: var(--c-accent-dark); }
.btn--white:hover { background: #fff; color: var(--c-red); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--c-light);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--c-dark); }
.brand:hover { color: var(--c-dark); }
.brand__mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-red));
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
}
.brand__name span { color: var(--c-accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--c-text); font-weight: 600; font-size: 0.98rem; }
.nav a:hover, .nav .current-menu-item > a { color: var(--c-accent); }
.nav .btn { padding: 10px 20px; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-dark); margin: 5px 0; transition: var(--transition); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(230,100,69,0.18), transparent 60%),
                linear-gradient(160deg, var(--c-darker), var(--c-dark));
    color: #fff; padding: 110px 0 120px;
}
.hero h1 { color: #fff; }
.hero h1 span { color: var(--c-accent); }
.hero p { color: var(--c-gray); font-size: 1.25rem; max-width: 640px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; }
.hero__badge { font-size: 0.9rem; color: var(--c-gray); display: flex; align-items: center; gap: 8px; }
.hero__badge strong { color: #fff; }
.hero__visual {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.hero__visual-bar { display: flex; gap: 7px; margin-bottom: 16px; }
.hero__visual-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.hero__stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero__stat { background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 16px; }
.hero__stat b { display: block; font-size: 1.6rem; color: var(--c-accent); }
.hero__stat small { color: var(--c-gray); font-size: 0.82rem; }

/* ==========================================================================
   Logos / trust strip
   ========================================================================== */
.trust { padding: 36px 0; border-bottom: 1px solid var(--c-light); }
.trust__row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; color: var(--c-gray); font-weight: 700; letter-spacing: 0.04em; }

/* ==========================================================================
   Feature / module grid (cards)
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
    position: relative; background: var(--c-bg); border: 1px solid var(--c-light); border-radius: var(--radius);
    padding: 32px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--c-accent-soft); color: var(--c-accent); margin-bottom: 20px;
    transition: background var(--transition), color var(--transition);
}
.card:hover .card__icon { background: var(--grad-accent); color: #fff; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.98rem; }
.section--dark .card { background: var(--c-slate); border-color: rgba(255,255,255,0.06); }
.section--dark .card:hover { border-color: transparent; }

/* ==========================================================================
   Split feature rows
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split--rev .split__media { order: 2; }
.split__media {
    background: linear-gradient(160deg, var(--c-dark), var(--c-slate));
    border-radius: var(--radius); min-height: 320px; box-shadow: var(--shadow); padding: 28px; color: #fff;
}
.split ul { list-style: none; padding: 0; margin: 18px 0 0; }
.split li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--c-text-soft); }
.split li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--c-accent); font-weight: 800;
}

/* mock UI inside split media */
.mock { font-size: 0.85rem; }
.mock__row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(255,255,255,0.06); border-radius: 8px; margin-bottom: 10px; }
.mock__row b { color: #fff; font-weight: 600; }
.mock__pill { font-size: 0.72rem; padding: 3px 10px; border-radius: 20px; font-weight: 700; }
.mock__pill--ok  { background: rgba(0,208,132,0.18); color: #4ade80; }
.mock__pill--warn{ background: rgba(252,185,0,0.18); color: #fcd34d; }
.mock__pill--acc { background: var(--c-accent-soft); color: var(--c-accent); }

/* ==========================================================================
   Steps / workflow
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 16px; }
.step__n {
    width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent); color: #fff;
    display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.95rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
    background: linear-gradient(135deg, var(--c-accent), var(--c-red));
    color: #fff; border-radius: var(--radius); padding: 56px; text-align: center; box-shadow: var(--shadow);
}
.cta { position: relative; overflow: hidden; }
.cta::after {
    content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); pointer-events: none;
}
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,0.92); max-width: 600px; margin: 0 auto 28px; position: relative; }
.cta .btn { position: relative; }

/* ==========================================================================
   Stats band (numeri)
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat b {
    display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em;
    background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat span { display: block; margin-top: 10px; color: var(--c-text-soft); font-size: 0.95rem; font-weight: 500; }
.section--dark .stat span { color: var(--c-gray); }

/* ==========================================================================
   Problema → soluzione
   ========================================================================== */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem {
    background: var(--c-bg); border: 1px solid var(--c-light); border-radius: var(--radius); padding: 30px;
}
.problem__x {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
    background: rgba(170, 31, 41, 0.09); color: var(--c-red);
}
.problem__x svg { width: 23px; height: 23px; }
.problem h3 { font-size: 1.12rem; }
.problem p { margin: 0 0 14px; font-size: 0.95rem; }
.problem__fix {
    display: flex; gap: 9px; align-items: flex-start; font-size: 0.92rem; font-weight: 600; color: var(--c-dark);
    padding-top: 14px; border-top: 1px solid var(--c-light);
}
.problem__fix svg { width: 18px; height: 18px; color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   Risultati / benefici
   ========================================================================== */
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 44px; }
.outcome { display: flex; gap: 18px; align-items: flex-start; }
.outcome__ic {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
    background: rgba(255,255,255,0.08); color: var(--c-accent);
}
.outcome__ic svg { width: 24px; height: 24px; }
.outcome h3 { font-size: 1.1rem; margin-bottom: 5px; }
.outcome p { margin: 0; font-size: 0.94rem; }

/* ==========================================================================
   Citazione / quote
   ========================================================================== */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote__mark { font-size: 4rem; line-height: 0.6; color: var(--c-accent); font-weight: 800; }
.quote p { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--c-dark); line-height: 1.45; margin: 18px 0 22px; letter-spacing: -0.01em; }
.section--dark .quote p { color: #fff; }
.quote__cite { color: var(--c-text-soft); font-size: 0.95rem; }
.section--dark .quote__cite { color: var(--c-gray); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
    background: var(--c-bg); border: 1px solid var(--c-light); border-radius: var(--radius);
    padding: 34px 30px; display: flex; flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--c-accent); position: relative; }
.plan__tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--c-accent); color: #fff; font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
}
.plan__name { font-size: 1.25rem; font-weight: 800; color: var(--c-dark); margin-bottom: 4px; }
.plan__desc { color: var(--c-text-soft); font-size: 0.92rem; min-height: 42px; margin-bottom: 18px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan__price b { font-size: 2.6rem; font-weight: 800; color: var(--c-dark); letter-spacing: -0.03em; }
.plan__price span { color: var(--c-text-soft); font-size: 0.95rem; }
.plan__note { color: var(--c-gray); font-size: 0.82rem; margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--c-text-soft); font-size: 0.95rem; }
.plan li svg { position: absolute; left: 0; top: 3px; width: 17px; height: 17px; color: var(--c-accent); }
.plan li.is-off { color: var(--c-gray); }
.plan li.is-off svg { color: var(--c-gray); }
.plan .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   Roadmap ("in arrivo")
   ========================================================================== */
.roadmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.roadmap-item {
    position: relative; background: var(--c-bg); border: 1.5px dashed var(--c-light);
    border-radius: var(--radius); padding: 32px 30px 28px;
}
.roadmap-item__badge {
    position: absolute; top: -13px; left: 28px; background: var(--c-dark); color: #fff;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 5px 13px; border-radius: 20px;
}
.roadmap-item__icon {
    width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
    background: var(--c-bg-alt); color: var(--c-gray); margin-bottom: 16px;
}
.roadmap-item__icon svg { width: 24px; height: 24px; }
.roadmap-item h3 { font-size: 1.12rem; }
.roadmap-item p { margin: 0; font-size: 0.94rem; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
    background: linear-gradient(160deg, var(--c-darker), var(--c-dark));
    color: #fff; padding: 86px 0 72px; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--c-gray); max-width: 680px; margin: 0 auto; font-size: 1.18rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info li { list-style: none; margin-bottom: 22px; }
.contact-info ul { padding: 0; margin: 0; }
.contact-info b { display: block; color: var(--c-dark); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--c-light); border-radius: var(--radius-sm);
    font: inherit; color: var(--c-text); background: var(--c-bg);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--c-accent); border-color: transparent; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-darker); color: var(--c-gray); padding: 64px 0 28px; }
.site-footer a { color: var(--c-gray); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; }

/* ==========================================================================
   Generic WP content
   ========================================================================== */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content img { border-radius: var(--radius-sm); margin: 1.5em 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .split--rev .split__media { order: 0; }
    .grid--3, .problems { grid-template-columns: repeat(2, 1fr); }
    .steps, .stats { grid-template-columns: repeat(2, 1fr); }
    .outcomes { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .section { padding: 68px 0; }
    .problems, .stats, .roadmap { grid-template-columns: 1fr; }
    .nav {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; padding: 18px 24px; gap: 6px; border-bottom: 1px solid var(--c-light);
        box-shadow: var(--shadow-sm); transform: translateY(-130%); transition: transform var(--transition);
    }
    .nav.is-open { transform: translateY(0); }
    .nav a { padding: 12px 0; }
    .nav-toggle { display: block; }
    .grid--3, .grid--2, .steps, .pricing { grid-template-columns: 1fr; }
    .cta { padding: 40px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
}
