/* ═══════════════════════════════════════════════════════════
   MEsoft – Stylesheet principale
   Palette: rosso brand, bianco, oro
   ═══════════════════════════════════════════════════════════ */

/* ───────── Design tokens ───────── */
:root {
    /* Brand palette ufficiale MEsoft */
    --red-50:   #FFEBED;
    --red-100:  #FFD0D5;
    --red-300:  #FF6B7A;
    --red-500:  #FF3B2F;     /* rosso brillante */
    --red-600:  #E30613;     /* rosso principale */
    --red-700:  #C90010;     /* rosso scuro */
    --red-900:  #800008;

    /* Tonalità d'accento (rossi caldi al posto dell'oro precedente) */
    --gold-300: #FF8A7A;     /* alias: highlight/glow chiaro */
    --gold-400: #FF6B5A;     /* alias: accento medio */
    --gold-500: #FF3B2F;     /* alias: accento principale = rosso brillante */
    --gold-700: #C90010;     /* alias: accento scuro = rosso scuro */

    /* Neutri (palette ufficiale grigi) */
    --white:    #FFFFFF;
    --cream:    #F8F8F8;
    --gray-50:  #F8F8F8;
    --gray-100: #EDEDED;     /* grigio chiaro palette */
    --gray-200: #E0E0E0;
    --gray-300: #C9C9C9;
    --gray-500: #7A7A7A;     /* grigio medio palette */
    --gray-700: #4A4A4A;
    --gray-900: #333333;     /* grigio antracite palette */
    --black:    #000000;     /* nero palette */

    /* Semantici */
    --bg:        var(--white);
    --bg-alt:    var(--gray-100);
    --text:      var(--black);
    --text-soft: var(--gray-900);
    --text-mute: var(--gray-500);
    --border:    var(--gray-200);
    --primary:   var(--red-700);    /* CTA: rosso scuro per leggibilità */
    --primary-h: #A6000D;
    --accent:    var(--red-500);    /* accento: rosso brillante */

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);

    /* Layout */
    --container: 1200px;
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow:    0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.20);
    --shadow-red: 0 18px 40px -16px rgba(227, 6, 19, 0.45);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 160ms;
    --t-med:  280ms;
    --t-slow: 520ms;
}

/* ───────── Reset / base ───────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--primary-h); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { color: var(--text-soft); }

ul, ol { padding-left: 1.2rem; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ───────── Layout helpers ───────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--gray-900); color: #ECE7DE; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
}

.section-title { margin-bottom: 0.75rem; }
.section-lead {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 65ch;
    margin-bottom: 2.5rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ───────── Bottoni ───────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    white-space: nowrap;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    background: var(--primary-h);
    color: var(--white);
    box-shadow: 0 22px 50px -18px rgba(178, 58, 46, 0.6);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-200);
}
.btn-ghost:hover { border-color: var(--gray-900); color: var(--gray-900); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    color: var(--gray-900);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(201, 169, 97, 0.55); }

.btn-light {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
}
.btn-light:hover { background: rgba(255,255,255,0.18); }

/* ───────── Header / Navbar ───────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.site-header.scrolled { border-color: var(--border); background: rgba(255,255,255,0.92); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 0.85rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--gray-900); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: color var(--t-fast), background var(--t-fast);
}
.nav-menu a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-menu a.active { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    align-items: center; justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--gray-900);
    position: relative;
    transition: background var(--t-fast);
}
.nav-toggle span::before, .nav-toggle span::after {
    content: ''; position: absolute; left: 0;
    width: 18px; height: 2px;
    background: var(--gray-900);
    transition: transform var(--t-fast);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu, .nav-cta-text { display: none; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        padding: 1rem 1.25rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-menu.open a { padding: 0.85rem 1rem; }
    .nav { gap: 1rem; }
    .nav-cta { gap: 0.5rem; }
    .nav-cta .btn-primary { padding: 0.55rem 0.9rem !important; font-size: 0.85rem; }
}

/* Schermi molto piccoli: nascondi la CTA, lascia solo logo + hamburger.
   L'utente può accedere a /contatti dal menu hamburger. */
@media (max-width: 540px) {
    .nav-cta .btn-primary { display: none; }
    .nav-logo img { height: 32px; }
    .nav-toggle { width: 40px; height: 40px; }
    .container { padding-inline: 1rem; }
}

