/* Project: Synapse Tech Italia */
/* Prefix: syn- */

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

:root {
    --syn-color-main: #4F46E5; /* Indigo */
    --syn-color-dark: #1E1B4B;
    --syn-color-text: #374151;
    --syn-color-bg: #F9FAFB;
    --syn-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --syn-radius: 12px;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--syn-color-text);
    background-color: var(--syn-color-bg);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--syn-color-dark);
    margin-top: 0;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* Layout */
.syn-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.syn-top-bar {
    background: #fff;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.syn-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.syn-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--syn-color-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.syn-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.syn-menu-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--syn-color-dark);
}

.syn-menu-link:hover {
    color: var(--syn-color-main);
}

/* Hero */
.syn-hero {
    padding: 80px 0;
    background: white;
    border-bottom: 1px solid #E5E7EB;
}

.syn-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.syn-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: -webkit-linear-gradient(45deg, #1E1B4B, #4F46E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.syn-cta-button {
    display: inline-block;
    background: var(--syn-color-main);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.syn-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(79, 70, 229, 0.3);
}

.syn-hero-image img {
    width: 100%;
    border-radius: var(--syn-radius);
    box-shadow: var(--syn-shadow);
}

/* Blog Grid */
.syn-section { padding: 80px 0; }

.syn-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.syn-article-card {
    background: white;
    border-radius: var(--syn-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #F3F4F6;
}

.syn-article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--syn-shadow);
}

.syn-card-thumb {
    height: 220px;
    background-color: #e0e7ff;
}

.syn-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.syn-card-body {
    padding: 24px;
}

.syn-badge {
    background: #EEF2FF;
    color: var(--syn-color-main);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.syn-card-title {
    font-size: 1.25rem;
    margin: 12px 0;
    line-height: 1.4;
}

/* Article Page */
.syn-post-layout {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px;
}

.syn-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.syn-post-date {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 30px;
    display: block;
}

.syn-post-content p {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.syn-post-content h2 {
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--syn-color-main);
}

/* Footer */
.syn-footer {
    background: var(--syn-color-dark);
    color: #9CA3AF;
    padding: 60px 0;
    margin-top: auto;
}

.syn-footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.syn-footer h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.syn-footer a:hover {
    color: white;
    text-decoration: underline;
}

.syn-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.syn-feature-item {
    text-align: left;
    padding: 20px;
    border-radius: var(--syn-radius);
    transition: 0.3s;
}

.syn-feature-item:hover {
    background: #fff;
    box-shadow: var(--syn-shadow);
}

.syn-icon-box {
    width: 60px;
    height: 60px;
    background: #EEF2FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--syn-color-main);
}

.syn-icon-box svg {
    width: 32px;
    height: 32px;
}

/* Stats Section */
.syn-stats-section {
    background: var(--syn-color-dark);
    color: white;
    padding: 80px 0;
}

.syn-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.syn-stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #818CF8; /* Light Indigo */
    line-height: 1;
    margin-bottom: 10px;
}

.syn-stat-label {
    font-size: 1rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Home Contact Form Section */
.syn-home-form-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.syn-form-wrapper {
    background: var(--syn-color-bg);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--syn-shadow);
}

.syn-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.syn-input-group {
    margin-bottom: 20px;
}

.syn-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.syn-input, .syn-textarea, .syn-select {
    width: 100%;
    padding: 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    background: white;
    transition: 0.2s;
}

.syn-input:focus, .syn-textarea:focus {
    border-color: var(--syn-color-main);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.syn-full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .syn-stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .syn-form-grid { grid-template-columns: 1fr; }
    .syn-full-width { grid-column: span 1; }
    .syn-form-wrapper { padding: 24px; }
}

/* Cookie Modal */
#syn-consent-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    background: white;
    padding: 24px;
    border-radius: var(--syn-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border: 1px solid #E5E7EB;
    display: none;
}

@media (max-width: 768px) {
    .syn-hero-split { grid-template-columns: 1fr; text-align: center; }
    .syn-menu { display: none; } /* Simple hide for mobile compliance check */
    .syn-footer-cols { grid-template-columns: 1fr; text-align: center; }
    #syn-consent-popup { left: 20px; right: 20px; width: auto; }
}