/* Stili generali migliorati */
:root {
    --primary-color: #EAFF00;
    --secondary-color: #4CAF50;
    --dark-bg: rgba(0, 0, 0, 0.8);
    --card-bg: rgba(255, 255, 255, 0.05);
    --gradient-start: #1a1a1a;
    --gradient-end: #000000;
}

body {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header e titoli migliorati */
.main-content header {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(234, 255, 0, 0.1), rgba(26, 26, 26, 0.9));
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

/* Requisiti del Cliente - Stile migliorato */
.client-requirements {
    margin: 4rem auto;
    max-width: 1000px;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 2rem 0;
}

.requirements-list li {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.requirements-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(234, 255, 0, 0.1);
}

.requirements-list li i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* User Stories - Layout e stile migliorati */
.user-stories-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 3rem auto;
    max-width: 1400px;
    padding: 2rem;
}

.story-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(234, 255, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(234, 255, 0, 0.1);
}

.story-card:hover::before {
    opacity: 1;
}

.story-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.story-header i {
    font-size: 2.5rem;
    margin-right: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.story-header h3 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.story-content {
    position: relative;
    z-index: 1;
}

.user-story {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.user-story h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-story p {
    font-style: italic;
    margin: 0;
}

.solution {
    padding: 1rem;
}

.solution h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.solution ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.solution li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Stack Tecnologico - Design migliorato */
.tech-stack-section {
    padding: 6rem 2rem;
    background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.3));
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem auto;
    max-width: 1400px;
}

.tech-category {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
}

.tech-category h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.tech-category h3:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.tech-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-item:hover {
    background: rgba(234, 255, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tech-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Griglia delle richieste */
.requests-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    padding: 0.5rem;
    margin: 0 auto;
    max-width: 2000px;
    width: 95%;
}

.request-record {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(234, 255, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    gap: 1rem;
}

.record-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 255, 0, 0.08);
    border-radius: 4px;
    flex-shrink: 0;
}

.record-icon i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.record-title {
    min-width: 120px;
    padding-right: 1rem;
    border-right: 1px solid rgba(234, 255, 0, 0.1);
}

.record-title h3 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

.record-content {
    flex: 1;
    padding-left: 0.5rem;
}

.record-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Media query per mobile */
@media (max-width: 768px) {
    .requests-container {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0.3rem;
    }

    .request-record {
        padding: 0.5rem;
    }

    .record-title {
        min-width: 100px;
    }

    .record-content p {
        font-size: 0.85rem;
    }
}

/* Media query per tablet */
@media (max-width: 1400px) {
    .requests-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 2rem;
    }
}

/* Media query per mobile */
@media (max-width: 900px) {
    .requests-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .request-record {
        flex-direction: column;
        padding: 1rem;
        min-height: auto;
        text-align: center;
    }

    .record-title {
        border-right: none;
        border-bottom: 1px solid rgba(234, 255, 0, 0.1);
        padding-right: 0;
        padding-bottom: 1rem;
        width: 100%;
        justify-content: center;
        min-width: auto;
    }

    .record-content {
        padding: 1rem 0;
    }
}

/* Media query per schermi molto grandi */
@media (min-width: 1800px) {
    .requests-container {
        width: 90%;
    }

    .request-record {
        padding: 1.5rem 2rem;
    }

    .record-content p {
        font-size: 1.2rem;
    }
}

/* Media query per tablet */
@media (max-width: 1200px) {
    .requests-container {
        width: 98%;
    }
}

/* Griglia delle soluzioni */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.solution-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(234, 255, 0, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(234, 255, 0, 0.1);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(234, 255, 0, 0.1);
}

.solution-header i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex-shrink: 0;
}

.solution-header h3 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.solution-preview {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem 0 0;
}

.solution-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-preview li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-preview li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.solution-preview li {
    margin: 0.8rem 0;
    padding-left: 1.8rem;
    position: relative;
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
}

.solution-preview li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .solution-preview {
        padding: 0.8rem 0 0;
    }

    .solution-preview li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
}

