/* =============================================
   MG THEME — Design System
   ============================================= */

:root {
    --blue:       #D97706;
    --blue-dark:  #B45309;
    --linkedin:   #0A66C2;
    --navy:       #0d1117;
    --navy-light: #161420;
    --dark:       #1e2030;
    --gray-900:   #111827;
    --gray-700:   #374151;
    --gray-500:   #6b7280;
    --gray-300:   #d1d5db;
    --gray-100:   #f3f4f6;
    --white:      #ffffff;
    --accent:     #FFF8EE;

    --font-body:    'Outfit', sans-serif;
    --font-serif:   'Lora', serif;
    --font-display: 'DM Serif Display', 'Lora', serif;

    --radius:     12px;
    --radius-lg:  20px;
    --shadow:     0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:  0 8px 48px rgba(0,0,0,0.14);

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h:   72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { color: var(--gray-700); }
.lead { font-size: 1.2rem; color: var(--gray-700); line-height: 1.8; }

em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--blue);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--blue);
    color: var(--navy);
    font-weight: 700;
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(217,119,6,0.25), 0 8px 32px rgba(217,119,6,0.5), 0 2px 6px rgba(0,0,0,0.15);
}
.btn-ghost {
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}
.btn-outline {
    border: 2px solid var(--blue);
    color: var(--blue);
}
.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
}
.btn-linkedin {
    background: var(--linkedin);
    color: var(--white);
    gap: 10px;
}
.btn-linkedin:hover {
    background: #084ea0;
    transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ── Section base ── */
.section { padding: 120px 0; }
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}
.section-label.light { color: rgba(255,255,255,0.7); }
.section-header { max-width: 640px; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; color: var(--gray-500); }
.section-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 56px;
    flex-wrap: wrap;
}

/* ── Profile photo ── */
.profile-photo-wrap {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--navy-light);
}
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ── Vision & Mission ── */
.vision-mission {
    background: var(--navy);
    padding: 80px 0;
}
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.vm-card {
    padding: 52px 48px;
    position: relative;
}
.vm-vision  { background: rgba(217,119,6,0.12); border: 1px solid rgba(217,119,6,0.2); }
.vm-mission { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.vm-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
}
.vm-card h3 {
    font-size: 1.45rem;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 700;
}
.vm-card h3 em {
    font-family: var(--font-serif);
    color: var(--blue);
    font-style: italic;
}
.vm-card p { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.75; }

/* ── Reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(13,17,23,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 32px;
    max-width: 1300px;
    margin: 0 auto;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}
.logo-mark {
    width: 38px; height: 38px;
    background: var(--blue);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.logo-name { color: rgba(255,255,255,0.9); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.site-nav .nav-cta {
    background: var(--blue);
    color: var(--navy);
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 100px;
    margin-left: 8px;
}
.site-nav .nav-cta:hover { background: var(--blue-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
    padding-top: var(--header-h);
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(217,119,6,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217,119,6,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,119,6,0.18) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: 80px 48px;
}
.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 24px;
}
.hero-title {
    color: var(--white);
    margin-bottom: 28px;
    font-weight: 800;
}
.hero-title em {
    color: var(--blue);
    font-style: italic;
    font-family: var(--font-serif);
}
.hero-sub {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 48px;
    max-width: 560px;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 48px; left: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.scroll-line {
    width: 60px; height: 1px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--blue);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { left: -100%; }
    50%  { left: 0; }
    100% { left: 100%; }
}

/* =============================================
   CHI SONO
   ============================================= */
.chi-sono { background: var(--white); }
.chi-sono-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: center;
}
.chi-sono-text h2 { margin-bottom: 24px; }
.chi-sono-text p { margin-bottom: 20px; }
.chi-sono-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}
.tag {
    padding: 6px 16px;
    background: var(--accent);
    color: var(--blue);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(217,119,6,0.15);
}

.profile-card {
    background: var(--navy);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.profile-photo-placeholder {
    height: 280px;
    background: linear-gradient(135deg, var(--navy-light), var(--blue-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.15);
    letter-spacing: -0.05em;
}
.profile-card-info { padding: 32px; }
.profile-card-info blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.7;
    border-left: 3px solid var(--blue);
    padding-left: 20px;
    margin-bottom: 28px;
}
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}
.stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.stat span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    display: block;
}

/* =============================================
   CREDENZIALI
   ============================================= */
.credenziali { background: var(--gray-100); }

.credenziali-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
}
.cred-left h2    { margin-bottom: 20px; }
.cred-left .lead { margin-bottom: 16px; }

.cred-right { display: flex; flex-direction: column; gap: 32px; }

.cred-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}
.cred-block-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 20px;
}
.cred-list { display: flex; flex-direction: column; gap: 20px; }

