/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

/* CSS Custom Properties */
:root {
    /* Colors inspired by Italian craftsmanship */
    --primary-color: #8B5E3C; /* Terracotta/Clay */
    --secondary-color: #D4A574; /* Warm Gold */
    --accent-color: #C4915C; /* Craft Brown */
    --text-color: #2c2c2c;
    --text-light: #666;
    --background-light: #FAF7F4; /* Warm white */
    --border-color: #E5D5C8;
    --success-color: #7B8F4E; /* Olive green */
    --error-color: #C85A54;
    
    /* Typography */
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: 'Arial', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(139, 94, 60, 0.1);
    --shadow-md: 0 4px 8px rgba(139, 94, 60, 0.15);
    --shadow-lg: 0 8px 16px rgba(139, 94, 60, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.lead {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

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

.btn-primary:hover {
    background-color: #6d4a30;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #b8935f;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-color);
    color: white;
    padding: var(--spacing-sm);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--spacing-sm);
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-light) 0%, #F0E6D6 100%);
    padding: var(--spacing-xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    text-align: center;
}

.hero-svg {
    max-width: 100%;
    height: auto;
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background-color: var(--background-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.header-svg {
    width: 100px;
    height: 100px;
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

/* Content Sections */
.about-content,
.services-grid,
.testimonials-section,
.blog-section,
.contact-section {
    padding: var(--spacing-xl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.content-svg {
    max-width: 100%;
    height: auto;
}

/* Team Section */
.team {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

.team h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.team-member {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    font-style: italic;
}

/* Values Section */
.values {
    padding: var(--spacing-xl) 0;
}

.values h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.value-card {
    background-color: var(--background-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.value-card h3 {
    color: var(--primary-color);
}

/* Services */
.services-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-md);
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-features {
    list-style: none;
    margin: var(--spacing-sm) 0;
}

.service-features li {
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-info {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Learning Modules */
.learning-modules {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

.learning-modules h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.module-card {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.module-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.module-card ul {
    margin-top: var(--spacing-sm);
}

.module-card li {
    padding: 4px 0;
}

/* Course Features */
.course-features {
    padding: var(--spacing-xl) 0;
}

.course-features h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
}

.testimonial-header {
    margin-bottom: var(--spacing-sm);
}

.testimonial-info h3 {
    color: var(--primary-color);
    margin-bottom: 4px;
}

.testimonial-course {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-xs);
}

.testimonial-rating .star {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-color);
    color: white;
}

.stats h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    padding: var(--spacing-md);
    background-color: var(--background-light);
    text-align: center;
}

.blog-svg {
    width: 100px;
    height: 100px;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.blog-date {
    color: var(--text-light);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-content h2 {
    margin-bottom: var(--spacing-sm);
}

.blog-content h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 8px;
}

/* Article Pages */
.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
}

.breadcrumb {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.article-header h1 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    opacity: 0.8;
}

.article-content {
    padding: var(--spacing-xl) 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.article-body h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.article-nav {
    max-width: 800px;
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-share {
    text-align: right;
}

.article-share p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

/* Related Articles */
.related-articles {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.related-card {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.related-card h3 {
    margin-bottom: var(--spacing-sm);
}

.related-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.related-card h3 a:hover {
    text-decoration: underline;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-form-container {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xs);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-info {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}

.contact-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.faq-item {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Map Section */
.map-section {
    padding: var(--spacing-xl) 0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.map-container {
    background-color: var(--background-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    border: 2px dashed var(--border-color);
}

.map-placeholder p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

/* Newsletter */
.newsletter {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form .btn {
    flex-shrink: 0;
}

/* CTA Section */
.cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

/* Thanks Page */
.thanks-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
}

.thanks-icon {
    margin-bottom: var(--spacing-md);
}

.thanks-section h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.thanks-section h2 {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.thanks-message {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.thanks-info {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.thanks-info h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-step {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.thanks-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.additional-info {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.info-card {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    margin-bottom: var(--spacing-xs);
}

/* Legal Pages */
.legal-content {
    padding: var(--spacing-xl) 0;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-text h2 {
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.legal-text h3 {
    color: var(--accent-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.legal-text ul, .legal-text ol {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
}

.legal-text li {
    margin-bottom: var(--spacing-xs);
}

/* Cookie Policy Tables */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

/* Cookie Preferences */
.cookie-preferences {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin: var(--spacing-md) 0;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cookie-category h5 {
    color: var(--primary-color);
    margin-bottom: 4px;
}

.cookie-category p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

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

input:disabled + .slider {
    background-color: var(--primary-color);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content,
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .features-grid,
    .team-grid,
    .values-grid,
    .modules-grid,
    .features-list,
    .testimonials-grid,
    .blog-grid,
    .stats-grid,
    .faq-grid,
    .info-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .hero-buttons,
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }

    .info-steps {
        gap: var(--spacing-sm);
    }

    .article-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .article-share {
        text-align: center;
    }

    .service-info {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }

    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-form-container,
    .contact-info {
        padding: var(--spacing-md);
    }

    .thanks-section h1 {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Print Styles */
@media print {
    .cookie-banner,
    .navbar,
    .footer,
    .btn,
    .newsletter {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    .legal-text {
        max-width: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #333;
        --text-color: #000;
        --text-light: #333;
        --border-color: #000;
    }
}
