/* ========================================
   L&D Advisors — Design System v2.0
   Premium Boutique Advisory
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Variables --- */
:root {
    --black: #0a0a0a;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.06);
    --accent-border: rgba(37, 99, 235, 0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease);
    --section-py: 7rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.ready {
    opacity: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }

p {
    color: var(--gray-700);
    line-height: 1.75;
}

.label-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.label-tag-light {
    color: var(--gray-500);
}

.text-balance {
    text-wrap: balance;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 1) !important;
    transition: transform 0.3s ease, padding var(--transition), background var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-300);
    padding: 0.75rem 0;
}

.navbar.nav-light .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
}

.navbar.nav-light .nav-link:hover,
.navbar.nav-light .nav-link.active {
    color: #fff !important;
}

.navbar.nav-light .navbar-logo {
    color: #fff !important;
}

.navbar.nav-light .navbar-logo span {
    color: rgba(255, 255, 255, 0.6);
}

.navbar.nav-light.scrolled .nav-link {
    color: var(--gray-600) !important;
}

.navbar.nav-light.scrolled .nav-link:hover,
.navbar.nav-light.scrolled .nav-link.active {
    color: var(--navy) !important;
}

.navbar.nav-light.scrolled .navbar-logo {
    color: var(--navy) !important;
}

.navbar.nav-light.scrolled .navbar-logo span {
    color: var(--accent);
}

.navbar-brand {
    padding: 0;
}

.navbar-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy) !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
    transition: color var(--transition);
}

.navbar-logo span {
    color: var(--accent);
    transition: color var(--transition);
}

.nav-link {
    margin-left: 0.5rem;
    color: var(--gray-600) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: color var(--transition);
}

.nav-link.active,
.nav-link:hover {
    color: var(--navy) !important;
}

.navbar-toggler {
    border: 1px solid var(--gray-300);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15,42,92,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.nav-light .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar.nav-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: none;
}

.navbar.nav-light.scrolled .navbar-toggler {
    border-color: var(--gray-300);
}

.navbar.nav-light.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15,42,92,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: none;
}

.btn-nav-cta {
    padding: 0.55rem 1.25rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 6px;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    margin-left: 0.5rem;
    transition: all var(--transition);
}

.btn-nav-cta:hover {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    transform: translateY(-1px);
}

/* --- Hero — Home --- */
.hero-home {
    position: relative;
    padding: 9rem 0 5.5rem;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-home h1 {
    color: #fff;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
    max-width: 14ch;
}

.hero-home .hero-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

/* --- Hero — Inner Pages --- */
.hero-inner {
    background: var(--navy);
    color: #fff;
    padding: 10rem 0 4rem;
}

.hero-inner h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.hero-inner p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 600px;
}

.hero-inner .label-tag {
    color: var(--accent);
}

/* --- Buttons --- */
.btn {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.75rem 1.75rem;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent-border);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
    border-color: var(--accent);
}

.btn-dark {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-dark:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-1px);
}

.btn-white {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.btn-white:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--navy);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
    transition: all var(--transition);
}

.link-arrow:hover {
    gap: 0.75rem;
    color: var(--accent-dark);
}

.link-arrow svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Sections --- */
.section {
    padding: var(--section-py) 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-dark {
    background: var(--navy);
    color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.6);
}

.section-dark .label-tag {
    color: var(--accent);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    max-width: 560px;
}

.section-header-center {
    text-align: center;
}

.section-header-center p {
    margin: 0 auto;
}

.divider {
    height: 1px;
    background: var(--gray-300);
    border: none;
    margin: 0;
}

/* --- Pillars --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pillar {
    padding: 2rem 0;
    border-top: 2px solid var(--navy);
}

.pillar-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.pillar h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.pillar p {
    font-size: 0.95rem;
    color: var(--gray-600);
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: #f9fafc;
}

.service-card {
    background: var(--white);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.service-card:hover {
    background: var(--gray-100);
}

.service-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    flex: 1;
    margin-bottom: 1.25rem;
}

.service-card .link-arrow {
    margin-top: auto;
    font-size: 0.85rem;
}

/* --- About Preview --- */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-preview-image {
    border-radius: 4px;
    overflow: hidden;
}

.about-preview-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-preview-content .label-tag {
    margin-bottom: 1.25rem;
}

