/* --- style.css (Versione Luxury Premium - Palette Logos Ottimizzata) --- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Poppins:wght@500;600;700&display=swap');

:root {
    /* Palette Aziendale Ottimizzata (Tinte Micro-Corrette per Schermi Digitali) */
    --primary-color: #242120;       /* Ossidiana Calda: più profondo, elimina l'effetto opaco */
    --secondary-color: #423C3A;     /* Fumo di Londra Caldo per testi descrittivi e transizioni */
    --accent-color: #E64F1A;        /* Digital Burnt Orange: l'arancione del logo reso più vibrante e vivo */
    --accent-hover: #FA622D;        /* Arancione Corallo per effetti hover ad alta luminosità */
    
    /* Sfondi e Testi ad Alto Contrasto */
    --text-main: #2C2827;           /* Testo scuro coordinato alla palette calda */
    --text-muted: #736C6A;          /* Grigio fango neutro ed elegante per i testi secondari */
    --bg-page: #FDFCFB;             /* Bianco Seta/Alabastro: dona luce e pulizia millimetrica */
    --white: #ffffff;
    
    /* Ombre Eteree (Stile Apple/Stripe - quasi invisibili ma d'impatto) */
    --shadow-sm: 0 4px 20px rgba(36, 33, 32, 0.03);
    --shadow-lg: 0 20px 50px rgba(36, 33, 32, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* --- Layout Generale --- */
.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

/* --- Header & Navigazione --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(36, 33, 32, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(36, 33, 32, 0.02);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

/* Loghi */
.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-group img {
    max-height: 46px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-group img:hover {
    transform: scale(1.03);
}

.logo-separator {
    width: 1px;
    height: 28px;
    background-color: #E6E4E2;
}

.ts-logo {
    max-height: 36px !important;
}

/* Menu Navigazione Desktop */
nav ul {
    list-style: none;
    display: flex;
    gap: 28px; 
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 6px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
}

nav a:hover::after {
    width: 100%;
}

a.linksito {
    text-decoration: none;
    color: var(--accent-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease;
}

a.linksito:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

a.linksito::after { display: none; }

/* --- Hero Section (Il Gradiente d'Impatto "Liquid Bronze") --- */
.hero {
    /* Oscillazione fluida tra ossidiana, cioccolato d'alta classe e un bagliore di rame scuro */
    background: linear-gradient(-45deg, #161413, var(--primary-color), #361D15, #2B2523);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    padding: 120px 0 140px 0;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--accent-color);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 720px;
    margin: auto;
    color: #E6E4E2;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- Area Contenuti (Effetto Floating Card) --- */
.content-section {
    padding: 60px 0;
    margin-top: -60px; 
    position: relative;
    z-index: 10;
}

.content-box {
    background-color: var(--white);
    padding: 60px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    border-top: 4px solid var(--accent-color);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.content-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(36, 33, 32, 0.1);
}

.content-box h2 {
    font-size: 2.3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.content-box h3 {
    font-size: 1.45rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.content-box p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.content-box ul {
    list-style: none;
    margin-left: 0;
}

.content-box ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.content-box ul li::before {
    content: '■'; 
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 65px 0 45px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
    margin-bottom: 15px;
    color: #9C9694; 
    font-size: 0.95rem;
}

footer strong {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Menu a Tendina (Dropdown) Desktop --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 230px;
    list-style: none;
    z-index: 1010;
    border: 1px solid rgba(36, 33, 32, 0.05);
    border-top: 3px solid var(--accent-color);
    
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(6px);
}

.dropdown-menu li { padding: 0 !important; margin: 0 !important; }
.dropdown-menu li::before { display: none !important; }

.dropdown-menu li a {
    padding: 12px 22px;
    display: block;
    color: var(--text-main) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-page);
    color: var(--accent-color) !important;
}

.dropdown-menu li a::after { display: none !important; }

/* --- Responsive Design --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1050;
}

.menu-toggle .bar {
    width: 26px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

@media (max-width: 1200px) {
    .menu-toggle { display: flex; }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 15px 25px rgba(36, 33, 32, 0.05);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease;
    }

    .nav-links.active {
        max-height: 700px;
        padding: 24px 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .nav-links li a {
        display: inline-block;
        padding: 10px;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        background: var(--bg-page);
        border: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 400px;
        padding: 10px 0;
        margin-top: 10px;
    }

    .dropdown-menu li a {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--accent-color); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--accent-color); }
    
    .hero { padding: 90px 0 110px 0; }
    .hero h1 { font-size: 2.4rem; }
    .content-box { padding: 40px 25px; }
}

@media (max-width: 576px) {
    .ts-logo, .logo-separator { display: none !important; }
}

/* --- Icone Social nel Footer --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 25px 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #9C9694;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

.social-icon:hover {
    transform: translateY(-4px);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(230, 79, 26, 0.3);
}

/* --- Banner Cookie GDPR --- */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 650px;
    background: var(--white);
    border: 1px solid rgba(36, 33, 32, 0.06);
    border-left: 5px solid var(--accent-color);
    padding: 25px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

.cookie-buttons { display: flex; gap: 10px; justify-content: flex-end; }

.cookie-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background-color: var(--accent-color);
    color: var(--white);
}

.cookie-btn.accept:hover { background-color: var(--accent-hover); }

.cookie-btn.decline {
    background-color: var(--bg-page);
    color: var(--text-muted);
    border: 1px solid #E6E4E2;
}

.cookie-btn.decline:hover {
    background-color: #EFECE9;
    color: var(--text-main);
}

@media (max-width: 576px) {
    .cookie-banner { bottom: 15px; padding: 20px; border-left: none; border-top: 5px solid var(--accent-color); }
    .cookie-buttons { flex-direction: column-reverse; width: 100%; }
    .cookie-btn { width: 100%; text-align: center; }
}

.messaggio-piccolo { display: none; }
@media (max-width: 720px) { .messaggio-piccolo { display: block; } }

/* ========================================= */
/* --- FORMATTAZIONE IMMAGINI PAGINA DRONI --- */
/* ========================================= */

.drone-feature {
    display: flex;
    align-items: center;
    gap: 45px;
    margin-top: 45px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(36, 33, 32, 0.05);
}

.drone-feature:last-child { border-bottom: none; padding-bottom: 0; }
.drone-feature.reverse { flex-direction: row-reverse; }
.drone-text { flex: 1; }

.drone-image {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--accent-color); 
}

.drone-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.drone-image:hover img { transform: scale(1.04); }

.drone-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary-color);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img { transform: scale(1.06); }

@media (max-width: 768px) {
    .drone-feature, .drone-feature.reverse { flex-direction: column; gap: 30px; }
}