:root {
    /* Primary Colors */
    --deep-italian-blue: #003366;
    --warm-gold: #FFD700;
    --pure-white: #FFFFFF;
    
    /* Secondary Colors */
    --sage-green: #87A96B;
    --warm-gray: #F8F9FA;
    --charcoal: #2C3E50;
    --alert-red: #E74C3C;
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #003366 0%, #004080 100%);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Enhanced Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;
    
    /* Section spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --section-gap: clamp(3rem, 6vw, 6rem);
    
    /* Shadows */
    --shadow-card: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-button: 0 2px 4px rgba(0,0,0,0.1);
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--pure-white);
    line-height: 1.6;
    font-size: 16px;
}

/* Enhanced Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--deep-italian-blue);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
}
h5 { 
    font-size: 1.25rem; 
    font-weight: 600;
    line-height: 1.4;
}
h6 { 
    font-size: 1.125rem; 
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    max-width: 70ch;
    color: #374151;
    font-size: 1.05rem;
}

/* Enhanced readability */
.text-lg {
    font-size: 1.175rem;
    line-height: 1.7;
    font-weight: 400;
}

.text-xl {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Better contrast for readability */
.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Text utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; font-weight: 500; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-playfair { font-family: var(--font-heading); }
.font-inter { font-family: var(--font-body); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-blue { color: var(--deep-italian-blue); }
.text-gold { color: var(--warm-gold); }
.text-gray { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-white { color: var(--pure-white); }

/* Layout */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.prose {
    max-width: 70ch;
    margin: 0 auto;
}

.max-w-prose { max-width: 65ch; }

/* Spacing utilities */
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.m-0 { margin: 0; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

/* Display utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }

/* Gap utilities */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid system */
.grid {
    display: grid;
    gap: 2rem;
}

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

/* Responsive grid classes */
.md\\:grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
.md\\:grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
.md\\:grid-cols-4 { grid-template-columns: repeat(1, 1fr); }
.lg\\:grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
.lg\\:grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
.lg\\:grid-cols-4 { grid-template-columns: repeat(1, 1fr); }

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

/* Background utilities */
.bg-white { background-color: var(--pure-white); }
.bg-gray { background-color: var(--warm-gray); }
.bg-blue { background-color: var(--deep-italian-blue); }
.bg-gold { background-color: var(--warm-gold); }

/* List utilities */
.list-none { list-style: none; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Standard list styles */
ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: decimal;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Chapter highlight lists - styled without bullets */
.chapter-highlights ul,
.card-body ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.chapter-highlights li,
.card-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chapter-highlights li::before,
.card-body ul li::before {
    content: '✓';
    color: var(--deep-italian-blue);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Footer navigation lists */
.footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

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

.footer li:last-child {
    margin-bottom: 0;
}

/* Navigation menu lists */
.nav-menu,
.dropdown-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li:focus-within > .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--charcoal);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: var(--warm-gray);
    color: var(--deep-italian-blue);
    outline: 2px solid var(--deep-italian-blue);
    outline-offset: -2px;
}

/* Content area lists with proper styling */
.prose ul,
.content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose ol,
.content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li,
.content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.prose ul ul,
.content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose ul ul ul,
.content ul ul ul {
    list-style-type: square;
}

/* Button system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-button);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    hyphens: auto;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--charcoal);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--deep-italian-blue);
    color: var(--pure-white);
    border: 2px solid var(--deep-italian-blue);
}

.btn-secondary:hover {
    background-color: #004080;
    border-color: #004080;
    transform: scale(1.02);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--deep-italian-blue);
    border: 2px solid var(--deep-italian-blue);
}

.btn-outline:hover {
    background-color: var(--deep-italian-blue);
    color: var(--pure-white);
    text-decoration: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}


.btn:focus {
    outline: 2px solid var(--deep-italian-blue);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-desc {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: var(--pure-white);
    z-index: 1000;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,51,102,0.15);
    background-color: rgba(255, 255, 255, 0.95);
}

.header.scrolled .nav-logo {
    color: var(--deep-italian-blue);
    transform: scale(0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-italian-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--warm-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    position: relative;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.nav-menu a:hover, 
.nav-menu a.active {
    color: var(--deep-italian-blue);
    background-color: rgba(0, 51, 102, 0.05);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--warm-gold);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(0, 51, 102, 0.1);
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--deep-italian-blue);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero section */
.hero {
    background: var(--hero-gradient);
    color: var(--pure-white);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 51, 102, 0.8), rgba(0, 64, 128, 0.6));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--pure-white);
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Card components */
.card {
    background-color: var(--pure-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: var(--space-lg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: rgba(0, 51, 102, 0.1);
}

.card-header {
    margin-bottom: var(--space-md);
}

.card-body {
    margin-bottom: var(--space-md);
}

.card-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--deep-italian-blue), #004080);
    color: var(--pure-white);
    border-radius: 12px;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-italian-blue);
    margin-bottom: var(--space-sm);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--sage-green);
    font-weight: 500;
    margin-bottom: var(--space-md);
}


