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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #cc2c2a 0%, #ab2524 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1920&h=1080&fit=crop&q=80')
        center/cover;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    background: #f2eded;
    padding: 80px 0;
}

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

/* Section Styling */
.section {
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: none;
}

.section-title {
    color: #ab2524;
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #cc2c2a, #ab2524);
    border-radius: 2px;
}

/* Chi Siamo Section */
.chi-siamo-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.chi-siamo-text {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.chi-siamo-text p {
    margin-bottom: 20px;
}

.chi-siamo-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

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

.chi-siamo-list li::before {
    content: '•';
    color: #cc2c2a;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.chi-siamo-list strong {
    color: #ab2524;
    font-weight: 600;
}

/* Come Partecipare Section */
.partecipare {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    text-align: center;
}

.partecipare h3 {
    color: #ab2524;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.partecipare p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
}

.email-link {
    color: #cc2c2a;
    font-weight: 600;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #cc2c2a, #ab2524);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    color: #ab2524;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-card p {
    color: #666;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-date {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
    margin-top: 20px;
}

/* Contest Section */
.contest-section {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contest-section::before {
    content: '🎨';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: 20px;
    right: 30px;
}

.contest-section h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contest-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contest-cta {
    display: inline-block;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contest-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #cc2c2a, #ab2524);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 30px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #cc2c2a;
    border: 3px solid #f2eded;
}

.timeline-item:hover {
    transform: translateY(-5px) scale(1.02);
}

.timeline-year {
    color: #cc2c2a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.timeline-content h4 {
    color: #ab2524;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Contacts */
.contacts {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contacts h3 {
    color: #ab2524;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-item {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item strong {
    color: #ab2524;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #cc2c2a 0%, #ab2524 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Special styling for emojis and emphasis */
.emoji {
    font-size: 1.2em;
}

.highlight {
    background: linear-gradient(135deg, #cc2c2a, #ab2524);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .partecipare,
    .contest-section,
    .contacts {
        padding: 30px 20px;
        margin: 20px;
    }

    .project-card {
        padding: 25px;
    }

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

    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item::before {
        left: -32px;
    }
}

/* --- Idea Hero (seconda hero) --- */
.idea-hero {
    background: linear-gradient(135deg, #cc2c2a 0%, #ab2524 100%);
    color: white;
    padding: 70px 20px;
    border-radius: 24px;
    margin: 60px auto 80px;
    max-width: 1200px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.idea-hero__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.idea-hero h2,
.idea-hero__subtitle,
.idea-form__feedback {
    color: white;
}

.idea-hero h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.idea-hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 28px;
}

/* --- Form --- */
.idea-form {
    display: grid;
    gap: 16px;
    text-align: left;
}

.idea-form textarea {
    width: 100%;
    font: inherit;
    padding: 14px 16px;
    background: #fff;
    color: #333;
    border: 1.5px solid #e5e5e5;
    border-radius: 14px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
    resize: vertical;
    min-height: 140px;
}

.idea-form textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.idea-form__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.idea-form__submit {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    background: transparent;
    border-radius: 50px;
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.idea-form__submit:hover {
    background: #fff;
    color: #cc2c2a;
}

.idea-form__feedback {
    margin-top: 6px;
    font-size: 0.98rem;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    .idea-hero {
        margin: 40px 20px 60px;
        padding: 40px 20px;
    }
}
