:root {
    --primary: #001731;
    --secondary: #ff1493;
    --accent: #00ffff;
    --dark: #2d2d3a;
    --light: #f8f9fa;
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--light);
    text-align: center;
    font-weight: 900;
    font-family: "Carattere";
  }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}
.candidate-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.manifesto-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-top: 5px solid var(--primary);
    transition: transform 0.3s ease;
}

.manifesto-card:hover {
    transform: translateY(-5px);
}

.manifesto-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.manifesto-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.candidate-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-text h2 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.profile-text p {
    color: var(--dark);
    opacity: 0.8;
}

.tagline {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 1rem 0 2rem;
    font-size: 1.1rem;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 2rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .candidate-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}