/*
Theme Name:        SG Sicurezza
Theme URI:         https://www.sgsicurezza.com/
Author:            SG Sicurezza
Author URI:        https://www.sgsicurezza.com/
Description:       Landing page premium per SG Sicurezza - sistema integrato web per scadenzario e pianificazione adempimenti gestionali e di sicurezza nei luoghi di lavoro (D.Lgs. 81/08). Tema mono-pagina derivato dal template statico di brand.
Version:           1.1.2
Requires at least: 5.6
Tested up to:      6.5
Requires PHP:      7.4
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       sgsicurezza
Tags:              one-page, landing, custom-colors, custom-logo, threaded-comments
*/

/* =========================================================================
   Reset minimo - il resto del design system arriva da tokens.css (asset)
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg-canvas);
    color: var(--fg-default);
    font-family: var(--font-body);
    overflow-x: hidden;
}
::selection { background: var(--sg-blue-200); color: var(--sg-blue-900); }

/* ============== TOPBAR ============== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: 68px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    backdrop-filter: blur(14px);
    background: rgba(247, 249, 252, 0.72);
    border-bottom: 1px solid transparent;
    transition: background var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out);
}
.nav.is-scrolled { background: rgba(255, 255, 255, 0.86); border-color: var(--border-default); box-shadow: var(--shadow-xs); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 17px; color: var(--sg-blue-950); text-decoration: none; }
.nav__brand:hover, .nav__brand:focus, .nav__brand:active, .nav__brand:visited { color: var(--sg-blue-950); text-decoration: none; }
.nav__brand:focus-visible { outline: 2px solid var(--sg-azure-500); outline-offset: 2px; border-radius: 6px; }
.nav__brand img { width: 34px; height: 34px; object-fit: contain; }
.nav__brand .dot { color: var(--sg-azure-500); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--fg-muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: color var(--dur-fast) var(--ease-out); }
.nav__links a:hover { color: var(--fg-default); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 880px) { .nav__links { display: none; } .nav { padding: 0 18px; } }

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 10px;
    font: 600 14.5px/1 var(--font-body); letter-spacing: -.005em;
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                transform var(--dur-instant) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn--primary { background: var(--sg-blue-700); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--sg-blue-600); transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(0, 48, 208, .45); }
.btn--ghost { background: rgba(255,255,255,.6); color: var(--fg-default); border-color: var(--border-default); }
.btn--ghost:hover { background: #fff; border-color: var(--border-strong); }
.btn--azure { background: linear-gradient(135deg, #50c0f0 0%, #2aa8e0 100%); color: #fff; box-shadow: 0 8px 24px -6px rgba(42, 168, 224, .5); }
.btn--azure:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(42, 168, 224, .65); }

/* ============== HERO ============== */
.hero {
    position: relative; padding: 132px 32px 120px; overflow: hidden;
    isolation: isolate;
}
.hero__mesh {
    position: absolute; inset: -10% -10% -5% -10%; z-index: -2;
    background:
        radial-gradient(ellipse 60% 50% at 18% 25%, rgba(80, 192, 240, 0.55), transparent 60%),
        radial-gradient(ellipse 55% 60% at 85% 12%, rgba(43, 95, 255, 0.42), transparent 60%),
        radial-gradient(ellipse 70% 55% at 60% 95%, rgba(0, 48, 208, 0.18), transparent 60%),
        linear-gradient(180deg, #eef4ff 0%, #f7f9fc 100%);
    animation: meshDrift 22s var(--ease-in-out) infinite alternate;
}
@keyframes meshDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-2%, 1%, 0) scale(1.05); }
}
.hero__grid {
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(0, 48, 208, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 48, 208, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner {
    max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 980px) {
    .hero { padding: 116px 20px 80px; }
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
}
.hero__pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    font: 600 12px/1 var(--font-body);
    color: var(--sg-blue-800);
    letter-spacing: .02em;
    box-shadow: var(--shadow-xs);
}
.hero__pill .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--sg-success-500); position: relative;
}
.hero__pill .pulse::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    background: var(--sg-success-500); opacity: .4;
    animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }

