/* ======================================== */
/* == PLUGIN FARM 3D - COME LAVORIAMO == */
/* ======================================== */

/* Variabili Colore */
:root {
    --f3d-primary-color: #2B6CB0;
    --f3d-primary-hover: #2c5282;
    --f3d-secondary-color: #38b6ff;
    --f3d-accent-color: #ff5757;
    --f3d-light-bg: #f8f9fa;
    --f3d-dark-bg: #262830;
    --f3d-text-color: #333;
    --f3d-card-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    --f3d-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* Contenitore principale */
.container-come-lavoro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--f3d-card-shadow);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.hero-title {
    font-size: 2.2rem;
    color: var(--f3d-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Case Study / Examples Section */
.case-study-section {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--f3d-card-shadow);
    border: 1px solid #e2e8f0;
}

.case-study-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    text-align: center;
}

.case-study-title {
    font-size: 1.8rem;
    color: var(--f3d-primary-color);
    font-weight: 600;
}

/* Tabs esempi */
.examples-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.example-tab {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #555;
    min-width: 120px;
    max-width: 180px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.example-tab:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.example-tab.active {
    background-color: var(--f3d-primary-color);
    color: white;
    border-color: var(--f3d-primary-color);
    box-shadow: 0 4px 8px rgba(43, 108, 176, 0.3);
}

.example-tab i {
    font-size: 1.2rem;
    margin-right: 5px;
}

.examples-container {
    position: relative;
    min-height: 350px;
}

.example-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.example-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contenuti esempio */
.case-study-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.case-study-image {
    flex: 0 0 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-details {
    flex: 1;
    min-width: 300px;
}

.detail-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #555;
    width: 160px;
    flex-shrink: 0;
    padding-right: 10px;
}

.detail-value {
    flex: 1;
    min-width: 150px;
    color: #4a5568;
}

.detail-highlight {
    font-weight: 600;
    color: var(--f3d-primary-color);
}

/* Process Section */
.process-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--f3d-primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--f3d-primary-color);
    border-radius: 3px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 28px;
    background-color: var(--f3d-primary-color);
    border: 4px solid white;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--f3d-card-shadow);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.timeline-content:hover {
    box-shadow: var(--f3d-hover-shadow);
    transform: translateY(-3px);
}

/* Frecce timeline */
.timeline-item:nth-child(odd) .timeline-content::before {
    content: "";
    position: absolute;
    top: 25px;
    right: -15px;
    border-style: solid;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent white;
    filter: drop-shadow(1px 0px 1px rgba(0,0,0,0.05));
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: "";
    position: absolute;
    top: 25px;
    left: -15px;
    border-style: solid;
    border-width: 15px 15px 15px 0;
    border-color: transparent white transparent transparent;
    filter: drop-shadow(-1px 0px 1px rgba(0,0,0,0.05));
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--f3d-primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.timeline-title-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(43, 108, 176, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f3d-primary-color);
    flex-shrink: 0;
}

.timeline-toggle {
    color: #777;
    font-size: 1rem;
    transition: transform 0.3s ease;
    padding: 5px;
}

.timeline-item.active .timeline-toggle {
    transform: rotate(180deg);
}

.timeline-brief {
    margin-top: 10px;
    color: #555;
    line-height: 1.6;
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.3s ease-out, margin-top 0.3s ease-out, border-top-width 0.3s ease-out;
    margin-top: 0;
    padding-top: 0;
    border-top: 0px solid #eee;
}

.timeline-item.active .timeline-details {
    max-height: 1000px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    transition: max-height 0.6s ease-in, padding-top 0.3s ease-in, margin-top 0.3s ease-in, border-top-width 0.3s ease-in;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
    white-space: nowrap;
}

.badge-primary {
    background-color: rgba(43, 108, 176, 0.15);
    color: var(--f3d-primary-color);
}

.badge-secondary {
    background-color: rgba(56, 182, 255, 0.15);
    color: var(--f3d-secondary-color);
}

.timeline-substeps {
    margin-top: 15px;
}

.timeline-substep {
    background-color: #f8f9fa;
    border-left: 3px solid var(--f3d-primary-color);
    padding: 12px 15px;
    border-radius: 0 5px 5px 0;
    margin-bottom: 10px;
}

.substep-title {
    font-weight: 600;
    color: var(--f3d-primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.substep-description {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background-color: var(--f3d-primary-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--f3d-card-shadow);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.cta-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 25px;
    opacity: 0.95;
    color: white !important;
    line-height: 1.6;
}

.cta-button {
    background-color: white;
    color: var(--f3d-primary-color);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--f3d-primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .timeline::after { display: none; }
    .timeline-item { width: 100%; padding: 10px 25px; left: 0 !important; }
    .timeline-item::after { display: none; }
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before { display: none; }
}

@media (max-width: 768px) {
    .hero-section, .case-study-section, .cta-section { padding: 30px 20px; }
    .case-study-content { flex-direction: column; align-items: center; }
    .case-study-image {
        flex-basis: auto;
        width: 80%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0 auto 20px;
    }
    .case-study-details { width: 100%; }
    .detail-label { width: 120px; }
    .timeline-header { flex-wrap: wrap; }
    .timeline-title { font-size: 1.15rem; }
    .timeline-meta { justify-content: flex-start; }
    .example-tab { min-width: 100px; padding: 8px 12px; font-size: 0.9rem; }
    .example-tab i { font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle, .cta-text { font-size: 1rem; }
    .section-title, .case-study-title { font-size: 1.6rem; }
    .case-study-header { justify-content: center; text-align: center; }
    .case-study-title { width: 100%; }
    .detail-item { flex-direction: column; gap: 5px; align-items: flex-start; }
    .detail-label { width: auto; margin-bottom: 3px; font-weight: bold; }
    .detail-value { min-width: 0; }
    .cta-button { padding: 10px 20px; font-size: 1rem; }
    .timeline-item { padding-left: 15px; padding-right: 15px; }
    .timeline-title-icon { width: 35px; height: 35px; }
    .timeline-title { font-size: 1.1rem; gap: 8px; }
    .timeline-toggle { font-size: 0.9rem; }
    .examples-tabs { gap: 8px; }
    .example-tab { flex-grow: 1; max-width: none; min-width: 90px; }
}
