
/* Base Styles */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --accent: #3b82f6;
    --bg: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent);
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

/* Mobile Menu Control (No JS Hack) */
.menu-checkbox {
    display: none;
}

.menu-label {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid #e2e8f0;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

/* Content Sections */
.content-grid {
    padding: 80px 20px;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px;
}

.content-section.reverse {
    direction: rtl;
}

.content-section.reverse .text-content {
    direction: ltr;
}

.content-section.full-width {
    grid-template-columns: 1fr;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.image-content img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Lists */
.styled-list, .styled-steps {
    list-style: none;
    margin-top: 20px;
}

.styled-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.styled-steps li {
    background: var(--white);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-left: 4px solid var(--accent);
}

/* Symptoms Grid */
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.symptom-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.symptom-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-label {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    /* Il core del checkbox hack */
    .menu-checkbox:checked ~ .main-nav {
        max-height: 400px;
        border-top: 1px solid #f1f5f9;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-section.reverse {
        direction: ltr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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