.about-preview-content h2 {
    margin-bottom: 1.25rem;
}

.about-preview-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Insights Cards --- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.insight-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.insight-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-card-meta {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.insight-card-body h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.insight-card-body p {
    font-size: 0.88rem;
    color: var(--gray-600);
    flex: 1;
    margin-bottom: 1rem;
}

.insight-card-body .link-arrow {
    margin-top: auto;
    font-size: 0.85rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
    background: var(--navy);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* --- About Page --- */
.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-intro p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.about-intro p:first-of-type {
    font-size: 1.15rem;
    color: var(--gray-800);
    font-weight: 400;
}

.about-sidebar {
    background: var(--gray-100);
    border-radius: 4px;
    padding: 2.5rem;
}

.about-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-300);
}

.about-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-stat-row:first-child {
    padding-top: 0;
}

.about-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.about-stat-label {
    font-size: 0.82rem;
    color: var(--gray-600);
}

/* Method / Values */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.method-item {
    padding-top: 1.5rem;
    border-top: 2px solid var(--accent);
}

.method-item h4 {
    margin-bottom: 0.6rem;
}

.method-item p {
    font-size: 0.92rem;
    color: var(--gray-600);
}

/* Founders */
.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.founder-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.founder-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.founder-info h4 {
    margin-bottom: 0.15rem;
}

.founder-info .role {
    font-size: 0.82rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.founder-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* --- Services Page — Blocks --- */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem 0;
    border-bottom: 1px solid var(--gray-300);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-300);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.service-block h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.service-block p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-block ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--gray-700);
}

.service-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.service-block-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-kpi {
    background: var(--gray-100);
    border-radius: 4px;
    padding: 1.25rem;
}

.service-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.service-kpi-label {
    font-size: 0.78rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Approach / Process --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    transition: all var(--transition);
}

.process-step:hover {
    border-color: var(--accent-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.process-step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-300);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin: 0;
}

/* --- Clients / Target --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.client-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    transition: all var(--transition);
}

.client-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.client-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.client-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.client-card p {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin: 0;
}

/* --- Insights List Page --- */
.insights-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

.filter-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.insights-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Insight list card */
.il-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.il-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Card non cliccabile */
.il-card--locked {
    cursor: default;
}
.il-card--locked:hover {
    border-color: var(--gray-300);
    transform: none;
    box-shadow: none;
}

/* Section header con link a destra */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}
.section-header-row .link-arrow {
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

/* KPI nella card caso studio */
.cs-card-kpis {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}
.cs-card-kpi {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.cs-card-kpi-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    white-space: nowrap;
}
.cs-card-kpi-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.3;
}

/* Card caso studio — kpi sempre in fondo */
.cs-card .il-card-body {
    flex: 1;
}
.cs-card .il-card-body p {
    flex: none;
}
.cs-card .cs-card-kpis {
    margin-top: auto;
}
.cs-detail-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: 4px;
}
.cs-detail-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.cs-detail-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.cs-detail-kpi-label {
    font-size: 0.82rem;
    color: var(--gray-600);
}

/* Sezioni testo dettaglio caso studio */
.cs-section {
    margin-bottom: 2rem;
}
.cs-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--navy);
}
.cs-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-top: 0.5rem;
    max-width: 680px;
}

.il-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.il-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.il-card-type {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.il-card-body h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.il-card-body p {
    font-size: 0.88rem;
    color: var(--gray-600);
    flex: 1;
    margin-bottom: 0.75rem;
}

.il-card-date {
    font-size: 0.78rem;
    color: var(--gray-500);
}

/* Featured On */
.featured-on-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.featured-on-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.2rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition);
    align-items: center;
}

.featured-on-item:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    text-decoration: none;
}

.featured-on-source {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    grid-column: 1;
    grid-row: 1;
}

.featured-on-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    grid-column: 1;
    grid-row: 2;
    line-height: 1.35;
}

.featured-on-item svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    grid-column: 2;
    grid-row: 1 / 3;
    flex-shrink: 0;
    transition: color var(--transition);
}

.featured-on-item:hover svg {
    color: var(--accent);
}

/* Tag pills */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
    background: var(--accent-light);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.tag-group {
    margin-bottom: 0.75rem;
}

