/* --- FOGLIO DI STILE UNIFICATO (2025) --- */
/* Creato unendo style.css e style_2025.css, risolvendo conflitti e mancanze. */
/* --- Reset Globale e Stili Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ... altri stili base ... */

/* AGGIUNGI QUESTO BLOCCO */
/* --- Prevenzione Overflow del Testo --- */
h1, h2, h3, p, span, a {
    overflow-wrap: break-word;
    word-wrap: break-word; /* Fallback per browser più vecchi */
    hyphens: auto; /* Opzionale: per una sillabazione migliore */
}
/* FINE BLOCCO DA AGGIUNGERE */

/* --- ANIMAZIONI DI INGRESSO (reveal on scroll) --- */
/* ... il resto del file ... */
/* --- Google Fonts & Variabili CSS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #007bff;
    --primary-glow: rgba(0, 123, 255, 0.5);
    --secondary-color: #1a2a4d;
    --background-light: #f4f4f9;
    --background-dark: #101829;
    --text-light: #ffffff;
    --text-dark: #333;
    --border-radius-main: 8px;
    --transition-speed: 0.4s;
}


/* --- Reset Globale e Stili Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
/* --- Sezione Video Presentation --- */
#video-presentation {
    background: #fff; /* Sfondo bianco per staccare dalla sezione precedente */
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporzioni 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--border-radius-main);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Previene lo scroll orizzontale causato dalle animazioni */
}

main {
    flex-grow: 1;
}

.container {
    width: 85%;
    margin: auto;
    max-width: 1200px;
}


/* --- ANIMAZIONI DI INGRESSO (reveal on scroll) --- */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- STILI PER DOCUMENT VIEWER (MODAL) - (Integrati da style.css) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    padding-top: 50px;
}
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    height: 90%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}
.modal-close {
    color: white;
    background-color: #d9534f;
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 28px;
    font-weight: bold;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    z-index: 2010;
}
.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
}
.modal-body {
    padding: 2px;
    height: 100%;
}
.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* --- Header & Navigazione --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
     box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    flex-direction: column;
}
.logo-link {
    text-decoration: none;
    color: var(--secondary-color);
}
header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}
header h1 .fa-helicopter {
    color: var(--primary-color);
    margin-right: 3px;
    margin-left: 5px;
	margin-top:15px;
    transition: transform 0.3s ease;
}
.logo-link:hover h1 .fa-helicopter {
    transform: rotate(-15deg) scale(1.1);
}
.logo-subtitle {
    font-size: 0.65em;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: -5px;
    margin-left: 40px;
    text-align: center;
}
#main-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
}
#main-nav ul li {
    display: inline;
    margin-left: 20px;
}
#main-nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
}
#main-nav ul li a:not(.nav-button) {
    position: relative;
    font-weight: 500;
}
#main-nav ul li a:not(.nav-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
#main-nav ul li a:hover:not(.nav-button)::after {
    width: 100%;
}
.nav-button {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.nav-button.login {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.nav-button.login:hover {
    background: var(--primary-color);
    color: var(--text-light);
}
.nav-button.cta {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.nav-button.cta:hover {
    background-color: #0056b3;
}
.hamburger-menu {
    display: none;
}


/* --- Sezione Hero --- */
.hero {
    background: url('bghero.jpg') no-repeat center center/cover;
    height: 70vh;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(26, 42, 77, 0.8) 0%, rgba(26, 42, 77, 0.5) 100%);
}
.hero-content {
    z-index: 1;
    padding: 0 20px;
    animation: fadeInHero 1.5s 0.2s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}
@keyframes fadeInHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero h2 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.3rem;
    margin-top: 10px;
    font-weight: 300;
}


/* --- Stili Generali per Sezioni e Card --- */
section {
    padding: 70px 0;
    scroll-margin-top: 80px;
}
#features {
    background: #D3EAF5; /* Regola integrata da style.css */
}
#scenarios {
    background: #fff; /* Regola integrata da style.css */
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #555;
}
.features, .grid-layout {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.feature-item, .grid-item {
    background: #ffffff;
    padding: 25px;
    border-radius: var(--border-radius-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}
.feature-item:hover, .grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.1);
}
.feature-item {
    border-left: 5px solid var(--primary-color);
}
.feature-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}
.grid-item h3 {
    color: var(--secondary-color);
    margin-top: 0;
}


