:root {
    --primary-color: #ff003c;
    --primary-glow: 0 0 10px #ff003c, 0 0 20px #ff003c, 0 0 30px #ff003c;
    --secondary-color: #00f0ff;
    --secondary-glow: 0 0 5px #00f0ff, 0 0 10px #00f0ff;
    --background-color: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.8);
    --text-color: #ffffff;
    --border-radius: 8px;
}

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

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

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,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');
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.neon-text {
    color: var(--primary-color);
    text-shadow: var(--primary-glow);
}

.staff-text {
    color: var(--text-color);
    font-weight: 300;
}

.neon-link {
    position: relative;
    color: var(--text-color);
}

.neon-link:hover {
    color: var(--primary-color);
    text-shadow: var(--primary-glow);
}

.neon-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    box-shadow: var(--primary-glow);
    transition: width 0.3s ease;
}

.neon-link:hover::after {
    width: 100%;
}

.neon-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 60, 0.3);
    transition: all 0.3s ease;
}

.neon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
    border: 1px solid var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.btn-primary:hover {
    background-color: transparent;
    box-shadow: 0 0 15px var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 60, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1000;
    width: 30px;
    height: 25px;
    position: relative;
}

.hamburger {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-10px);
}

.hamburger::after {
    transform: translateY(10px);
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Main Content Styles */
main {
    padding-top: 80px;
}

section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--primary-glow);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 0, 60, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-color);
}

.subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 0, 60, 0.7));
}

/* Experiences Section */
.experiences {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    box-shadow: var(--primary-glow);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 20px;
    box-shadow: var(--primary-glow);
    z-index: 1;
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    position: relative;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--primary-color);
}

.timeline-date {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.timeline-server {
    font-weight: 600;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    text-align: center;
    padding: 30px 20px;
}

.skill-card i {
    margin-bottom: 1rem;
    color: var(--primary-color);
    /* Riduci l'intensità dell'effetto glow */
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5), 0 0 20px rgba(155, 89, 182, 0.3);
    transition: all 0.3s ease;
}

.skill-card:hover i {
    /* Aumenta leggermente l'effetto solo al passaggio del mouse */
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(155, 89, 182, 0.7), 0 0 25px rgba(155, 89, 182, 0.4);
}

.skill-card h3 {
    margin-top: 15px;
    font-size: 20px;
    color: var(--text-color);
}

/* Stili per la sezione FAQ nella home */
.faq-preview {
    max-width: 800px;
    margin: 0 auto 30px;
}

.faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Stili per la sezione FAQ nella home con layout a griglia */
.faq-grid {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive per dispositivi mobili */
@media (max-width: 768px) {
    .faq-grid {
        flex-direction: column;
    }
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.faq-question i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: all 0.5s ease;
}

.faq-answer p {
    margin-top: 0;
    padding-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* Stili per la sezione Contatti */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

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

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 0, 60, 0.1);
    border: 1px solid rgba(255, 0, 60, 0.3);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.social-link i {
    font-size: 18px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Stili per la sezione CTA */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
    background-color: rgba(20, 20, 20, 0.8);
    border-top: 1px solid rgba(255, 0, 60, 0.3);
    border-bottom: 1px solid rgba(255, 0, 60, 0.3);
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stili per la pagina delle esperienze dettagliate */
.page-header {
    text-align: center;
    padding: 120px 20px 60px;
}

.page-header h1 {
    margin-bottom: 20px;
    font-size: 3rem;
}

.experiences-detailed {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.experience-card {
    margin-bottom: 40px;
}

.experience-header {
    margin-bottom: 20px;
}

.experience-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.experience-meta i {
    margin-right: 5px;
}

.experience-content h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

.experience-content ul {
    padding-left: 20px;
}

.experience-content ul li {
    margin-bottom: 8px;
}

/* Stili per il footer */
footer {
    background-color: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(255, 0, 60, 0.3);
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
}

.footer-logo .site-logo {
    max-height: 40px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Stili responsive per dispositivi mobili */
@media (max-width: 768px) {
    /* Header e navigazione */
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 0, 60, 0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero section */
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Timeline */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 25px;
    }
    
    /* Competenze */
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    /* Progetti */
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    /* FAQ */
    .faq-grid {
        flex-direction: column;
    }
    
    /* Statistiche */
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    /* Contatti */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Stili per la pagina di ringraziamento */
.thank-you-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
}

.thank-you-content {
    max-width: 800px;
    padding: 3rem;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
    animation: glow 2s infinite alternate;
}

.thank-you-icon {
    margin: 2rem 0;
    color: #9b59b6;
    animation: pulse 2s infinite;
}

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

/* Stili per i messaggi del form */
.form-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    padding: 10px;
    border-radius: 5px;
    animation: glow 1.5s infinite alternate;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px;
    border-radius: 5px;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(46, 204, 113, 0.8);
    }
}

/* Stili per dispositivi molto piccoli */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* Tema chiaro */
body.light-theme {
    background-color: #f5f5f5;
    color: #333;
}

body.light-theme .noise-overlay {
    opacity: 0.03;
}

body.light-theme .neon-card {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .neon-text {
    color: var(--primary-color);
    text-shadow: none;
}

body.light-theme .section-header h2 {
    color: #333;
}

body.light-theme .section-header p {
    color: #666;
}

body.light-theme nav {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-links a {
    color: #333;
}

body.light-theme .nav-links a:hover {
    color: var(--primary-color);
}

body.light-theme .theme-toggle {
    color: #333;
    cursor: pointer;
    margin-left: 20px;
    font-size: 20px;
}

body.light-theme footer {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .footer-section h4 {
    color: var(--primary-color);
    text-shadow: none;
}

body.light-theme .footer-nav a {
    color: #555;
}

body.light-theme .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
}

.contact-info ul li i {
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 0, 60, 0.1);
    border: 1px solid rgba(255, 0, 60, 0.3);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.social-link i {
    font-size: 18px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Stili per la sezione CTA */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
    background-color: rgba(20, 20, 20, 0.8);
    border-top: 1px solid rgba(255, 0, 60, 0.3);
    border-bottom: 1px solid rgba(255, 0, 60, 0.3);
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stili per la pagina delle esperienze dettagliate */
.page-header {
    text-align: center;
    padding: 120px 20px 60px;
}

.page-header h1 {
    margin-bottom: 20px;
    font-size: 3rem;
}

.experiences-detailed {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.experience-card {
    margin-bottom: 40px;
}

.experience-header {
    margin-bottom: 20px;
}

.experience-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.experience-meta i {
    margin-right: 5px;
}

.experience-content h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

.experience-content ul {
    padding-left: 20px;
}

.experience-content ul li {
    margin-bottom: 8px;
}

/* Stili per il footer */
footer {
    background-color: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(255, 0, 60, 0.3);
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
}

.footer-logo .site-logo {
    max-height: 40px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Stili responsive per dispositivi mobili */
@media (max-width: 768px) {
    /* Header e navigazione */
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 0, 60, 0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero section */
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Timeline */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 25px;
    }
    
    /* Competenze */
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    /* Progetti */
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    /* FAQ */
    .faq-grid {
        flex-direction: column;
    }
    
    /* Statistiche */
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    /* Contatti */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Stili per la pagina di ringraziamento */
.thank-you-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
}

.thank-you-content {
    max-width: 800px;
    padding: 3rem;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
    animation: glow 2s infinite alternate;
}

.thank-you-icon {
    margin: 2rem 0;
    color: #9b59b6;
    animation: pulse 2s infinite;
}

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

/* Stili per i messaggi del form */
.form-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    padding: 10px;
    border-radius: 5px;
    animation: glow 1.5s infinite alternate;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px;
    border-radius: 5px;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(46, 204, 113, 0.8);
    }
}

/* Stili per dispositivi molto piccoli */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}