.cred-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.cred-item--placeholder { opacity: 0.5; }

.cred-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.cred-icon--edu  { background: var(--accent); color: var(--blue); }
.cred-icon--cert { background: #fef3c7; color: #d97706; }
.cred-icon--skill { background: #f0fdf4; color: #16a34a; }

.cred-info { display: flex; flex-direction: column; gap: 3px; }
.cred-info strong { font-size: 0.97rem; color: var(--gray-900); font-weight: 600; }
.cred-info span   { font-size: 0.85rem; color: var(--gray-500); }
.cred-info em     { font-size: 0.82rem; color: var(--blue); font-style: italic; }

/* Lingue */
.cred-langs { display: flex; flex-direction: column; gap: 14px; }
.lang-item {
    display: grid;
    grid-template-columns: 80px 1fr 90px;
    align-items: center;
    gap: 12px;
}
.lang-name  { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }
.lang-level { font-size: 0.78rem; color: var(--gray-500); text-align: right; }
.lang-bar   { height: 5px; background: var(--gray-300); border-radius: 100px; overflow: hidden; }
.lang-fill  { height: 100%; background: var(--blue); border-radius: 100px; }

/* =============================================
   COSA FACCIO — dark
   ============================================= */
.dark-section {
    background: var(--navy);
    color: var(--white);
}
.dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section .section-desc { color: rgba(255,255,255,0.55); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
}
.service-card:hover {
    background: rgba(217,119,6,0.1);
    border-color: rgba(217,119,6,0.3);
    transform: translateY(-4px);
}
.service-icon {
    width: 56px; height: 56px;
    background: rgba(217,119,6,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    margin-bottom: 20px;
}
.service-card h3 { color: var(--white); margin-bottom: 12px; }
.service-card p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* =============================================
   HERO — Testo rotante
   ============================================= */
.hero-rotating-wrap {
    display: inline-block;
    position: relative;
    min-height: 1.2em;
    vertical-align: bottom;
}
.hero-rotating {
    display: inline-block;
    color: var(--blue);
    font-style: italic;
    font-family: var(--font-serif);
    position: relative;
}
.hero-rotating.fade-out {
    animation: textFadeOut 0.4s ease forwards;
}
.hero-rotating.fade-in {
    animation: textFadeIn 0.4s ease forwards;
}
@keyframes textFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-12px); }
}
@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   LABORATORIO
   ============================================= */
.laboratorio { background: var(--white); }

.lab-intro {
    max-width: 820px;
    margin-bottom: 80px;
}
.lab-intro h2 { margin-bottom: 28px; }
.lab-intro .lead { margin-bottom: 20px; }
.lab-intro strong { color: var(--gray-900); }

.lab-aree {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 64px;
}
.lab-area {
    padding: 48px 52px;
    border-bottom: 1.5px solid var(--gray-300);
    transition: background var(--transition);
    position: relative;
}
.lab-area:last-child { border-bottom: none; }
.lab-area:hover { background: var(--gray-100); }

.lab-area-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}
.lab-area-icon {
    width: 52px; height: 52px;
    background: var(--accent);
    border: 1.5px solid rgba(217,119,6,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 4px;
}
.lab-area-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}
.lab-area-header h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
}
.lab-area > p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 720px;
}
.lab-area em { color: var(--blue); font-style: italic; }

.lab-caso {
    background: var(--accent);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin-bottom: 20px;
    max-width: 720px;
}
.caso-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}
.lab-caso p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 0;
}
.lab-caso strong { color: var(--gray-900); }

.lab-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tool-badge {
    padding: 4px 14px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--gray-300);
}

/* Lead magnet */
.lab-lead {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}
.lab-lead-text h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 16px;
}
.lab-lead-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 12px;
    max-width: 560px;
}
.lab-lead-text strong { color: var(--white); }
.lab-lead-action { text-align: center; flex-shrink: 0; }
.btn-large { padding: 18px 36px; font-size: 1.1rem; }
.lead-note {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin-top: 14px;
    line-height: 1.6;
    font-style: italic;
}

.progetti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.progetto-card {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}
.progetto-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 24px rgba(217,119,6,0.1);
    transform: translateY(-3px);
}
.progetto-area {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}
.progetto-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.progetto-card p  { font-size: 0.92rem; margin-bottom: 16px; }
.progetto-tool    { margin-bottom: 16px; }
.progetto-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
}

/* =============================================
   PENSIERI
   ============================================= */
.pensieri { background: var(--gray-100); }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.post-card-inner { padding: 32px; }
.post-meta time {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}
.post-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: 0.95rem; margin-bottom: 20px; }
.post-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.02em;
}
.posts-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px;
    color: var(--gray-500);
}
.posts-empty a { color: var(--blue); font-weight: 600; }

