/* Stili globali */
.page-content { padding-top: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 3rem; color: var(--highlight-color); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; }
.divider { width: 80px; height: 2px; background-color: var(--highlight-color); margin: 0 auto 20px auto; }
.section-quote { font-family: 'Roboto Mono', monospace; font-size: 1.1rem; color: var(--text-color); }

/* Animazioni On-Scroll */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Hero Section FDO */
.fdo-hero {
    height: 500px; /* Altezza ridotta per un effetto banner */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--highlight-color);
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    filter: brightness(0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.fdo-hero .hero-title {
    font-size: 3.5rem; /* Font leggermente ridotto per adattarsi */
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 20px;
    color: var(--text-color);
}

/* Sezione Polizia */
.branch-section-fdo { padding: 120px 0; }

/* Dossier Dipartimenti */
.dossier-container { margin-bottom: 120px; }
.dossier-container h3 { text-align: center; font-size: 1.8rem; color: var(--highlight-color); margin-bottom: 50px; text-transform: uppercase; }
.dossier-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}
.tab-button {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 15px 30px;
    font-size: 1rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}
.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--highlight-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.tab-button.active, .tab-button:hover { color: var(--highlight-color); }
.tab-button.active::after { transform: scaleX(1); }
.tab-pane {
    display: none;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}
.tab-pane.active { display: grid; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tab-pane img { width: 100%; display: block; border: 1px solid var(--border-color); }
.pane-text h4 { font-size: 1.5rem; color: var(--highlight-color); margin-bottom: 15px; }
.pane-text p { line-height: 1.8; }

/* Griglia Carriera */
.career-container { margin-top: 120px; text-align: center; }
.career-container h3 { font-size: 1.8rem; color: var(--highlight-color); margin-bottom: 20px; text-transform: uppercase; }
.career-container p { max-width: 800px; margin: 0 auto 50px auto; line-height: 1.7; }
.career-grid {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.career-node {
    padding: 12px 25px;
    border: 1px solid var(--border-color);
    background-color: #101214;
    color: var(--text-color);
    margin: 10px 0;
    transition: all 0.4s ease;
}
.career-node.visible {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
    box-shadow: 0 0 15px rgba(205, 213, 224, 0.3);
}
.career-node.start { border-color: var(--accent-color, #4A90E2); color: var(--highlight-color); }
.career-node.special { background-color: rgba(74, 144, 226, 0.1); }
.career-connector {
    width: 1px;
    height: 30px;
    background-color: var(--border-color);
}
.career-branch {
    display: flex;
    gap: 20px;
    position: relative;
    padding-top: 30px;
}
.career-branch::before { /* Linea orizzontale */
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: var(--border-color);
}

/* CTA Finale (riutilizza stili esistenti) */
.cta-section { padding: 120px 0; text-align: center; border-top: 1px solid var(--border-color); background-color: #07090A; }
.cta-container { max-width: 800px; margin: 0 auto; }
.cta-title { font-size: 2.8rem; font-weight: 700; color: var(--highlight-color); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.cta-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-color); margin-bottom: 40px; }
.cta-button { display: inline-block; padding: 18px 40px; border: 1px solid var(--accent-color, #4A90E2); background-color: transparent; color: var(--highlight-color); text-decoration: none; text-transform: uppercase; font-size: 1rem; font-weight: 500; letter-spacing: 1.5px; position: relative; overflow: hidden; transition: color 0.4s ease, border-color 0.4s ease; z-index: 1; }
.cta-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-color: var(--accent-color, #4A90E2); transition: left 0.4s ease; z-index: -1; }
.cta-button:hover { color: var(--bg-color); }
.cta-button:hover::before { left: 0; }

/* Responsive */
@media (max-width: 768px) {
    .tab-pane { grid-template-columns: 1fr; }
    .tab-pane img { margin-bottom: 30px; }
    .career-branch { flex-direction: column; }
    .career-branch::before { display: none; }
}