/* ───────── Hero ───────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
    background:
        radial-gradient(circle at 85% 10%, rgba(201, 169, 97, 0.15), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(200, 54, 42, 0.10), transparent 55%),
        linear-gradient(180deg, #FDFBF7 0%, var(--white) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(28,26,23,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(28,26,23,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero-title {
    font-size: clamp(2.4rem, 5.6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero-title em {
    font-style: normal;
    color: var(--primary);
    background: linear-gradient(135deg, var(--red-600) 0%, var(--gold-500) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lead {
    font-size: 1.18rem;
    color: var(--text-soft);
    max-width: 56ch;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    color: var(--text-mute);
    font-size: 0.9rem;
}
.hero-meta strong { color: var(--gray-900); display: block; font-size: 1.5rem; font-family: var(--font-display); }

/* Hero visual: card-stack effect */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

/* Mockup principale: una sola card rossa con badge, titolo, stats, uptime bar */
.hero-mockup {
    background: linear-gradient(140deg, var(--red-600) 0%, var(--red-900) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    overflow: hidden;
    position: relative;
}
.hero-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% -10%, rgba(201, 169, 97, 0.30), transparent 55%),
        radial-gradient(circle at -10% 110%, rgba(255, 255, 255, 0.10), transparent 50%);
    pointer-events: none;
}
.hero-mockup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    position: relative;
}
.hero-mockup-head .dots {
    display: flex;
    gap: 0.4rem;
}
.hero-mockup-head .dots span {
    width: 9px; height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
}
.hero-mockup-head .status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}
.hero-mockup-head .pulse {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #4CD964;
    box-shadow: 0 0 0 0 rgba(76, 217, 100, 0.6);
    animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(76, 217, 100, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(76, 217, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 217, 100, 0); }
}
.hero-mockup-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
}
.hero-mockup-body .hero-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-300);
    font-weight: 700;
}
.hero-mockup-body h3 {
    color: var(--white);
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}
.hero-mockup-body p {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}
.hero-mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    padding-top: 1rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-mockup-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.hero-mockup-stats strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1;
    color: var(--white);
    display: inline-flex;
    align-items: baseline;
}
.hero-mockup-stats strong .unit {
    font-size: 0.6em;
    margin-left: 0.05em;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
}
.hero-mockup-stats .lbl {
    color: rgba(255,255,255,0.65);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}
.hero-mockup-meter {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.hero-mockup-meter .meter-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.62);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-mockup-meter .meter-bar {
    height: 6px;
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
    overflow: hidden;
}
.hero-mockup-meter .meter-bar > span {
    display: block;
    height: 100%;
    width: 99.4%;
    background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
    border-radius: 999px;
}

/* Chip flottante (decorativa, sotto in basso a sinistra) */
.hero-chip {
    position: absolute;
    bottom: -22px;
    left: -10px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 14px;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 3;
    transform: rotate(-2deg);
    transition: transform var(--t-med) var(--ease);
}
.hero-chip:hover { transform: rotate(0); }
.hero-chip .icon-circle {
    width: 38px; height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    color: var(--gray-900);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero-chip .lbl { font-size: 0.72rem; color: var(--text-mute); font-weight: 500; line-height: 1.1; }
.hero-chip .val { font-size: 0.92rem; color: var(--gray-900); font-weight: 700; line-height: 1.2; margin-top: 0.15rem; }
@media (max-width: 480px) {
    .hero-chip { display: none; }
}

/* ───────── Trust bar ───────── */
.trust-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}
.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding-block: 1.5rem;
}
.trust-bar p {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mute);
    font-weight: 600;
    margin: 0;
}
.trust-items { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; }
.trust-items span {
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.trust-items span::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

/* ───────── Cards servizi ───────── */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-med);
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med) var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card .icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-50), rgba(201, 169, 97, 0.18));
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.service-card .icon-wrap svg { width: 24px; height: 24px; }

.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-soft); font-size: 0.95rem; }
.service-card .more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
}
.service-card .more::after {
    content: '→';
    transition: transform var(--t-fast);
}
.service-card:hover .more::after { transform: translateX(4px); }

/* Card servizio "featured" (es. ARIANNA come novità) */
.service-card-featured {
    background: linear-gradient(180deg, #FFF6F6 0%, #FFFFFF 60%);
    border-color: rgba(227, 6, 19, 0.18);
}
.service-card-featured::after { transform: scaleX(1); }
.service-card-featured .icon-wrap {
    background: linear-gradient(135deg, var(--red-700), var(--red-500));
    color: var(--white);
}
.service-card .card-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: linear-gradient(135deg, var(--red-700), var(--red-500));
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 6px 14px -4px rgba(227, 6, 19, 0.5);
}

