@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
/* ============================================================
   Datamat — Login Style System
   Aesthetic: refined editorial / deep navy + warm gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colori principali */
    --ink: #1b1a6e;
    --ink-soft: #3730a3;
    --ink-light: #4f46e5;
    --paper: #eef2f7;
    --paper-warm: #e2e8f0;
    --paper-deep: #cbd5e1;
    --cream: #f8fafc;
    --white: #ffffff;

    /* Accenti */
    --gold: #3730a3;
    --gold-deep: #26216f;
    --gold-soft: #e0defa;
    --terracotta: #f59e0b;

    /* Stati */
    --success: #16a34a;
    --success-soft: #dcfce7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;
    --info: #3730a3;

    /* Grigi */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #1e293b;

    /* Tipografia */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;

    /* Ombre */
    --shadow-sm: 0 1px 2px rgba(14, 28, 46, 0.05);
    --shadow: 0 4px 16px rgba(14, 28, 46, 0.08);
    --shadow-lg: 0 12px 40px rgba(14, 28, 46, 0.12);
    --shadow-xl: 0 24px 60px rgba(14, 28, 46, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Decorative background grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.04, 0 0 0 0 0.11, 0 0 0 0 0.18, 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

main, header, footer, section { position: relative; z-index: 2; }

a { color: var(--ink-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px clamp(24px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-brand {
    display: inline-block;
    width: 260px;
    height: 60px;
    font-size: 0;
    background-image: url('../img/logo.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}
.nav-brand .accent {
    color: var(--gold-deep);
    font-style: italic;
    font-weight: 400;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all .2s;
}
.nav-links a:hover { background: var(--paper-warm); color: var(--ink); }

.nav-cta {
    background: var(--ink);
    color: var(--cream) !important;
    padding: 11px 22px !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: all .25s ease;
    border: 1px solid var(--ink);
}
.nav-cta:hover {
    background: var(--ink-soft);
    color: var(--gold-soft) !important;
    transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 96px clamp(24px, 4vw, 56px) 120px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: #60a5fa;
}
.hero h1 {
    font-size: clamp(44px, 6vw, 84px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    color: var(--ink);
}
.hero h1 em {
    font-style: italic;
    font-weight: 300;
    color: #93c5fd;
    margin-right: 0.12em;
    padding-right: 0.06em;
}
.hero-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 44px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 162, 74, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 162, 74, 0.15) 0%, transparent 50%);
}
.hero-visual::after {
    content: '01';
    position: absolute;
    bottom: -20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: clamp(140px, 16vw, 200px);
    font-weight: 200;
    color: rgba(200, 162, 74, 0.22);
    line-height: 1;
    letter-spacing: -0.05em;
    z-index: 1;
    pointer-events: none;
}
.hero-visual-content {
    position: absolute;
    inset: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--cream);
    z-index: 2;
}
.hero-visual-content .top-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-soft);
    font-weight: 600;
}
.hero-visual-content .quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 300;
}
.hero-visual-content .author {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-soft);
    border-top: 1px solid rgba(200, 162, 74, 0.4);
    padding-top: 16px;
}

/* ============================================================
   PULSANTI
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--ink-soft);
    color: var(--gold-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-gold {
    background: var(--gold-deep);
    color: var(--cream);
    border-color: var(--gold-deep);
}
.btn-gold:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 8px 14px;
}
.btn-ghost:hover { color: var(--ink); background: var(--paper-warm); }
.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}
.btn-danger:hover { background: #7a2424; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============================================================
   SEZIONI
   ============================================================ */
.section {
    padding: 100px clamp(24px, 4vw, 56px);
    max-width: 1280px;
    margin: 0 auto;
}
.section-header { margin-bottom: 64px; max-width: 720px; }
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 20px;
}
.section-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold-deep);
}
.section h2 {
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.section h2 em { font-style: italic; color: var(--gold-deep); font-weight: 300; margin-right: 0.08em; }
.section-lead { font-size: 18px; color: var(--gray-600); line-height: 1.6; }

.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h2 { color: var(--cream); }
.section-dark .section-lead { color: var(--gray-200); }
.section-dark .section-eyebrow { color: #60a5fa; }
.section-dark .section-eyebrow::before { background: #60a5fa; }

/* ============================================================
   GRIGLIA SERVIZI (landing pubblica)
   ============================================================ */
.servizi-grid {
    display: grid;
    /* auto-fit + minmax così con poche card non resta una grid vuota a destra;
       le colonne in eccesso collassano invece di disegnarsi vuote. */
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    /* Quando c'è 1-2 card, allineiamo in alto-sinistra invece di stirare */
    justify-content: start;
}
/* Limita la larghezza massima SOLO quando c'è una singola card,
   per evitare card "panoramiche" su schermi larghi.
   Con N card, le card si comportano normalmente (la grid distribuisce). */
.servizi-grid > .servizio-card:only-child {
    max-width: 560px;
}
.servizio-card {
    background: var(--cream);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all .35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 280px;
}
.servizio-card:hover {
    background: var(--white);
    transform: translateY(-2px);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}
.servizio-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    margin-bottom: 4px;
}
.servizio-card-num {
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.1em;
}
.servizio-card h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
}
.servizio-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--gray-600);
    flex: 1;
}
.servizio-card-prezzo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.servizio-card-prezzo small {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================================
   CARDS / FEATURES (sezione perché sceglierci)
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}
.feature {
    border-top: 1px solid var(--gold-deep);
    padding-top: 32px;
}
.feature-num {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 18px;
    display: block;
}
.feature h3 {
    font-size: 26px;
    color: var(--cream);
    margin-bottom: 14px;
    font-weight: 500;
}
.feature p { color: var(--gray-200); font-size: 15px; line-height: 1.6; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
    background: var(--paper-warm);
    padding: 80px clamp(24px, 4vw, 56px);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}