/* Titoli delle sezioni */
.user-stories-section h2 {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.user-stories-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .requests-container,
    .solutions-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .solution-card,
    .request-record {
        padding: 1.5rem;
    }

    .solution-header {
        gap: 1rem;
    }

    .solution-header i {
        font-size: 2rem;
    }

    .solution-header h3 {
        font-size: 1.3rem;
    }
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

:root {
    --nero: #1a1a1a;
    --giallo: #EAFF00;
    --grigio: #2a2a2a;
    --bianco: #ffffff;
}

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

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

header {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in;
    background: linear-gradient(45deg, var(--nero), #2a2a2a);
    border-bottom: 3px solid var(--giallo);
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--giallo);
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--giallo);
    margin-bottom: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tech-stack-overview {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tech-badge {
    background: rgba(234, 255, 0, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--giallo);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: var(--giallo);
}

.tech-badge:hover {
    background: var(--giallo);
    color: var(--nero);
    transform: translateY(-5px);
}

.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-intro h2 {
    color: var(--giallo);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.project-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--giallo);
}

.project-intro p {
    color: var(--bianco);
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.feature {
    background: rgba(42, 42, 42, 0.5);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 255, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: featureAppear 0.5s ease-out backwards;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(234, 255, 0, 0.2);
    border-color: var(--giallo);
}

.feature-number {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--giallo);
    color: var(--nero);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.feature h3 {
    color: var(--giallo);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.feature h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--giallo);
    transition: width 0.3s ease;
}

.feature:hover h3::after {
    width: 100%;
}

.feature p {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--bianco);
    line-height: 1.6;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.feature:hover p {
    opacity: 1;
}

.project-approach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.approach-card {
    background: var(--grigio);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--giallo);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(234, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.approach-card:hover::before {
    opacity: 1;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.approach-card i {
    font-size: 2.5rem;
    color: var(--giallo);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.approach-card:hover i {
    transform: scale(1.2);
}

.approach-card h3 {
    color: var(--giallo);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.approach-card p {
    color: var(--bianco);
    line-height: 1.6;
    margin: 0;
}

/* Animazione di entrata per le cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.approach-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.approach-card:nth-child(1) { animation-delay: 0.1s; }
.approach-card:nth-child(2) { animation-delay: 0.2s; }
.approach-card:nth-child(3) { animation-delay: 0.3s; }
.approach-card:nth-child(4) { animation-delay: 0.4s; }

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 9999;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
}

.modal.show {
    display: block;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.modal-content {
    position: fixed;
    left: 50%;
    top: 50vh;
    transform: translate(-50%, -50%) scale(0.7);
    background: var(--grigio);
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    border: 1px solid var(--giallo);
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.modal.show .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--giallo);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 1;
}

.close-button:hover {
    transform: rotate(90deg);
}

.modal-title {
    color: var(--giallo);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-description {
    color: var(--bianco);
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tech-item {
    background: rgba(234, 255, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--giallo);
    color: var(--giallo);
}

.tech-item i {
    color: var(--giallo);
}

.tech-item:hover {
    background: var(--giallo);
    color: var(--nero);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 255, 0, 0.3);
}

.modal-image {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
    border: 3px solid var(--grigio);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--nero);
}

::-webkit-scrollbar-thumb {
    background: var(--giallo);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

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

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes featureAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

    .features-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: var(--nero);
    }
}

/* Staggered animation for features */
.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }
.feature:nth-child(5) { animation-delay: 0.5s; }
.feature:nth-child(6) { animation-delay: 0.6s; }
.feature:nth-child(7) { animation-delay: 0.7s; }
.feature:nth-child(8) { animation-delay: 0.8s; }
.feature:nth-child(9) { animation-delay: 0.9s; }

.team-section {
    padding: 4rem 0;
    background: var(--nero);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--grigio);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--giallo);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--giallo);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nero);
}

.member-photo i {
    font-size: 4rem;
    color: var(--giallo);
}

.team-member h3 {
    color: var(--giallo);
    margin-bottom: 0.5rem;
}