/* ───────── Feature blocks ───────── */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    margin-block: 4rem;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (max-width: 800px) { .feature-row { grid-template-columns: 1fr; } }

.feature-visual {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--red-50), var(--cream));
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.feature-visual::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 70% 30%, rgba(201, 169, 97, 0.35), transparent 45%),
        radial-gradient(circle at 30% 70%, rgba(200, 54, 42, 0.2), transparent 50%);
}
.feature-visual .glyph {
    position: relative;
    width: 60%; max-width: 240px;
    color: var(--primary);
    opacity: 0.85;
}

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.feature-list li {
    display: flex; gap: 0.85rem; align-items: flex-start;
    color: var(--text-soft);
}
.feature-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    color: var(--gray-900);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    margin-top: 2px;
}

/* ───────── Stats ───────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.stat-card .num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gray-900), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-card .label { font-size: 0.85rem; color: var(--text-mute); margin-top: 0.4rem; }

/* ───────── CTA banner ───────── */
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--red-700) 0%, var(--red-900) 100%);
    color: var(--white);
    padding: clamp(2.5rem, 6vw, 4.5rem);
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(201, 169, 97, 0.35), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255,255,255,0.08), transparent 40%);
    pointer-events: none;
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 60ch; margin-bottom: 2rem; }
.cta-banner .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; position: relative; }

/* ───────── Blog cards ───────── */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .cover {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--red-100), var(--cream));
    position: relative;
    overflow: hidden;
}
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.post-card:hover .cover img { transform: scale(1.05); }
.post-card .cover-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(200, 54, 42, 0.25), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(201, 169, 97, 0.3), transparent 50%),
        linear-gradient(135deg, var(--cream), #fff);
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.05em;
}
.post-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card .meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-mute);
}
.post-card .category {
    background: var(--red-50);
    color: var(--primary);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}
.post-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.post-card h3 a { color: var(--gray-900); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 1.25rem; flex: 1; }
.post-card .read-more { font-weight: 600; font-size: 0.9rem; }

/* ───────── Form ───────── */
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 600;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(200, 54, 42, 0.12);
}
.field .help { font-size: 0.8rem; color: var(--text-mute); }
.field.error input, .field.error textarea, .field.error select { border-color: #C8362A; }
.field.error .err-msg { color: #C8362A; font-size: 0.82rem; }

.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-soft); }
.checkbox-row input { margin-top: 4px; accent-color: var(--primary); }

/* Alert/flash */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-success { background: #ECF8EF; border-color: #B7E2C2; color: #1F6B33; }
.alert-error { background: var(--red-50); border-color: var(--red-100); color: var(--red-700); }

/* ───────── Footer ───────── */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.78);
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.25rem;
    background: var(--white);
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.footer-brand .logo img { height: 38px; display: block; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 36ch; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-socials a {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--t-fast), transform var(--t-fast);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; }

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ───────── Page header (sub-pages) ───────── */
.page-header {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 80% 0%, rgba(201, 169, 97, 0.18), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(200, 54, 42, 0.10), transparent 50%),
        linear-gradient(180deg, #FDFBF7 0%, var(--white) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-mute);
    margin-bottom: 0.85rem;
}
.page-header .breadcrumb a { color: var(--text-soft); }

/* ───────── Article (post singolo) ───────── */
.article {
    max-width: 760px;
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}
.article h1 { margin-bottom: 1rem; }
.article .meta {
    display: flex; gap: 0.75rem; align-items: center;
    color: var(--text-mute); font-size: 0.9rem;
    margin-bottom: 2rem;
}
.article .cover {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--red-50), var(--cream));
}
.article .content { font-size: 1.05rem; line-height: 1.8; color: var(--text-soft); }
.article .content h2 { margin-block: 2rem 1rem; color: var(--gray-900); }
.article .content h3 { margin-block: 1.5rem 0.75rem; color: var(--gray-900); }
.article .content p { margin-bottom: 1.25rem; }
.article .content ul, .article .content ol { margin: 1rem 0 1.5rem 1.25rem; }
.article .content ul li, .article .content ol li { margin-bottom: 0.5rem; }
.article .content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    color: var(--gray-700);
    font-style: italic;
}
.article .content a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Pagination ───────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--white);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ───────── Reveal on scroll ───────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ───────── WhatsApp floating button ───────── */
.whatsapp-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 58px; height: 58px;
    border-radius: 999px;
    background: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 18px 40px -14px rgba(37, 211, 102, 0.5);
    z-index: 40;
    transition: transform var(--t-fast);
}
.whatsapp-fab:hover { transform: scale(1.06); color: var(--white); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ═══════════════════════════════════════════════════════════
   BRAND IDENTITY · pattern decorativi & illustrazioni
   ═══════════════════════════════════════════════════════════ */

/* Pattern dotted di sfondo (sottile, decorativo) */
.bg-dots {
    position: relative;
}
.bg-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(28,26,23,0.08) 1px, transparent 0);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.bg-dots > * { position: relative; z-index: 1; }