.hero__title {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(40px, 5.6vw, 76px);
    line-height: 1.02; letter-spacing: -.03em;
    color: var(--sg-blue-950); margin: 18px 0 0;
}
.hero__title .grad {
    background: linear-gradient(96deg, #0030d0 0%, #1a47ec 35%, #2aa8e0 75%, #50c0f0 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% 100%; animation: gradMove 9s var(--ease-in-out) infinite alternate;
}
@keyframes gradMove { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.hero__sub {
    font-size: 18px; line-height: 1.55; color: var(--fg-muted);
    max-width: 540px; margin: 22px 0 32px;
}
.hero__sub strong { color: var(--fg-default); font-weight: 600; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust {
    display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px;
    padding-top: 26px; border-top: 1px solid rgba(0, 48, 208, .08);
}
.hero__trust > div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.hero__trust i { width: 16px; height: 16px; color: var(--sg-success-600); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { animation: rise .9s var(--ease-out) forwards; }
.reveal[data-delay="1"].in { animation-delay: .08s; }
.reveal[data-delay="2"].in { animation-delay: .16s; }
.reveal[data-delay="3"].in { animation-delay: .24s; }
.reveal[data-delay="4"].in { animation-delay: .32s; }
.reveal[data-delay="5"].in { animation-delay: .40s; }
.reveal[data-delay="6"].in { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============== HERO MOCK ============== */
.mock {
    position: relative;
    perspective: 1800px;
}
.mock__board {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid var(--border-default);
    border-radius: 18px;
    box-shadow: 0 40px 80px -28px rgba(8, 26, 102, .28), 0 12px 24px -8px rgba(8, 26, 102, .12);
    padding: 22px;
    transform: rotateX(6deg) rotateY(-8deg);
    animation: tilt 8s var(--ease-in-out) infinite alternate;
}
@keyframes tilt {
    0%   { transform: rotateX(6deg) rotateY(-8deg) translateY(0); }
    100% { transform: rotateX(4deg) rotateY(-5deg) translateY(-6px); }
}
.mock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock__head h4 { font: 700 14px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--fg-default); margin: 0; }
.mock__head .lights { display: flex; gap: 6px; }
.mock__head .lights span { width: 10px; height: 10px; border-radius: 50%; background: var(--sg-gray-200); }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock__kpi { background: var(--bg-canvas); border: 1px solid var(--border-default); border-radius: 10px; padding: 12px; }
.mock__kpi .lbl { font: 600 9.5px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.mock__kpi .val { font: 800 26px/1.05 var(--font-display); color: var(--fg-default); margin-top: 6px; font-variant-numeric: tabular-nums; }
.mock__kpi.brand { background: var(--grad-brand); border: 0; }
.mock__kpi.brand .lbl { color: rgba(255,255,255,.85); }
.mock__kpi.brand .val { color: #fff; }
.mock__kpi .delta { display: inline-flex; align-items: center; gap: 3px; font: 600 10.5px/1 var(--font-body); margin-top: 4px; }
.mock__kpi.warn .delta { color: var(--sg-warning-700); }
.mock__kpi.brand .delta { color: #b6e7ff; }

.mock__row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; background: #fff;
    border: 1px solid var(--border-default); border-radius: 10px;
    margin-bottom: 6px; transition: background var(--dur-fast), transform var(--dur-fast);
}
.mock__row:hover { background: var(--bg-subtle); }
.mock__row .ic { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mock__row .ic i { width: 14px; height: 14px; }
.mock__row .doc { flex: 1; min-width: 0; }
.mock__row .doc .t { font: 600 12px/1.3 var(--font-body); color: var(--fg-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__row .doc .s { font: 400 11px/1.3 var(--font-body); color: var(--fg-muted); }
.mock__row .ic.danger { background: var(--sg-danger-50); color: var(--sg-danger-700); }
.mock__row .ic.warn { background: var(--sg-warning-50); color: var(--sg-warning-700); }
.mock__row .ic.success { background: var(--sg-success-50); color: var(--sg-success-700); }
.mock__row .badge {
    padding: 3px 8px; border-radius: 999px; font: 600 10px/1.2 var(--font-body); white-space: nowrap;
}
.mock__row .badge.danger { background: var(--sg-danger-50); color: var(--sg-danger-700); border: 1px solid #fbc4be; }
.mock__row .badge.warn { background: var(--sg-warning-50); color: var(--sg-warning-700); border: 1px solid #fde2a4; }
.mock__row .badge.success { background: var(--sg-success-50); color: var(--sg-success-700); border: 1px solid #a7f0c2; }

/* Floating toast over the mock */
.mock__toast {
    position: absolute; bottom: -22px; right: -18px;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 18px 36px -12px rgba(8, 26, 102, .25);
    min-width: 240px;
    animation: toastIn 1.2s var(--ease-spring) .9s both, toastBob 4s var(--ease-in-out) 2.2s infinite alternate;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastBob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.mock__toast .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--sg-success-50); color: var(--sg-success-700); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mock__toast .ic i { width: 18px; height: 18px; }
.mock__toast .t { font: 700 12.5px/1.2 var(--font-display); color: var(--fg-default); }
.mock__toast .s { font: 400 11.5px/1.35 var(--font-body); color: var(--fg-muted); margin-top: 2px; }

.mock__cloud {
    position: absolute; top: -28px; left: -22px;
    background: #fff; border: 1px solid var(--border-default);
    border-radius: 999px; padding: 8px 14px 8px 10px;
    display: flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-md);
    animation: cloudFloat 5s var(--ease-in-out) infinite alternate;
}
@keyframes cloudFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.mock__cloud i { width: 16px; height: 16px; color: var(--sg-azure-500); }
.mock__cloud .t { font: 600 12px/1 var(--font-body); color: var(--fg-default); }
.mock__cloud .s { font: 400 10.5px/1 var(--font-body); color: var(--fg-muted); }

/* ============== SECTIONS ============== */
section { padding: 100px 32px; position: relative; }
.container { max-width: 1240px; margin: 0 auto; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
    color: var(--sg-blue-700); margin-bottom: 18px;
}
.eyebrow .bar { width: 24px; height: 2px; background: var(--sg-azure-500); border-radius: 999px; }
.section__title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.08; letter-spacing: -.025em;
    color: var(--sg-blue-950); margin: 0 0 16px; max-width: 800px;
}
.section__sub { font-size: 17px; line-height: 1.55; color: var(--fg-muted); max-width: 680px; }

/* ============== PROFILE SELECTOR ============== */
.profile {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}
.profile__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.profile__head .section__title { margin: 0 auto 16px; }
.profile__head .section__sub { margin: 0 auto; }
.profile__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .profile__cards { grid-template-columns: 1fr; } }
.pcard {
    position: relative; background: #fff;
    border: 1.5px solid var(--border-default);
    border-radius: 18px; padding: 28px 26px 26px;
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out),
                background var(--dur-base) var(--ease-out);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sg-blue-200); }
.pcard.active {
    border-color: var(--sg-blue-500);
    box-shadow: 0 0 0 4px rgba(43, 95, 255, .12), 0 18px 36px -12px rgba(8, 26, 102, .18);
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 60%);
}
.pcard__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-brand-soft); color: var(--sg-blue-700);
    margin-bottom: 18px; transition: all var(--dur-base) var(--ease-out);
}
.pcard.active .pcard__icon {
    background: var(--grad-brand); color: #fff;
    box-shadow: var(--shadow-brand);
    transform: rotate(-6deg) scale(1.06);
}
.pcard__icon i { width: 24px; height: 24px; }
.pcard__eyebrow { font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sg-azure-600); margin-bottom: 8px; }
.pcard__title { font: 700 22px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--sg-blue-950); margin: 0 0 12px; }
.pcard__desc { font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); margin: 0 0 20px; }
.pcard__list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.pcard__list li { display: flex; gap: 10px; font: 500 13.5px/1.4 var(--font-body); color: var(--fg-default); }
.pcard__list i { width: 16px; height: 16px; color: var(--sg-success-600); flex: 0 0 auto; margin-top: 2px; }
.pcard__cta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 18px; border-top: 1px dashed var(--border-default);
    font: 600 13px/1 var(--font-body); color: var(--sg-blue-700);
}
.pcard__cta .arrow { transition: transform var(--dur-base) var(--ease-out); }
.pcard:hover .pcard__cta .arrow { transform: translateX(4px); }
.pcard__check {
    position: absolute; top: 18px; right: 18px;
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff; border: 1.5px solid var(--border-default);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--dur-base) var(--ease-spring);
}
.pcard__check i { width: 14px; height: 14px; color: transparent; }
.pcard.active .pcard__check { background: var(--sg-blue-700); border-color: var(--sg-blue-700); transform: scale(1.08); }
.pcard.active .pcard__check i { color: #fff; }

/* recommendation banner */
.recobanner {
    margin-top: 36px; padding: 18px 24px;
    background: linear-gradient(96deg, rgba(0, 48, 208, .04), rgba(42, 168, 224, .07));
    border: 1px solid rgba(43, 95, 255, .18);
    border-radius: 14px;
    display: flex; align-items: center; gap: 16px;
    transition: all var(--dur-base) var(--ease-out);
}
.recobanner i.spark { width: 22px; height: 22px; color: var(--sg-blue-700); flex: 0 0 auto; }
.recobanner .t { flex: 1; font: 500 14.5px/1.5 var(--font-body); color: var(--fg-default); }
.recobanner .t b { color: var(--sg-blue-800); font-weight: 700; }
.recobanner a {
    font: 600 13.5px/1 var(--font-body); color: var(--sg-blue-700);
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    padding: 10px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--border-default);
    transition: all var(--dur-fast) var(--ease-out);
}
.recobanner a:hover { border-color: var(--sg-blue-500); transform: translateX(2px); }