/* --- Detail Pages --- */
.detail-header {
    padding: 10rem 0 3rem;
    background: var(--navy);
    color: #fff;
}

.detail-header .label-tag {
    color: var(--accent);
}

.detail-header h1 {
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.detail-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.detail-body {
    padding: 3rem 0 5rem;
}

.detail-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.detail-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.detail-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.detail-content ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.detail-sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-card {
    background: var(--gray-100);
    border-radius: 4px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h5 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.sidebar-card p {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Service detail KPIs */
.detail-kpis {
    display: grid;
    gap: 1rem;
}

.detail-kpi {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-300);
}

.detail-kpi:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-kpi-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.detail-kpi-label {
    font-size: 0.78rem;
    color: var(--gray-600);
}

/* Back link */
.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: #fff;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 0.5rem;
}

.contact-info > p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.office-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-300);
}

.office-item:last-child {
    border-bottom: none;
}

.office-item h5 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.office-item p {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin: 0;
}

.office-item a {
    color: var(--gray-600);
    font-size: 0.88rem;
}

.office-item a:hover {
    color: var(--accent);
}

/* --- Forms --- */
.form-control {
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    background: var(--white);
    color: var(--navy);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-500);
}

label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--navy);
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 2.5rem;
}

.contact-form h3 {
    margin-bottom: 0.5rem;
}

.contact-form > p {
    font-size: 0.92rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--navy);
    color: var(--gray-500);
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.footer-logo span {
    color: var(--gray-600);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

.footer-links h6 {
    color: var(--gray-400);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 3rem;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--gray-600);
}

/* --- Modals --- */
.modal-content {
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.modal-header {
    border-bottom: 1px solid var(--gray-300);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-300);
    padding: 1rem 1.5rem;
}

.modal .form-check-label {
    font-size: 0.82rem;
    color: var(--gray-700);
    font-weight: 400;
}

.modal .form-check-label a {
    color: var(--accent);
    text-decoration: underline;
}

/* --- Publication Detail --- */
.pub-detail-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.pub-detail-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-300);
}

.pub-detail-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.pub-detail-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pub-detail-content ul,
.pub-detail-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.pub-detail-content li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

/* --- Legal Pages --- */
.legal-content h4 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 0.93rem;
    color: var(--gray-700);
}

.legal-content ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    font-size: 0.93rem;
    color: var(--gray-700);
    margin-bottom: 0.3rem;
}

/* --- Utilities --- */
.mw-narrow { max-width: 680px; }
.mw-medium { max-width: 800px; }
.mw-wide { max-width: 960px; }

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    :root {
        --section-py: 5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-preview-image {
        order: -1;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .insights-grid,
    .insights-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .founders-grid {
        grid-template-columns: 1fr;
    }

    .method-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero-home h1 {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 3.5rem;
    }

    .navbar {
        padding: 1rem 1rem;
    }

    .navbar.scrolled {
        padding: 0.6rem 0;
    }

    .hero-home {
        padding: 7.5rem 0 4rem;
    }

    .hero-inner {
        padding: 8rem 0 3rem;
    }

    .detail-header {
        padding: 8rem 0 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid,
    .insights-list-grid {
        grid-template-columns: 1fr;
    }

    .featured-on-list {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .service-block-kpis {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-300);
    }

    .nav-link {
        margin-left: 0;
        padding: 0.6rem 0 !important;
    }

    .btn-nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        display: inline-block;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .about-preview-image img {
        height: 300px;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #1e3a5f;
    --primary-strong: #142b47;
    --accent-color: #3b82f6;
    --dark-color: #0f172a;
    --muted-color: #64748b;
    --border-color: #e2e8f0;
    --surface-color: #ffffff;
    --surface-alt: #f8fafc;
    --background-color: #f1f5f9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background: var(--background-color);
    opacity: 0;
    transition: opacity 0.18s ease;
}

body.ready {
    opacity: 1;
}

a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-strong);
}

img {
    max-width: 100%;
    display: block;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.navbar-brand {
    padding: 0;
}

.navbar-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
}

.navbar-logo span {
    color: var(--accent-color);
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.footer-logo-text span {
    color: var(--accent-color);
}

.nav-link {
    margin-left: 1rem;
    color: var(--muted-color) !important;
    font-size: 16px;
    font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
    color: var(--dark-color) !important;
}

.navbar-toggler {
    border-color: rgba(30, 58, 95, 0.18);
}

.navbar-toggler-icon {
    filter: invert(0.2) sepia(0.5) saturate(3) hue-rotate(190deg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.3)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.5));
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 580px;
    padding: 2rem 0;
}