/* Glow orb decorativi */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.glow-orb-red   { background: radial-gradient(circle, var(--red-600) 0%, transparent 65%); }
.glow-orb-light { background: radial-gradient(circle, var(--red-300) 0%, transparent 65%); }

/* Section divider: onda SVG morbida tra sezioni */
.section-divider {
    position: relative;
    height: 60px;
    margin-top: -60px;
    pointer-events: none;
    z-index: 1;
}
.section-divider svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.section-divider.flip svg { transform: rotate(180deg); }

/* Linea decorativa sotto i titoli h2 di sezione */
.section-title-deco {
    position: relative;
    display: inline-block;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
}
.section-title-deco::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red-700), var(--red-500));
}

/* ─────────── ILLUSTRAZIONI feature-row (sostituiscono i blob) ─────────── */

.feature-illu {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%, rgba(255, 59, 47, 0.12), transparent 55%),
        radial-gradient(circle at 25% 75%, rgba(227, 6, 19, 0.08), transparent 50%),
        linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.feature-illu::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(28,26,23,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(28,26,23,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

/* Illustrazione 1: dashboard moderno */
.illu-dashboard {
    position: absolute;
    inset: 12% 10% 12% 10%;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.illu-dashboard .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
}
.illu-dashboard .top .dots {
    display: flex; gap: 0.35rem;
}
.illu-dashboard .top .dots span {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--gray-300);
}
.illu-dashboard .top .dots span:first-child { background: var(--red-500); }
.illu-dashboard .top .pill {
    width: 90px; height: 8px;
    background: var(--gray-200);
    border-radius: 999px;
}
.illu-dashboard .body {
    flex: 1;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0.85rem;
}
.illu-dashboard .sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.illu-dashboard .sidebar div {
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
}
.illu-dashboard .sidebar div.active {
    background: linear-gradient(90deg, var(--red-700), var(--red-500));
    width: 80%;
}
.illu-dashboard .main {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.illu-dashboard .stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}
.illu-dashboard .stat-row > div {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 0.5rem;
}
.illu-dashboard .stat-row .num {
    height: 12px;
    width: 50%;
    background: linear-gradient(90deg, var(--red-700), var(--red-500));
    border-radius: 3px;
    margin-bottom: 0.35rem;
}
.illu-dashboard .stat-row .lbl {
    height: 6px;
    width: 80%;
    background: var(--gray-200);
    border-radius: 3px;
}
.illu-dashboard .chart {
    background: var(--gray-50);
    border-radius: 8px;
    height: 70px;
    position: relative;
    overflow: hidden;
    padding: 0.5rem;
}
.illu-dashboard .chart svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 100%;
}
.illu-dashboard .chart-line {
    stroke: var(--red-600);
    stroke-width: 2;
    fill: none;
}
.illu-dashboard .chart-area {
    fill: url(#illuChartFill);
    opacity: 0.35;
}

/* Floating chip decorativi (gold/red) */
.illu-chip {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.18);
    padding: 0.55rem 0.85rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem;
    z-index: 2;
}
.illu-chip .ic {
    width: 28px; height: 28px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}