.stat { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 300;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.04em;
}
.stat-number .plus { color: var(--gold-deep); font-weight: 400; }
.stat-label {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-top: 12px;
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--ink);
    color: var(--gray-200);
    padding: 80px clamp(24px, 4vw, 56px) 32px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand h3 {
    width: 200px;
    height: 44px;
    font-size: 0;
    background-image: url('../img/logo-white.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    margin-bottom: 16px;
}
.footer-brand h3 em { color: #93c5fd; font-style: italic; font-weight: 300; }
.footer-brand p { color: var(--gray-300); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    font-weight: 600;
    font-family: var(--font-body);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--gray-200); font-size: 14px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 0 clamp(0px, 1vw, 8px);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--gray-400);
    font-size: 13px;
}

/* ============================================================
   FORM (login, reset)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--cream);
}
.auth-side {
    background: var(--ink);
    color: var(--cream);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0% 100%, rgba(96, 165, 250, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(147, 197, 253, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.auth-side > * { position: relative; z-index: 2; }
.auth-side-brand {
    display: block;
    width: 360px;
    height: 100px;
    font-size: 0;
    background-image: url('../img/logo-white.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}
.auth-side-brand em { color: #93c5fd; font-style: italic; font-weight: 300; }
.auth-side-content { max-width: 460px; }
.auth-side-content .eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 24px;
    font-weight: 600;
}
.auth-side-content h2 {
    color: var(--cream);
    font-size: 48px;
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 20px;
}
.auth-side-content h2 em { color: #93c5fd; font-style: italic; font-weight: 300; }
.auth-side-content p { color: var(--gray-200); font-size: 16px; line-height: 1.6; }
.auth-side-foot { font-size: 12px; color: var(--gray-400); }

.auth-form-wrap {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}
.auth-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.auth-form-header { margin-bottom: 40px; }
.auth-form-header .back {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.auth-form h1 {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.auth-form h1 em { font-style: italic; color: var(--gold-deep); font-weight: 300; }
.auth-form .sub { color: var(--gray-500); font-size: 15px; }

.form-group { margin-bottom: 22px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all .2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}
.form-input::placeholder { color: var(--gray-400); }
textarea.form-input { min-height: 100px; resize: vertical; font-family: var(--font-body); }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a4438' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.form-meta a { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-600); }

.btn-block { width: 100%; padding: 16px; font-size: 15px; }

.auth-divider {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
}
.auth-divider a { color: var(--ink); font-weight: 600; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-left: 4px solid;
    line-height: 1.5;
}
.alert-success { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.alert-info { background: #d8e4ec; color: var(--info); border-color: var(--info); }
.alert-warning { background: #fbeed0; color: var(--warning); border-color: var(--warning); }

/* ============================================================
   ANIMAZIONI
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s ease both; }
.fade-up-delay-1 { animation: fadeUp .8s ease .1s both; }
.fade-up-delay-2 { animation: fadeUp .8s ease .2s both; }
.fade-up-delay-3 { animation: fadeUp .8s ease .3s both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { aspect-ratio: 4/3; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}
@media (max-width: 640px) {
    .nav-inner { padding: 14px 18px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .hero, .section { padding: 60px 18px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .auth-form-wrap { padding: 32px 18px; }
    .servizi-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   SOFTWARESCUOLE — Estensione style.css
   Componenti per: trust badges, conformità, steps, confronto,
   testimonial, CTA finale, footer badges
   ============================================================ */

/* ─────────── Hero badges (trust) ─────────── */
.hero-badges {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--paper-warm);
    color: var(--ink-soft);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.badge-trust .icon,
.badge-trust i {
    color: var(--gold-deep);
}

/* ─────────── Sezione cream ─────────── */
.section-cream {
    background: var(--paper-warm);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

/* ─────────── Conformità normativa ─────────── */
.norm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 16px;
}
.norm-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
}
.norm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.norm-badge {
    display: inline-block;
    background: var(--ink);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: 'SF Mono', Consolas, monospace;
    margin-bottom: 18px;
}
.norm-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
}
.norm-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}
.norm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
}
.norm-list li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--ink-soft);
    position: relative;
    padding-left: 22px;
}
.norm-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-deep);
    font-weight: 700;
}