.role {
    color: var(--bianco);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.member-skills span {
    background: var(--nero);
    color: var(--giallo);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.analysis-section {
    padding: 4rem 0;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.analysis-card {
    background: var(--grigio);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--giallo);
    transition: all 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--giallo);
}

.card-header h3 {
    color: var(--giallo);
    margin: 0;
}

.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-list li {
    color: var(--bianco);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.analysis-list li i {
    color: var(--giallo);
    font-size: 1.1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.analysis-list li {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.span-team {
    color: var(--bianco);
}

.analysis-list li:nth-child(1) { animation-delay: 0.1s; }
.analysis-list li:nth-child(2) { animation-delay: 0.2s; }
.analysis-list li:nth-child(3) { animation-delay: 0.3s; }
.analysis-list li:nth-child(4) { animation-delay: 0.4s; }

/* Stili per la richiesta del cliente */
.client-request {
    padding: 4rem 0;
}

.request-visual {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.request-card {
    position: relative;
    width: 250px;
    height: 250px;
    background: var(--grigio);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.request-card i {
    font-size: 4rem;
    color: var(--giallo);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--giallo) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.request-card:hover .card-glow {
    opacity: 0.1;
}

/* Stili per il flusso della soluzione */
.solution-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 0 2rem;
    position: relative;
}

.flow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step-line {
    position: absolute;
    top: 2.5rem;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--giallo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.flow-step.active .step-line {
    transform: scaleX(1);
}

.flow-step i {
    font-size: 3rem;
    color: var(--giallo);
    background: var(--nero);
    padding: 1rem;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

/* Stili per le tecnologie */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    position: relative;
    background: var(--grigio);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-card i {
    font-size: 4rem;
    color: var(--giallo);
    margin-bottom: 1rem;
}

.tech-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--giallo) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover .tech-glow {
    opacity: 0.1;
}

/* Stili per i risultati */
.results-showcase {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.result-icon {
    font-size: 3rem;
    color: var(--giallo);
}

.result-meter {
    width: 200px;
    height: 10px;
    background: var(--grigio);
    border-radius: 5px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--giallo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
}

.result-item.active .meter-fill {
    transform: scaleX(1);
}

/* Animazioni generali */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: slideIn 0.6s ease forwards;
}

.user-stories-section {
    margin: 4rem 0;
}

.user-stories-section h2 {
    text-align: center;
    color: var(--giallo);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(234, 255, 0, 0.3);
}

.results-section {
    margin: 4rem 0;
}

.results-section h2 {
    text-align: center;
    color: var(--giallo);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(234, 255, 0, 0.3);
}

.client-requirements {
    margin: 2rem auto;
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #fff;
}

.requirements-list li i {
    color: #4CAF50;
}

.user-stories-section {
    padding: 4rem 2rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.story-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.story-header i {
    font-size: 2rem;
    color: #4CAF50;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.user-story, .solution {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.user-story h4, .solution h4 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.solution ul {
    list-style: none;
    padding: 0;
}

.solution ul li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.solution ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.tech-category {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.tech-category h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item i {
    color: #4CAF50;
}

/* Stack Overview */
.stack-overview {
    margin: 3rem auto 2rem;
    padding: 1rem;
    max-width: 1000px;
    text-align: center;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(234, 255, 0, 0.05);
}

.stack-overview h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

.stack-item {
    background: rgba(234, 255, 0, 0.03);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.stack-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.stack-item span {
    color: #fff;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stack-item {
        padding: 0.8rem;
    }

    .stack-item i {
        font-size: 1.5rem;
    }

    .stack-item span {
        font-size: 0.9rem;
    }

    .details-btn {
        padding: 0.3rem;
    }

    .details-btn i {
        font-size: 1rem;
    }
}

/* Solutions Container */
.solutions-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    margin: 0 auto;
    max-width: 2000px;
    width: 95%;
}

.solution-section {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(234, 255, 0, 0.05);
    padding: 1.2rem;
}

.solution-header {
    border-bottom: 1px solid rgba(234, 255, 0, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.solution-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-item {
    background: rgba(234, 255, 0, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item i {
    color: var(--primary-color);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    padding-top: 0.2rem;
}

.feature-content h4 {
    margin: 0 0 0.3rem 0;
    color: #fff;
    font-size: 1rem;
}

.feature-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Media Queries */
@media (max-width: 768px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Site Preview */
.site-preview {
    margin: 3rem auto;
    padding: 2rem 1rem;
    max-width: 2000px;
    width: 95%;
}

.site-preview h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.preview-carousel {
    position: relative;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(234, 255, 0, 0.05);
    padding: 2rem;
    border-radius: 8px;
}

.carousel-container {
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
    opacity: 0.3;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide-caption {
    text-align: center;
    color: #fff;
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(234, 255, 0, 0.1);
    border: none;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(234, 255, 0, 0.2);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .site-preview {
        padding: 1rem;
    }

    .preview-carousel {
        padding: 1rem;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-btn i {
        font-size: 1rem;
    }

    .slide-caption {
        font-size: 0.9rem;
    }
}

/* Demo Section */
.demo-section {
    margin: 4rem auto;
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(234, 255, 0, 0.05);
    max-width: 800px;
    border-radius: 8px;
}

.demo-content {
    max-width: 600px;
    margin: 0 auto;
}

.demo-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.demo-section p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.end-presentation-btn {
    background: rgba(234, 255, 0, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.end-presentation-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 255, 0, 0.2);
}

.end-presentation-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .demo-section {
        margin: 2rem auto;
        padding: 2rem 1rem;
    }

    .demo-section h2 {
        font-size: 1.5rem;
    }

    .demo-section p {
        font-size: 1rem;
    }

    .end-presentation-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