/* ============== ALERT 3 LIVELLI ============== */
.alerts {
    background: var(--sg-blue-950);
    color: #fff; overflow: hidden; isolation: isolate;
}
.alerts::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .65;
    background:
        radial-gradient(ellipse 50% 40% at 12% 20%, rgba(80, 192, 240, 0.35), transparent 60%),
        radial-gradient(ellipse 60% 50% at 88% 80%, rgba(26, 71, 236, 0.45), transparent 60%);
}
.alerts__title { color: #fff; }
.alerts__sub { color: rgba(255, 255, 255, .7); }
.alerts .eyebrow { color: var(--sg-azure-300); }
.alerts .eyebrow .bar { background: var(--sg-azure-300); }

.levels {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 56px; position: relative;
}
@media (max-width: 880px) { .levels { grid-template-columns: 1fr; } }
.levels::before {
    content: ""; position: absolute; left: 5%; right: 5%; top: 60px;
    height: 1px; background: linear-gradient(90deg, transparent, rgba(80, 192, 240, .4) 30%, rgba(80, 192, 240, .4) 70%, transparent);
}
@media (max-width: 880px) { .levels::before { display: none; } }
.lvl {
    position: relative; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px; padding: 28px;
    backdrop-filter: blur(8px);
    transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.lvl:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); border-color: rgba(80, 192, 240, .35); }