/* ─────────── Steps onboarding ─────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 36px;
}
.step {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s ease;
}
.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.step-num {
    position: absolute;
    top: -22px;
    left: 28px;
    width: 44px;
    height: 44px;
    background: var(--ink);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.step h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin: 14px 0 12px 0;
    line-height: 1.3;
}
.step p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}
.step-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
}

/* ─────────── Confronto ─────────── */
.compare-table {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 16px;
}
.ct-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    border-bottom: 1px solid var(--gray-200);
}
.ct-row:last-child { border-bottom: none; }
.ct-cell {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--gray-600);
    border-right: 1px solid var(--gray-200);
}
.ct-cell:last-child { border-right: none; }
.ct-head {
    background: var(--paper-warm);
}
.ct-head .ct-cell {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ct-lbl {
    font-weight: 600;
    color: var(--ink) !important;
}
.ct-us {
    background: var(--cream);
    color: var(--ink) !important;
    font-weight: 500;
}
.ct-head .ct-us strong {
    color: var(--gold-deep);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
}

@media (max-width: 768px) {
    .ct-row { grid-template-columns: 1fr; }
    .ct-cell { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .ct-cell:last-child { border-bottom: none; }
}

/* ─────────── Testimonial ─────────── */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testi-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.testi-card::before {
    content: '"';
    position: absolute;
    top: -8px;
    right: 18px;
    font-family: var(--font-display);
    font-size: 70px;
    line-height: 1;
    color: var(--paper-warm);
    z-index: 0;
}
.testi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.testi-quote {
    font-family: var(--font-display);
    font-size: 17px;
    font-style: italic;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--gray-200);
    padding-top: 18px;
    position: relative;
    z-index: 1;
}
.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.testi-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
}
.testi-role {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ─────────── CTA finale ─────────── */
.section-cta {
    background: var(--ink);
    color: var(--cream);
    padding: 120px clamp(24px, 4vw, 56px);
    position: relative;
    overflow: hidden;
}
/* Decorazioni atmosferiche: aloni dorati e pattern righe sottili sullo sfondo */
.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(200, 162, 74, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(200, 162, 74, 0.10) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}
/* Numero gigante decorativo come negli altri blocchi (firma editoriale) */
.section-cta::after {
    content: '∞';
    position: absolute;
    bottom: -60px;
    right: 4%;
    font-family: var(--font-display);
    font-size: clamp(280px, 28vw, 480px);
    font-weight: 200;
    line-height: 1;
    color: rgba(200, 162, 74, 0.06);
    pointer-events: none;
    z-index: 1;
    letter-spacing: -0.05em;
}
.cta-box {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    /* Niente più "scatola dentro scatola": il box vive direttamente sullo sfondo scuro,
       niente background, niente border, niente padding interno gigante */
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
/* Eyebrow centrato con trattini ai DUE lati invece che solo a sinistra */
.cta-box .section-eyebrow {
    color: var(--gold);
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.cta-box .section-eyebrow::before,
.cta-box .section-eyebrow::after {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--gold);
}
.cta-box h2 {
    color: var(--cream);
    margin-bottom: 24px;
    /* Ottimizziamo l'andamento del titolo: balance evita le vedove tipografiche
       (es. "?" da solo su nuova riga). Funziona su Chrome/Edge/Safari, fallback grazie. */
    text-wrap: balance;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.08;
}
.cta-box h2 em {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
    margin-right: 0.06em;
}
.cta-box .section-lead {
    color: var(--gray-200);
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 17px;
    line-height: 1.65;
}
/* Bottoni della CTA: gerarchia chiara — primario oro pieno, secondario chiaro su scuro */
.cta-box .hero-actions {
    justify-content: center;
    gap: 16px;
    margin-top: 0;
}
.cta-box .btn-primary {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    padding: 16px 32px;
    font-weight: 700;
}
.cta-box .btn-primary:hover {
    background: var(--gold-soft);
    color: var(--ink);
    border-color: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200, 162, 74, 0.3);
}
.cta-box .btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245, 242, 234, 0.3);
    padding: 16px 32px;
}
.cta-box .btn-secondary:hover {
    background: rgba(245, 242, 234, 0.08);
    color: var(--cream);
    border-color: var(--cream);
}
/* Riga di rassicurazione sotto i bottoni — facoltativa, se aggiunta in HTML */
.cta-box-trust {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 12px;
    color: rgba(245, 242, 234, 0.5);
    letter-spacing: 0.05em;
}
.cta-box-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cta-box-trust i {
    color: var(--gold);
    font-size: 11px;
}

@media (max-width: 640px) {
    .section-cta { padding: 80px 20px; }
    .cta-box .hero-actions { flex-direction: column; }
    .cta-box .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─────────── Footer badges ─────────── */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.footer-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 11px;
    color: var(--gray-200);
    letter-spacing: 0.3px;
}