/* Modern Chapter Cards */
.chapter-card-modern {
    background: white;
    border-radius: 28px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 420px;
}

.chapter-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--deep-italian-blue), var(--warm-gold));
}

.chapter-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.chapter-number-modern {
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 51, 102, 0.08);
    font-family: var(--font-heading);
    line-height: 1;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.02) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-right: 1px solid rgba(226, 232, 240, 0.5);
}

.chapter-content-modern {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chapter-meta-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chapter-badge-modern {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chapter-badge-modern.strategia {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    border: 1px solid #3b82f6;
}

.reading-time-modern {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reading-time-modern::before {
    content: '⏱️';
    font-size: 0.9rem;
}

.chapter-title-modern {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--deep-italian-blue);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.chapter-subtitle-modern {
    font-size: 1rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.chapter-description-modern {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 2rem;
}

.chapter-highlights-modern {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item-modern {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 51, 102, 0.03);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s ease;
}

.highlight-item-modern:hover {
    background: rgba(0, 51, 102, 0.06);
    transform: translateX(4px);
}


.chapter-stats-modern {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.05), rgba(255, 215, 0, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(0, 51, 102, 0.1);
}

.stat-item-modern {
    text-align: center;
    flex: 1;
}

.stat-number-modern {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--deep-italian-blue);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label-modern {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.chapter-cta-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--deep-italian-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chapter-cta-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s;
}

.chapter-cta-modern:hover::before {
    left: 100%;
}

.chapter-cta-modern:hover {
    background: var(--warm-gold);
    color: var(--deep-italian-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}


.footer {
    background-color: var(--deep-italian-blue);
    color: var(--pure-white);
    padding: 4rem 0 2rem;
}

.footer h4 {
    color: var(--warm-gold);
}

.footer p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer a {
    color: var(--pure-white);
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--warm-gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--pure-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 8px;
    min-width: 200px;
    z-index: 1000;
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-in-out;
}

.prose {
    max-width: 70ch;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form components */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background-color: var(--pure-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--deep-italian-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control.error {
    border-color: var(--alert-red);
    background-color: #fef2f2;
}

.form-control.error:focus {
    border-color: var(--alert-red);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}


.error-message {
    color: var(--alert-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--deep-italian-blue);
    color: var(--pure-white);
    z-index: 10000;
    text-decoration: none;
    border-radius: 4px;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

/* Enhanced dropdown menus with accessibility */
.nav-menu li:hover .dropdown-menu,
.nav-menu li:focus-within .dropdown-menu {
    display: block;
}

/* Professional Animations & Micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -10px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Advanced scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-left {
    transform: translateX(-30px);
}

.animate-on-scroll.slide-left.in-view {
    transform: translateX(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(30px);
}

.animate-on-scroll.slide-right.in-view {
    transform: translateX(0);
}

.animate-on-scroll.fade-scale {
    transform: scale(0.9);
}

.animate-on-scroll.fade-scale.in-view {
    transform: scale(1);
}

/* Staggered animations */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-animation.in-view > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.in-view > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.in-view > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.in-view > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation.in-view > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-animation.in-view > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Button hover effects */
.btn-magnetic {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--warm-gold), #ff8c00, var(--warm-gold));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-magnetic:hover::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

/* Loading animations */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 51, 102, 0.1);
    border-top: 3px solid var(--deep-italian-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Parallax elements */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced focus states */
.focus-visible {
    outline: 2px solid var(--warm-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Chapter navigation */
.chapter-nav,
.chapter-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-2xl) 0;
    margin: var(--space-2xl) 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.chapter-nav .nav-link,
.nav-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-md) var(--space-lg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--deep-italian-blue);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    background: var(--pure-white);
    box-shadow: var(--shadow-card);
    min-height: 80px;
    flex: 1;
    max-width: 280px;
}

.nav-card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
}

.nav-card.next {
    text-align: right;
    align-items: flex-end;
}

.nav-card:hover,
.chapter-nav .nav-link:hover {
    background-color: var(--warm-gray);
    border-color: var(--deep-italian-blue);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.nav-direction {
    font-size: 0.875rem;
    color: var(--sage-green);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.nav-icon {
    font-size: 1.25rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.nav-card:hover .nav-icon {
    transform: translateX(2px);
}

.nav-card.prev:hover .nav-icon {
    transform: translateX(-2px);
}

.chapter-nav-spacer {
    flex: 1;
}

/* Chapter-specific components */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 51, 102, 0.1);
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background: var(--gold-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--sage-green);
    margin-top: var(--space-md);
}

/* Table of contents */
.toc-container {
    background: var(--warm-gray);
    border-radius: 12px;
    padding: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.toc-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--deep-italian-blue);
}

.toc ol {
    list-style: decimal;
    padding-left: var(--space-lg);
}

.toc li {
    margin-bottom: var(--space-sm);
}

.toc a {
    color: var(--deep-italian-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: var(--warm-gold);
    text-decoration: underline;
}

/* Chapter actions */
.chapter-actions {
    background: var(--warm-gray);
    border-radius: 16px;
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

.action-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.chapter-indicators {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.current-chapter {
    font-size: 0.875rem;
    color: var(--sage-green);
    font-weight: 500;
}

/* ROI CTA Section Mobile Fixes */
.roi-cta-section {
    padding: 3rem 0;
}

.roi-cta-title {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.roi-cta-description {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.6;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.roi-cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Progress Steps Mobile Fixes */
.mobile-friendly-progress {
    margin: 2rem 0 3rem 0;
    padding: 0 1rem;
}

.mobile-progress-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 1.5rem;
}

.mobile-progress-steps .progress-step {
    background: white;
    color: var(--deep-italian-blue);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--deep-italian-blue);
    text-align: center;
    white-space: normal;
    line-height: 1.2;
}

/* Media Queries - Mobile First */
@media (max-width: 640px) {
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        white-space: normal;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .btn-lg {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 52px;
    }
}

@media (max-width: 768px) {
    /* Enhanced mobile responsiveness */
    :root {
        --section-padding: clamp(3rem, 8vw, 5rem);
        --section-gap: clamp(2rem, 6vw, 4rem);
    }
    
    /* Responsive grid system */
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .md\\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Hero mobile enhancements */
    .hero {
        min-height: 90vh;
        padding: 3rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Modern chapter cards mobile */
    .chapter-card-modern {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .chapter-number-modern {
        writing-mode: initial;
        text-orientation: initial;
        text-align: center;
        font-size: 4rem;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }
    
    .chapter-content-modern {
        padding: 2rem;
    }
    
    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card.featured {
        transform: none;
    }
    
    .testimonial-header {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    
    .testimonial-rating {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    .testimonial-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .testimonial-metrics .metric {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    .metric-value {
        font-size: 1.1rem;
    }
    
    /* Success metrics mobile */
    .success-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    /* Social proof mobile */
    .proof-badges {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .proof-badge {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    /* Mobile navigation */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--pure-white);
        box-shadow: var(--shadow-card);
        border-radius: 0 0 12px 12px;
        padding: var(--space-md);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: var(--space-md);
        border-radius: 8px;
        margin-bottom: var(--space-xs);
    }

    .nav-toggle {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: var(--warm-gray);
        margin-top: var(--space-xs);
        border-radius: 8px;
    }
    
    /* Chapter navigation mobile */
    .chapter-nav,
    .chapter-nav-bottom {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-xl) 0;
    }
    
    .chapter-nav .nav-link,
    .nav-card {
        width: 100%;
        max-width: none;
        text-align: center;
        justify-content: center;
        align-items: center;
        min-height: 70px;
    }
    
    .nav-card.next {
        text-align: center;
        align-items: center;
    }
    
    /* Form mobile */
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* ROI CTA Mobile Optimizations */
    .roi-cta-buttons {
        flex-direction: column !important;
        gap: 1rem;
        align-items: center;
        padding: 0 1rem;
    }
    
    .roi-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .roi-cta-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Progress Steps Mobile Optimizations */
    .mobile-progress-steps {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    
    .mobile-progress-steps .progress-step {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }
    
    /* Additional mobile-friendly layout adjustments */
    .intro-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
        max-width: 280px;
        white-space: normal;
        min-height: 48px;
        line-height: 1.3;
        padding: 12px 16px;
    }
    
    /* Fix button overflow for Italian text */
    .btn, .cta-primary, .cta-secondary, 
    .hero-cta-primary, .hero-cta-secondary {
        white-space: normal !important;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }
}

@media (min-width: 1024px) {
    /* Larger screens - restore responsive grid */
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================
   COOKIE CONSENT BANNER STYLES
   ========================================== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--deep-italian-blue) 0%, #1e3a8a 100%);
    color: var(--pure-white);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999;
    border-top: 3px solid var(--warm-gold);
    display: none;
}

.cookie-banner.show {
    display: block !important;
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--warm-gold);
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
    opacity: 0.95;
}

.cookie-link {
    color: var(--warm-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.cookie-link:hover {
    border-bottom-color: var(--warm-gold);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-accept {
    background: var(--warm-gold);
    color: var(--deep-italian-blue);
}

.btn-accept:hover {
    background: #E6C200;
    transform: translateY(-1px);
}

.btn-necessary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-necessary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-settings {
    background: transparent;
    color: var(--warm-gold);
    border: 2px solid var(--warm-gold);
}

.btn-settings:hover {
    background: var(--warm-gold);
    color: var(--deep-italian-blue);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--pure-white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: translateY(0);
}

.cookie-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--deep-italian-blue);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f3f4f6;
    color: var(--deep-italian-blue);
}

.cookie-modal-body {
    padding: 1rem 2rem;
}

.cookie-category {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cookie-category-header h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--deep-italian-blue);
}

.cookie-category-description {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--pure-white);
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: var(--warm-gold);
}

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-slider:before {
    background-color: #e5e7eb;
}

.cookie-modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* Cookie Banner Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .cookie-modal-body {
        padding: 1rem 1.5rem;
    }
    
    .cookie-modal-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
}

/* Accessibility */
.cookie-banner:focus-within,
.cookie-modal:focus-within {
    outline: 2px solid var(--warm-gold);
    outline-offset: 2px;
}

.btn-cookie:focus,
.cookie-modal-close:focus {
    outline: 2px solid var(--warm-gold);
    outline-offset: 2px;
}

/* Animation for banner entrance */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.animate-in {
    animation: slideInFromBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}