/* --- VANTAGE 360 - MAIN STYLESHEET --- */

/* --- 1. VARIABLES & BASE --- */
:root {
    --navy: #0B1E33;       /* Bottoni e Testi Scuri */
    --teal: #009BB0;       /* Accenti */
    --bg-light: #ffffff;   /* Sfondo principale */
    --bg-accent: #F4FAFB;  /* Sfondo sezioni alternativo */
    --text-main: #1a202c;
    --text-muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { font-size: 1.125rem; color: #4a5568; max-width: 800px; margin: 0 auto; }

.text-center { text-align: center; }

/* --- 3. LAYOUT & UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }
.section-header { margin-bottom: 60px; }

.bg-accent { 
    background-color: var(--bg-accent); 
    border-top: 1px solid rgba(0,0,0,0.03); 
    border-bottom: 1px solid rgba(0,0,0,0.03); 
}

/* --- 4. BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    background-color: var(--navy);
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(11, 30, 51, 0.2);
}

.btn:hover {
    background-color: var(--teal);
    transform: translateY(-2px);
}

/* Bottoni Social/Contatti Uniformati */
.vantage-btn-equal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 20px;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: 500;
    border-radius: 6px;
    transition: opacity 0.2s;
    color: white;
    text-align: center;
    gap: 8px;
}
.vantage-btn-equal:hover { opacity: 0.8; color: white; }
.btn-whatsapp { background-color: #25D366; }
.btn-linkedin { background-color: #0077b5; }
.btn-default { background-color: #333; }

/* --- 5. HEADER --- */
header {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 40px; 
    width: auto;
    display: block;
}

/* --- 6. HERO SECTION --- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background-color: var(--bg-light);
}
.hero h1 { margin-bottom: 20px; }
.hero p { margin-bottom: 50px; }

/* Video Wrapper (20:9 Aspect Ratio) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 45%; 
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 30, 51, 0.15);
    margin-bottom: 30px;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* --- 7. DETAILS SECTION --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--teal); }
.feature-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.feature-card p { margin: 0; font-size: 1rem; }

/* Sales Grid (2 Columns) */
.sales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}
.card-light {
    background-color: white;
    border: 2px solid var(--teal);
}

/* --- 8. PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Layout Flex per centratura ultima riga */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.tour-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 1 calc(33.333% - 30px); /* 3 colonne desktop */
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .card-image-wrapper img { transform: scale(1.05); }

/* Tags */
.card-tag {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
}
.tag-logistics { background-color: var(--teal); }
.tag-interactive { background-color: #b45309; }
.tag-architectural { background-color: #7e22ce; }

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-link {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.card-link:hover { text-decoration: underline; gap: 12px; }
.link-interactive { color: #b45309; }
.link-architectural { color: #7e22ce; }

.hidden-card {
    display: none !important;
}

.load-more-container {
    text-align: center;
    display: none;
    margin-top: 40px;
}

/* --- 9. BIO SECTION --- */
.bio-section {
    background-color: var(--bg-accent);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Foto 1/3, Testo 2/3 */
    gap: 50px;
    align-items: start;
}

/* Foto Bio */
.bio-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(11, 30, 51, 0.15);
    border: 4px solid white;
}
.bio-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Testo Bio */
.bio-title {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 5px;
    line-height: 1.1;
}

.bio-subtitle {
    font-size: 1.25rem;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    display: block;
}

.bio-block { margin-bottom: 30px; }

.bio-block h3 {
    font-size: 1.1rem;
    color: var(--navy);
    border-left: 3px solid var(--teal);
    padding-left: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio-list { margin-left: 0; padding-left: 0; }
.bio-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #4a5568;
}
.bio-list li::before {
    content: "•";
    color: var(--teal);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- 10. FOOTER & CONTACT --- */
.footer-contact {
    background-color: white;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.contact-box { max-width: 600px; margin: 0 auto; }
.contact-buttons-wrapper {
    display: flex; gap: 15px; justify-content: center; align-items: center; flex-wrap: wrap;
}

.legal-footer {
    background-color: var(--bg-accent);
    color: rgba(25, 32, 44, 0.6);
    padding: 30px 0;
    font-size: 0.9rem;
    text-align: center;
}

/* --- 11. RESPONSIVE --- */
@media (max-width: 992px) {
    .tour-card { flex: 0 1 calc(50% - 30px); } /* 2 colonne tablet */
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero { padding: 60px 0; }
    
    .sales-grid { grid-template-columns: 1fr; }
    
    .tour-card { flex: 0 1 100%; } /* 1 colonna mobile */
    
    .bio-grid { grid-template-columns: 1fr; gap: 30px; }
    .bio-img-wrapper { max-width: 300px; margin: 0 auto; }
    .bio-title, .bio-subtitle { text-align: center; }
}

/* --- NAVIGATION & HEADER STYLES --- */

.site-header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; /* Fissa il menu in alto quando scorri */
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; 
    width: auto;
    display: block;
}

/* Menu Desktop */
.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: var(--teal);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 30px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.lang-switcher a {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-switcher a:hover {
    color: var(--navy);
    background: rgba(0, 155, 176, 0.1);
}

.lang-switcher a.active {
    color: white;
    background: var(--navy);
    box-shadow: 0 2px 4px rgba(11, 30, 51, 0.15);
}

/* Bottone specifico per header */
.btn-header {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hamburger Icon (Nascosto su Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--navy);
    transition: all 0.3s ease-in-out;
}

/* --- MOBILE NAVIGATION --- */
@media (max-width: 992px) {
    .hamburger {
        display: block; /* Mostra icona su mobile */
    }

    /* Animazione Hamburger quando attivo */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .main-nav {
        position: fixed;
        left: -100%; /* Nascondi fuori dallo schermo */
        top: 70px; /* Altezza header circa */
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding-bottom: 20px;
    }

    .main-nav.active {
        left: 0; /* Mostra menu */
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }

    .btn-header {
        width: 80%; /* Bottone largo su mobile */
        margin-top: 10px;
    }
}
/* --- COMING SOON OVERLAY --- */
.coming-soon-wrapper {
    position: relative; /* Necessario per posizionare l'overlay */
}

.cs-text {
    border: 1px solid var(--teal);
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* Disabilita il link visivamente */
.btn-disabled {
    opacity: 0.5;
    pointer-events: none; /* Impedisce il click */
    cursor: default;
}

.cs-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* MODIFICA 1: Cambia 0.8 con 0.3 o 0.4 (Molto più trasparente) */
    background-color: rgba(11, 30, 51, 0.3); 
    
    /* MODIFICA 2: Riduci la sfocatura da 3px a 1px (o toglila del tutto) */
    backdrop-filter: blur(1px); 
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease; /* Aggiunge un effetto fluido se vuoi */
}

/* OPZIONALE: Se vuoi che l'immagine torni nitida quando ci passi sopra col mouse */
.card-image-wrapper:hover .cs-overlay {
    background-color: rgba(11, 30, 51, 0.1);
    backdrop-filter: blur(0px);
}

/* Feedback Messages */
.success-msg {
    background-color: #d1fae5; /* Verde chiaro "Tech" */
    color: #065f46;            /* Verde scuro leggibile */
    border: 1px solid #34d399;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.error-msg {
    background-color: #fee2e2; /* Rosso chiaro */
    color: #991b1b;            /* Rosso scuro */
    border: 1px solid #f87171;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* Focus sugli input (Tocco di classe) */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #002b49 !important; /* Il tuo Navy Blue */
    box-shadow: 0 0 0 3px rgba(0, 43, 73, 0.1);
}

/* --- RENDI LE CARD INTERAMENTE CLICCABILI --- */
.tour-card {
    position: relative; /* Crea il riferimento per l'espansione */
}

.tour-card .card-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Porta il livello cliccabile sopra a tutto */
    cursor: pointer;
}

/* ── TRUST BAR ── */
.trust-bar {
    background-color: #0a4a6e;
    padding: 22px 0;
}

.trust-bar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
}

.trust-bar-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    text-align: center;
}

.trust-divider {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0 !important;
    flex-shrink: 0;
}

.trust-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 3px;
}

.trust-label {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* Tablet */
@media (max-width: 900px) {
    .trust-bar-list li {
        padding: 0 14px;
    }
    .trust-number {
        font-size: 1.3rem;
    }
    .trust-label {
        font-size: 0.65rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .trust-bar {
        padding: 16px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .trust-bar .container {
        padding: 0 16px;
    }
    .trust-bar-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
        padding: 4px 0;
    }
    .trust-bar-list li {
        padding: 0 18px;
        flex-shrink: 0;
    }
    .trust-divider {
        display: block;
        flex-shrink: 0;
    }
    .trust-number {
        font-size: 1.25rem;
    }
    .trust-label {
        font-size: 0.62rem;
        white-space: nowrap;
    }
}