.lvl__num {
    position: relative; z-index: 1;
    width: 56px; height: 56px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font: 800 24px/1 var(--font-display); margin-bottom: 22px;
    color: #fff; box-shadow: 0 14px 28px -8px rgba(0,0,0,.4);
}
.lvl[data-tone="info"] .lvl__num { background: linear-gradient(135deg, #50c0f0, #2aa8e0); }
.lvl[data-tone="warn"] .lvl__num { background: linear-gradient(135deg, #f79009, #dc6803); }
.lvl[data-tone="danger"] .lvl__num { background: linear-gradient(135deg, #f04438, #b42318); }
.lvl__num::after {
    content: ""; position: absolute; inset: -8px; border-radius: 22px;
    background: inherit; opacity: .25; filter: blur(14px); z-index: -1;
}
.lvl__role { font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sg-azure-300); margin-bottom: 8px; }
.lvl__title { font: 700 22px/1.2 var(--font-display); letter-spacing: -.015em; color: #fff; margin: 0 0 12px; }
.lvl__desc { font: 400 14.5px/1.55 var(--font-body); color: rgba(255,255,255,.72); margin: 0 0 18px; }
.lvl__chip {
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 11.5px/1 var(--font-body);
    padding: 6px 10px; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.85);
}
.lvl__chip i { width: 12px; height: 12px; }

/* ============== "PERCHE'" FEATURE GRID ============== */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 980px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .why__grid { grid-template-columns: 1fr; } }
.feat {
    background: #fff; border: 1px solid var(--border-default);
    border-radius: 16px; padding: 26px;
    transition: all var(--dur-base) var(--ease-out);
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sg-blue-200); }
.feat__icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--bg-brand-soft); color: var(--sg-blue-700);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
    transition: all var(--dur-base) var(--ease-out);
}
.feat:hover .feat__icon { background: var(--grad-brand); color: #fff; transform: rotate(-6deg); }
.feat__icon i { width: 20px; height: 20px; }
.feat h3 { font: 700 17px/1.3 var(--font-display); letter-spacing: -.015em; color: var(--sg-blue-950); margin: 0 0 10px; }
.feat p { font: 400 14px/1.55 var(--font-body); color: var(--fg-muted); margin: 0; }

/* ============== PRICING ============== */
.pricing { background: var(--bg-canvas); }
.pricing__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.pricing__head .section__title { margin: 0 auto 16px; }
.pricing__head .section__sub { margin: 0 auto; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
@media (max-width: 780px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }
.plan {
    position: relative; background: #fff;
    border: 1.5px solid var(--border-default);
    border-radius: 22px; padding: 36px 32px 32px; overflow: hidden;
    transition: all var(--dur-base) var(--ease-out);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.plan.recommended {
    border-color: var(--sg-blue-500);
    box-shadow: 0 0 0 4px rgba(43, 95, 255, .14), 0 24px 48px -16px rgba(8, 26, 102, .22);
}
.plan.recommended::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad-brand);
}
.plan__ribbon {
    position: absolute; top: 18px; right: 18px;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--grad-brand); color: #fff;
    font: 700 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
    padding: 7px 11px; border-radius: 999px;
    box-shadow: var(--shadow-brand);
    opacity: 0; transform: translateY(-4px) scale(.9);
    transition: all var(--dur-base) var(--ease-spring);
}
.plan.recommended .plan__ribbon { opacity: 1; transform: translateY(0) scale(1); }
.plan__ribbon i { width: 12px; height: 12px; }
.plan__name { font: 700 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sg-azure-600); margin-bottom: 6px; }
.plan__title { font: 800 30px/1.1 var(--font-display); letter-spacing: -.025em; color: var(--sg-blue-950); margin: 0 0 8px; }
.plan__desc { font: 400 14px/1.5 var(--font-body); color: var(--fg-muted); margin: 0 0 22px; min-height: 42px; }
.plan__priceblock { padding: 18px 0 22px; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); margin-bottom: 22px; }
.plan__strike { font: 500 16px/1 var(--font-body); color: var(--fg-subtle); text-decoration: line-through; text-decoration-color: var(--sg-warning-500); text-decoration-thickness: 2px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.plan__price .currency { font: 700 22px/1 var(--font-display); color: var(--fg-default); }
.plan__price .value { font: 800 56px/1 var(--font-display); letter-spacing: -.03em; color: var(--sg-blue-950); font-variant-numeric: tabular-nums; }
.plan__price .per { font: 500 14px/1 var(--font-body); color: var(--fg-muted); }
.plan__save {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    font: 700 12px/1 var(--font-body);
    background: var(--sg-success-50); color: var(--sg-success-700);
    padding: 5px 9px; border-radius: 999px;
    border: 1px solid #a7f0c2;
}
.plan__features { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.plan__features li { display: flex; gap: 10px; font: 400 14px/1.45 var(--font-body); color: var(--fg-default); }
.plan__features i { width: 16px; height: 16px; color: var(--sg-success-600); flex: 0 0 auto; margin-top: 1px; }
.plan__features li.featured { color: var(--sg-blue-800); font-weight: 600; }
.plan__btn {
    width: 100%; justify-content: center;
    background: var(--bg-subtle); color: var(--fg-default); border: 1px solid var(--border-default);
}
.plan__btn:hover { background: var(--bg-muted); }
.plan.recommended .plan__btn { background: var(--sg-blue-700); color: #fff; border: 0; box-shadow: var(--shadow-brand); }
.plan.recommended .plan__btn:hover { background: var(--sg-blue-600); }

.guarantee {
    display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
    margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-default);
}
.guarantee div { display: flex; align-items: center; gap: 8px; font: 500 13.5px/1 var(--font-body); color: var(--fg-muted); }
.guarantee i { width: 16px; height: 16px; color: var(--sg-success-600); }

/* ============== FAQ / CTA ============== */
.finalcta {
    text-align: center; padding: 100px 32px;
    background: var(--grad-brand); color: #fff; position: relative; overflow: hidden;
}
.finalcta::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(80, 192, 240, 0.4), transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255,255,255, 0.12), transparent 50%);
}
.finalcta > * { position: relative; }
.finalcta h2 { font: 800 clamp(32px, 4vw, 52px)/1.05 var(--font-display); letter-spacing: -.03em; margin: 0 0 16px; }
.finalcta p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.86); margin: 0 0 28px; max-width: 620px; margin-inline: auto; }
.finalcta .btn--white { background: #fff; color: var(--sg-blue-800); }
.finalcta .btn--white:hover { background: #f7f9fc; transform: translateY(-1px); }
.finalcta .btn--outline-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.finalcta .btn--outline-w:hover { background: rgba(255,255,255,.08); }

/* ============== FOOTER ============== */
.site-footer { background: var(--sg-gray-950); color: rgba(255,255,255,.7); padding: 60px 32px 28px; }
.foot { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 880px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot__brand { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 17px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot__brand img { width: 32px; height: 32px; }
.foot__brand .dot { color: var(--sg-azure-400); }
.foot p.about { font-size: 13.5px; line-height: 1.6; max-width: 280px; }
.foot h4 { color: #fff; font: 700 13px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 13.5px; transition: color var(--dur-fast); }
.foot a:hover { color: #fff; }
.foot__pay { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.foot__pay span { font: 600 11px/1 var(--font-body); padding: 6px 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; }
.foot__legal { max-width: 1240px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }

/* ============== TICKER ============== */
.ticker {
    background: #fff; border-block: 1px solid var(--border-default); padding: 20px 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; gap: 56px; width: max-content; animation: tickerScroll 38s linear infinite; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font-body); color: var(--fg-muted); white-space: nowrap; }
.ticker__item i { width: 16px; height: 16px; color: var(--sg-blue-700); }


/* ============================================================
   PAGE TEMPLATE (Privacy, Cookie, Termini, About, blog post)
   Match aggressivo: copre page.php, singular fallback,
   contenuto Gutenberg classico e block editor.
   ============================================================ */

/* Wrapper di sezione */
.page-single,
body.page main,
body.single main,
body.singular .site-main {
    padding: 132px 32px 100px !important;
    background: var(--bg-canvas, #f7f9fc) !important;
    min-height: 60vh;
}
@media (max-width: 720px) {
    .page-single,
    body.page main,
    body.single main,
    body.singular .site-main {
        padding: 116px 16px 64px !important;
    }
}

/* Card articolo centrata */
.page-article,
body.page article,
body.single article {
    max-width: 760px !important;
    margin: 0 auto !important;
    background: #fff !important;
    border: 1px solid var(--border-default, #e2e8f0) !important;
    border-radius: 18px !important;
    padding: 56px 56px 48px !important;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(16,24,40,.08)) !important;
}
@media (max-width: 720px) {
    .page-article,
    body.page article,
    body.single article {
        padding: 32px 22px 28px !important;
        border-radius: 14px !important;
    }
}

/* Titolo */
.page-article__title,
body.page article h1,
body.single article h1 {
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-weight: 800;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--sg-blue-950, #04102e);
    margin: 0 0 14px;
}

/* Intestazione */
.page-article__head {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-default, #e2e8f0);
}
.page-article__excerpt {
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--fg-muted, #4b5567);
}

/* Body del contenuto */
.page-article__body,
body.page article .entry-content,
body.single article .entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--fg-default, #121724);
}
.page-article__body p,
body.page article p,
body.single article p { margin: 0 0 18px; }

.page-article__body h2,
body.page article h2,
body.single article h2 {
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    color: var(--sg-blue-950, #04102e);
    margin: 36px 0 16px;
}
.page-article__body h3,
body.page article h3,
body.single article h3 {
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.3;
    color: var(--sg-blue-900, #081a66);
    margin: 28px 0 12px;
}

/* Liste */
.page-article__body ul, .page-article__body ol,
body.page article ul, body.page article ol,
body.single article ul, body.single article ol {
    margin: 0 0 18px 22px;
    padding: 0;
}
.page-article__body li,
body.page article li,
body.single article li { margin: 0 0 8px; }

/* Link */
.page-article__body a,
body.page article a,
body.single article a {
    color: var(--fg-link, #1a47ec);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.page-article__body a:hover,
body.page article a:hover,
body.single article a:hover { color: var(--sg-blue-700, #0030d0); }

/* Quote */
.page-article__body blockquote,
body.page article blockquote,
body.single article blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--sg-azure-400, #50c0f0);
    background: var(--sg-blue-50, #eef4ff);
    border-radius: 8px;
}

/* Code */
.page-article__body code,
body.page article code,
body.single article code {
    background: var(--bg-subtle, #eef2f7);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 13.5px;
}
.page-article__body pre,
body.page article pre,
body.single article pre {
    background: var(--bg-subtle, #eef2f7);
    border-radius: 6px;
    padding: 14px 16px;
    overflow-x: auto;
}

/* Img/Tabelle */
.page-article__body img,
body.page article img,
body.single article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.page-article__body table,
body.page article table,
body.single article table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}
.page-article__body th, .page-article__body td,
body.page article th, body.page article td,
body.single article th, body.single article td {
    padding: 10px 12px;
    border: 1px solid var(--border-default, #e2e8f0);
    text-align: left;
}
.page-article__body th,
body.page article th,
body.single article th {
    background: var(--bg-subtle, #eef2f7);
    font-weight: 700;
}

/* Edit link / page-links */
.page-article__edit {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--border-default, #e2e8f0);
    font-size: 13px;
}
.page-article__edit a { color: var(--fg-link, #1a47ec); }
.page-links {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-default, #e2e8f0);
    font-size: 14px;
}

/* Gutenberg / block editor: garantisce un wrap leggibile per
   wp-block-* dentro la card */
.page-article__body > .wp-block-group,
.page-article__body > .wp-block-columns,
.page-article__body > .wp-block-image {
    margin: 18px 0;
}
.wp-block-image img { border-radius: 8px; }
.wp-block-quote {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--sg-azure-400, #50c0f0);
    background: var(--sg-blue-50, #eef4ff);
    border-radius: 8px;
}