.hero h1 {
    padding-top: 150px;
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    line-height: 0.98;
    margin-bottom: 1rem;
    max-width: 11ch;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 520px;
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
}

.hero-links {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .btn {
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 16px;
}

.hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.9);
    color: rgba(255, 255, 255, 0.95);
}

.hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Section headings */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.section-head h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.section-head p {
    color: var(--muted-color);
    font-size: 1rem;
    max-width: 620px;
}

.page-section {
    padding: 2.8rem 0;
}

.page-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.page-subtitle {
    font-size: 1rem;
    color: var(--muted-color);
    max-width: 740px;
}

/* Card base */
.card,
.card-service,
.publication-card,
.case-card,
.office-card,
.stats-card {
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    background: var(--surface-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card-service:hover,
.publication-card:hover,
.case-card:hover,
.office-card:hover,
.stats-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.card-body,
.card-content {
    padding: 1.4rem 1.5rem;
}

.card-title,
.card h4,
.card h5,
.section-card-title {
    color: var(--dark-color);
    font-weight: 700;
}

.card-body ul {
    padding-left: 1.2rem;
}

.card-text,
p,
li,
.label-text {
    color: #475569;
}

/* Buttons */
.btn {
    border-radius: 6px;
}

.btn-nav{
    padding: 12px 16px;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-strong);
    border-color: var(--primary-strong);
}

.btn-outline-primary {
    color: var(--primary-color);

    border: none;
    font-weight: 500;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Feature grid */
.feature-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
    min-height: 100%;
    border-top: 3px solid var(--accent-color);
    border-radius: 8px;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 16px 0px;
}

.service-card .card-title {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
}

.service-card .card-text {
    color: var(--muted-color);
    font-size: 0.92rem;
    line-height: 1.55;
    flex: 1;
}

.service-card .service-meta {
    color: var(--muted-color);
    font-size: 0.85rem;
}

.service-card .service-kpis {
    display: flex;
    gap: 1.5rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 0.2rem 0;
}

.service-card .kpi {
    display: flex;
    flex-direction: column;
}

.service-card .kpi-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.services-list {
    list-style: none;
    padding-left: 0;
}

.kpi-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.service-card .kpi-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.3rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.service-card .card-link:hover {
    color: var(--primary-strong);
    gap: 0.65rem;
}

.service-card .card-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Tags */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.06);
    color: var(--dark-color);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-group {
    margin: 0.8rem 0 0;
}

.case-card {
    padding: 1.3rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:has(.card-body) {
    padding: 0;
}

.case-card .card-body {
    padding: 1.3rem 1.5rem;
}

.case-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.case-card .tag-group {
    margin: 0 0 0.5rem;
}

.case-card h5 {
    margin-bottom: 0.4rem;
}

.case-card p {
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.case-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.6rem;
}

.case-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.case-card li::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

.stats-panel,
.office-list {
    display: grid;
    gap: 0.65rem;
}

.stats-card,
.office-card {
    overflow: hidden;
}

.stats-card .card-body,
.office-card .card-body {
    padding: 0.9rem 1.1rem;
}

.stats-card .value,
.stats-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.stats-card p,
.office-card p {
    margin: 0.25rem 0 0;
    color: var(--muted-color);
    font-size: 0.88rem;
}

.office-card h5 {
    margin-bottom: 0.75rem;
}

.office-card small {
    display: block;
    color: var(--muted-color);
    margin-top: 0.25rem;
}

.publication-card {
    display: flex;
    flex-direction: column;
    height: fit-content;
    overflow: hidden;
}

.publication-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.publication-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.publication-card .publication-meta {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.publication-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border: none;
}

.news-card strong {
    font-size: 1rem;
    color: var(--dark-color);
}

.news-card p {
    margin: 0.5rem 0 0;
    color: var(--muted-color);
}

.news-card .news-date {
    color: rgba(30, 58, 95, 0.8);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    background: var(--surface-color);
    color: #1e293b;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

label {
    font-weight: 600;
    color: #1e293b;
}

.contact-form {
    max-width: 720px;
}

.contact-info-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.contact-info-card h5 {
    margin-bottom: 1rem;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--muted-color);
}

.contact-info-card a {
    text-decoration: none;
    color: white;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Team */
/* CEO row — immagine sinistra, testo destra */
.team-ceo {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
    margin-left: 100px;
    margin-right: 100px;
}

.team-ceo .team-card-photo img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0 auto;
    width: 100%;
}

.team-card-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    background: var(--gray-100);
}