/* --- Sezione The Simulator: Gallery --- */
.simulator-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-items: center;
}
.simulator-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-main);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}
.simulator-gallery img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
}


/* --- Sezione Statistiche --- */
#stats {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
#stats::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    animation: moveBg 60s linear infinite;
}
@keyframes moveBg {
    from { background-position: 0 0; }
    to { background-position: 900px 900px; }
}
.company-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    border-radius: var(--border-radius-main);
    background: rgba(16, 24, 41, 0.75);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.company-logo {
    min-height: 220px;
    border-radius: var(--border-radius-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(10, 16, 30, 0.6);
    box-shadow: inset 0 0 25px rgba(0,0,0,0.35);
}
.company-logo-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}
.company-details h3 {
    font-size: 2.1rem;
    margin-bottom: 15px;
}
.company-details p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}
.company-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: grid;
    gap: 12px;
}
.company-highlights li {
    position: relative;
    padding-left: 28px;
    color: rgba(255,255,255,0.85);
}
.company-highlights li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}
.company-details .cta-button {
    margin-top: 0;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: none;
}
.company-details .cta-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}


/* --- Sezione Who We Train --- */
.grid-item .material-icons {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.3s ease;
}
.grid-item:hover .material-icons {
    transform: scale(1.1);
}


/* --- Sezione Scenari --- */
#scenarios ul {
    list-style: none;
    padding: 0;
}
#scenarios ul li {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDdiZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cG9seWxpbmUgcG9pbnRzPSIyMCA2IDkgMTcgNCAxMiI+PC9wb2x5bGluZT48L3N2Zz4=');
    background-repeat: no-repeat;
    background-position: left 5px;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}


/* --- Sezione FAQ --- */
#faq {
    padding-bottom: 70px;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.08);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f7f7f7;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}
.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom: 1px solid var(--primary-color);
}
.faq-item.active .faq-question:hover {
    background-color: #0069d9;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(0deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #ffffff;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.faq-answer p {
    margin: 0;
    color: #444;
    line-height: 1.7;
}


/* --- Pulsanti e Footer --- */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 20px var(--primary-glow);
}
.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--primary-glow);
    background-color: #0069d9;
}
.text-center {
    text-align: center;
}
footer {
    background: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 40px;
}
footer p {
    margin: 0;
    color: #aaa;
}
.map-container {
    margin: 30px auto;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
}
.map-container iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}


/* --- STILI RESPONSIVE (Mobile) --- */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    .company-showcase {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        text-align: center;
    }
    .company-logo {
        min-height: 180px;
    }
    .company-highlights li {
        padding-left: 0;
    }
    .company-highlights li::before {
        position: static;
        margin-right: 8px;
    }
    .request-type-selector {
        grid-template-columns: 1fr;
    }
    .request-type-card {
        padding: 22px;
    }
    /* --- AGGIUNGI QUESTA REGOLA --- */
    #video-presentation .video-container {
        width: 90%; /* Rende il video più stretto del suo contenitore */
        margin-left: auto;  /* Lo centra orizzontalmente */
        margin-right: auto; /* Lo centra orizzontalmente */
    }
    /* --- FINE REGOLA DA AGGIUNGERE --- */
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: var(--secondary-color);
        z-index: 1002;
    }
    #main-nav {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    #main-nav.is-open {
        max-height: 500px;
    }
    #main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    #main-nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    #main-nav ul li:last-child {
        border-bottom: none;
    }
    #main-nav ul li a {
        padding: 18px;
        display: block;
        width: 100%;
    }
    #main-nav ul li a.nav-button {
        margin: 10px auto;
        width: 80%;
        padding: 12px;
    }
    #main-nav ul li:nth-last-child(2) {
        border-bottom: none;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .simulator-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}