.illu-chip strong { color: var(--gray-900); display: block; font-size: 0.78rem; }
.illu-chip span { color: var(--text-mute); font-size: 0.72rem; }
.illu-chip-1 {
    top: 8%; right: 4%;
    transform: rotate(2deg);
}
.illu-chip-1 .ic { background: linear-gradient(135deg, var(--red-700), var(--red-500)); }
.illu-chip-2 {
    bottom: 6%; left: -2%;
    transform: rotate(-3deg);
}
.illu-chip-2 .ic { background: linear-gradient(135deg, #2ECC71, #27AE60); }

/* Illustrazione 2: smart working / nodes */
.illu-network {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.illu-network svg {
    width: 80%;
    height: 80%;
    overflow: visible;
}
.illu-node {
    transition: transform 0.3s var(--ease);
}
.illu-node-center circle {
    fill: url(#nodeCenterFill);
    filter: drop-shadow(0 12px 28px rgba(227, 6, 19, 0.4));
}
.illu-node-sat circle {
    fill: var(--white);
    stroke: var(--border);
    stroke-width: 1.5;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.10));
}
.illu-link {
    stroke: url(#nodeLinkFill);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 6 6;
    opacity: 0.6;
    animation: dashFlow 4s linear infinite;
}
@keyframes dashFlow {
    to { stroke-dashoffset: -24; }
}
.illu-pulse {
    fill: none;
    stroke: var(--red-500);
    stroke-width: 2;
    transform-origin: center;
    animation: pulseRipple 2.4s ease-out infinite;
}
@keyframes pulseRipple {
    0%   { r: 28; opacity: 0.6; }
    100% { r: 60; opacity: 0; }
}

/* ─────────── Sezione Tecnologie partner ─────────── */
.tech-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.tech-section .head {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}
.tech-section .head .eyebrow { justify-content: center; }
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    align-items: center;
}
.tech-logo {
    aspect-ratio: 5 / 2;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center; justify-content: center;
    padding: 0.75rem 0.85rem;
    color: var(--gray-500);
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all var(--t-med) var(--ease);
    text-align: center;
    line-height: 1.05;
    min-width: 0;
    overflow: hidden;
    word-break: keep-all;
}
.tech-logo:hover {
    color: var(--gray-900);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.tech-logo small {
    display: block;
    font-size: 0.62rem;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
    font-weight: 500;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .tech-grid { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
}
@media (max-width: 720px) {
    .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
    .tech-logo {
        font-size: 0.82rem;
        padding: 0.55rem 0.4rem;
        aspect-ratio: 4 / 3;
    }
    .tech-logo small { font-size: 0.55rem; letter-spacing: 0.04em; }
}
@media (max-width: 420px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
    .tech-logo { font-size: 0.85rem; aspect-ratio: 5/2; }
    .tech-logo small { font-size: 0.6rem; }
}

/* Stagger reveal delays — le card si rivelano in cascata */
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* Page transition iniziale (fade-in del body al load) */
@keyframes pageEnter {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body { animation: pageEnter 360ms var(--ease) both; }

/* ─────────── 404 con personalità ─────────── */
/* Pagina 404 — layout dedicato */
.error-page {
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 59, 47, 0.10), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(227, 6, 19, 0.08), transparent 55%),
        linear-gradient(180deg, #FFF8F8 0%, var(--white) 100%);
    position: relative;
}
.error-card-shell {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.error-illu {
    width: 240px;
    max-width: 70%;
    margin: 0 auto 1.5rem;
    aspect-ratio: 1 / 1;
}
.error-illu svg { width: 100%; height: 100%; }
.error-illu .bot-eye {
    transform-origin: center;
    animation: blink 4s infinite;
}
@keyframes blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95%           { transform: scaleY(0.1); }
}
.error-illu .bot-pulse {
    animation: errorPulse 2.4s ease-in-out infinite;
    transform-origin: center;
}
@keyframes errorPulse {
    0%, 100% { opacity: 0.35; transform: translateX(0); }
    50%      { opacity: 1;    transform: translateX(0); }
}
.error-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.error-lead {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 56ch;
    margin: 0.75rem auto 2rem;
}
.error-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Divisore "oppure esplora" */
.error-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 720px;
    margin: 3rem auto 1.75rem;
    color: var(--text-mute);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.error-divider::before,
.error-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.error-divider span { white-space: nowrap; }

/* Quick-link cards */
.error-suggestions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 720px) { .error-suggestions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .error-suggestions { grid-template-columns: 1fr; } }

.error-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.25rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all var(--t-med) var(--ease);
    text-align: center;
}
.error-quick:hover {
    border-color: var(--red-300);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: inherit;
}
.error-quick .ic {
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.error-quick .lbl {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.error-quick .dsc {
    color: var(--text-mute);
    font-size: 0.8rem;
    line-height: 1.35;
}

/* ───────── Reduce motion ───────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ───────── Print ───────── */
@media print {
    .site-header, .site-footer, .whatsapp-fab, .nav-cta, .nav-toggle { display: none !important; }
    body { color: #000; background: #fff; }
}