/* =============================================
   IL LIBRO
   ============================================= */
.accent-section {
    background: var(--accent);
    border-top: 1px solid rgba(217,119,6,0.1);
    border-bottom: 1px solid rgba(217,119,6,0.1);
}
.libro-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 80px;
    align-items: center;
}
.libro-text h2 { margin-bottom: 24px; }
.libro-text p { margin-bottom: 20px; }

/* 3D Book */
.libro-cover { perspective: 1000px; }
.book-3d {
    position: relative;
    width: 240px;
    height: 320px;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(4deg);
    transition: transform 0.5s ease;
    margin: auto;
}
.book-3d:hover { transform: rotateY(-8deg) rotateX(2deg); }
.book-face {
    position: absolute;
    backface-visibility: hidden;
    border-radius: 4px 12px 12px 4px;
}
.book-front {
    width: 240px; height: 320px;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    left: 0; top: 0;
}
.book-spine {
    width: 32px; height: 320px;
    background: linear-gradient(90deg, #06090f, var(--navy-light));
    left: -32px; top: 0;
    transform: rotateY(-90deg) translateZ(-16px);
    border-radius: 4px 0 0 4px;
}
.book-cover-design {
    padding: 40px 32px;
    text-align: left;
    width: 100%;
}
.book-cover-author {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}
.book-cover-title {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 32px;
}
.book-cover-line {
    width: 40px; height: 3px;
    background: var(--blue);
    border-radius: 2px;
}

/* =============================================
   PRENOTA
   ============================================= */
.prenota { background: var(--gray-50, #f9fafb); }
.prenota-card {
    margin-top: 48px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    background: #fff;
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: 0 4px 40px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.06);
    max-width: 780px;
}
.prenota-card-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--primary, #2563eb);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.prenota-card-body { flex: 1; }
.prenota-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.prenota-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 99px;
    background: #f1f5f9;
    color: #475569;
}
.prenota-badge--green { background: #dcfce7; color: #15803d; }
.prenota-dot {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.prenota-card-title { font-size: 1.75rem; font-weight: 700; margin: 0 0 12px; }
.prenota-card-desc { color: var(--text-muted, #64748b); margin-bottom: 28px; line-height: 1.6; }
.prenota-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) {
    .prenota-card { flex-direction: column; gap: 20px; padding: 32px 24px; }
}

/* =============================================
   CONTATTI
   ============================================= */
.contatti { background: var(--white); }
.contatti-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contatti-text h2 { margin-bottom: 20px; }
.contatti-text .lead { margin-bottom: 40px; }
.contatti-info { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}
.contact-link:hover { gap: 16px; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}
.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}
.form-note {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.6;
    font-style: italic;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--navy);
    padding: 64px 0 32px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}
.footer-tagline {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.footer-social:hover { color: var(--white); }
.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }
.footer-quote {
    font-style: italic;
    font-family: var(--font-serif);
}

/* =============================================
   AI FRAMEWORK
   ============================================= */
.ai-framework { background: var(--navy); }
.framework-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.framework-step {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 44px 36px;
    position: relative;
    transition: var(--transition);
}
.framework-step:hover {
    background: rgba(217,119,6,0.09);
    border-color: rgba(217,119,6,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.framework-step-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    color: rgba(217,119,6,0.2);
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}
.framework-step:hover .framework-step-num { color: rgba(217,119,6,0.5); }
.framework-step h3 { color: var(--white); margin-bottom: 14px; font-size: 1.3rem; }
.framework-step p { color: rgba(255,255,255,0.58); font-size: 0.95rem; line-height: 1.75; }
.framework-cta {
    margin-top: 72px;
    text-align: center;
    padding: 56px;
    border: 1px solid rgba(217,119,6,0.2);
    border-radius: var(--radius-lg);
    background: rgba(217,119,6,0.04);
}
.framework-result {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.framework-result em { color: var(--blue); font-style: italic; }

/* =============================================
   VISUAL ENHANCEMENTS
   ============================================= */

/* Grain texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px;
}

/* Hero animated blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
}
.hero-blob-1 {
    width: 700px; height: 700px;
    top: -20%; right: -10%;
    background: radial-gradient(ellipse, rgba(217,119,6,0.25) 0%, transparent 65%);
    animation: blobFloat1 20s ease-in-out infinite;
}
.hero-blob-2 {
    width: 500px; height: 500px;
    bottom: 0; left: -8%;
    background: radial-gradient(ellipse, rgba(217,119,6,0.13) 0%, transparent 65%);
    animation: blobFloat2 26s ease-in-out infinite;
}
.hero-blob-3 {
    width: 360px; height: 360px;
    top: 35%; left: 42%;
    background: radial-gradient(ellipse, rgba(255,195,60,0.07) 0%, transparent 65%);
    animation: blobFloat3 18s ease-in-out infinite;
}
@keyframes blobFloat1 {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%  { transform: translate(38px,-24px) scale(1.07); }
    66%  { transform: translate(-18px,16px) scale(0.96); }
}
@keyframes blobFloat2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    40%  { transform: translate(-28px,20px) scale(1.05); }
    75%  { transform: translate(24px,-14px) scale(0.97); }
}
@keyframes blobFloat3 {
    0%, 100% { transform: translate(0,0); opacity: 0.5; }
    50%  { transform: translate(14px,-22px); opacity: 1; }
}

/* Hero title larger on wide screens */
@media (min-width: 900px) {
    .hero-title { font-size: clamp(3.2rem, 7vw, 6.5rem); }
}

/* Enhanced service card hover */
.service-card:hover {
    background: rgba(217,119,6,0.09);
    border-color: rgba(217,119,6,0.28);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(217,119,6,0.15);
}

/* Profile card hover lift */
.profile-card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(217,119,6,0.2);
}

/* Stat numbers — gradient text */
.stat strong {
    background: linear-gradient(135deg, #ffffff 20%, rgba(255,205,80,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Prenota card hover */
.prenota-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(217,119,6,0.1), 0 4px 24px rgba(0,0,0,0.07);
}

/* Lab area hover accent */
.lab-area:hover { background: linear-gradient(90deg, rgba(217,119,6,0.03), transparent); }

/* Project card hover */
.progetto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(217,119,6,0.12);
}

/* VM cards richer */
.vm-vision  { background: linear-gradient(135deg, rgba(217,119,6,0.14) 0%, rgba(217,119,6,0.04) 100%); }
.vm-mission { background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .chi-sono-grid  { grid-template-columns: 1fr; gap: 48px; }
    .services-grid  { grid-template-columns: repeat(2, 1fr); }
    .libro-grid     { grid-template-columns: 1fr; text-align: center; }
    .libro-cover    { order: -1; }
    .contatti-inner { grid-template-columns: 1fr; gap: 48px; }
    .vm-grid        { grid-template-columns: 1fr; }
    .vm-card        { padding: 36px 28px; }
    .lab-lead       { grid-template-columns: 1fr; text-align: center; }
    .lab-lead-text p { max-width: 100%; }
    .progetti-grid  { grid-template-columns: repeat(2, 1fr); }
    .lab-area       { padding: 36px 32px; }
    .framework-grid { grid-template-columns: repeat(2, 1fr); }
    .framework-cta  { padding: 40px 32px; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .hero-content { padding: 60px 24px; }
    .hero-scroll  { display: none; }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        height: calc(100vh - var(--header-h));
        min-height: calc(100svh - var(--header-h));
        background: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        z-index: 99;
        padding: 24px;
        overflow-y: auto;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        font-size: 1.4rem;
        font-weight: 600;
        color: rgba(255,255,255,0.85);
        padding: 16px 40px;
        border-radius: 12px;
        width: 100%;
        text-align: center;
        transition: var(--transition);
    }
    .site-nav a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
    .site-nav .nav-cta {
        background: var(--blue);
        color: var(--white);
        margin-top: 12px;
        border-radius: 100px;
        font-size: 1.1rem;
    }
    .site-nav .nav-cta:hover { background: var(--blue-dark); }

    /* Hamburger → X animation */
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .services-grid  { grid-template-columns: 1fr; }
    .posts-grid     { grid-template-columns: 1fr; }
    .framework-grid { grid-template-columns: 1fr; gap: 0; }
    .framework-step { padding: 32px 24px; }
    .framework-step-num { font-size: 2.8rem; margin-bottom: 16px; }
    .framework-result { font-size: 1.25rem; }
    .framework-cta  { padding: 32px 20px; }
    .progetti-grid  { grid-template-columns: 1fr; }
    .lab-area        { padding: 28px 20px; }
    .lab-area-header { flex-direction: column; gap: 12px; }
    .lab-lead        { padding: 36px 24px; }
    .btn-large       { padding: 16px 28px; font-size: 1rem; }
    .credenziali-grid { grid-template-columns: 1fr; gap: 40px; }
    .lang-item       { grid-template-columns: 70px 1fr 80px; }
    .cred-block      { padding: 24px 20px; }

    .profile-stats { grid-template-columns: repeat(3, 1fr); }

    .section-cta { flex-direction: column; align-items: flex-start; }

    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .libro-grid { gap: 48px; }
    .contatti-inner { gap: 40px; }
}