.team-card-body h4 {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}

.team-card-role {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.team-card-body p {
    font-size: 0.91rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: #94a3b8;
    padding: 3rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 280px;
    margin: 0;
}

.footer-links h6 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    padding: 1.2rem 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

footer p {
    margin: 0;
}

/* Utility */
.small-note {
    color: var(--muted-color);
    font-size: 0.95rem;
}

/* Founders section */
.founders-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.founders-image {
    border-radius: 0.35rem;
    overflow: hidden;
}

.founders-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.founders-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1rem;
}

.founders-names {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.founder-name-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.founder-initials {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.founder-name-tag strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.founder-name-tag span:not(.founder-initials) {
    font-size: 0.82rem;
    color: var(--muted-color);
}

.founders-highlights {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
}

.founders-highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.highlight-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .founders-block {
        grid-template-columns: 1fr;
    }

    .founders-image {
        position: static;
    }

    .founders-image img {
        height: 260px;
    }

    .founders-highlights {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Legal pages */
.legal-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #475569;
}

.legal-content ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 0.3rem;
}

.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 95, 0.12), transparent);
    margin: 3rem 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        min-height: 70vh;
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 8vw, 3.8rem);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 0;
        background-position: center top;
    }

    .hero .hero-content {
        padding: 0;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.55rem 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

/* Back button styling */
.back-btn {
    color: var(--primary-color) !important;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.back-btn:hover {
    color: var(--primary-strong) !important;
}

.back-btn i {
    font-size: 1.1rem;
}

.back-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-outline-primary svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: -1px;
    margin-left: 0.25rem;
}

/* Newsletter modal */
#newsletterModal .modal-content {
    border-radius: 0.35rem;
    border: 1px solid var(--border-color);
}

#newsletterModal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

#newsletterModal .modal-title {
    font-weight: 700;
    color: var(--dark-color);
}

#newsletterModal .form-check-label {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
}

#newsletterModal .form-check-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

#newsletterModal .modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Studio page – hero image */
.studio-hero-img {
    border-radius: 0.35rem;
    overflow: hidden;
    margin-bottom: 0;
}

.studio-hero-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* Stats ribbon */
.stats-ribbon {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.8rem 0 0;
}

.stats-ribbon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stats-ribbon-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stats-ribbon-label {
    font-size: 0.78rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.15rem;
}

/* Studio about grid */
.studio-about-grid {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.studio-about-main h2 {
    margin-bottom: 0.8rem;
}

.studio-about-main h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.studio-about-main p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.studio-side-img {
    border-radius: 0.35rem;
    overflow: hidden;
}

.studio-side-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-item {
    background: #fff;
    border-radius: 0.35rem;
    padding: 1.4rem;
    border: 1px solid var(--border-color);
}

.value-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.5;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
    text-align: left;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.team-member img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.12);
}

.team-member strong {
    font-size: 0.9rem;
    color: var(--dark-color);
}

.team-member span {
    font-size: 0.78rem;
    color: var(--muted-color);
}

/* Awards grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.award-item {
    background: var(--surface-alt);
    border-radius: 0.35rem;
    padding: 1.4rem;
    border: 1px solid var(--border-color);
}

.award-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.award-item span {
    font-size: 0.82rem;
    color: var(--muted-color);
}

/* Responsive – Studio page */
@media (max-width: 992px) {
    .studio-about-grid {
        grid-template-columns: 1fr;
    }
    .values-grid,
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .team-ceo {
        grid-template-columns: 1fr 1fr;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .stats-ribbon {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .stats-ribbon-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
    .values-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .team-card:first-child {
        grid-column: 1;
        grid-row: auto;
    }
    .team-ceo {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
    }
    .studio-hero-img img {
        height: 200px;
    }
}


