/* Colori del Brand */
:root {
    --primary-blue: #1C365C;
    --primary-orange: #F17F29;
    --text-light: #f5f5f5;
    --text-dark: #333;
    --bg-light: #ffffff;
    --bg-dark: #0a192f; /* Un blu molto scuro per sfondi */
}

/* Stili Generali */
body {
    font-family: 'Montserrat', 'Open Sans', sans-serif; /* Assicurati di importare questi font, es. da Google Fonts */
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll orizzontale */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

h1 { font-size: 3.5em; text-align: center; }
h2 { font-size: 2.5em; text-align: center; }
h3 { font-size: 1.8em; }

p { font-size: 1.1em; }

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light); /* Testo chiaro sul video */
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.3);*/ /* Ombra per leggibilità */
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark); /* Fallback colore */
    z-index: -1;
}

.hero-content {
    z-index: 1;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.brand-logo {
    width: 180px; /* Dimensione del tuo logo SVG */
    height: 180px;
    margin: 0 auto 20px auto;
    /* Animazioni CSS per il logo SVG (se non Lottie) */
    transform: scale(0);
    opacity: 0;
    animation: logo-intro 1s forwards ease-out 0.5s;
}

.search-card-glass {

    transform: scale(0);
    opacity: 0;
    animation: logo-intro 1.5s forwards ease-out 1.5s;
}

.brand-logo svg {
    max-width: 100%;
    height: auto;
}

@keyframes logo-intro {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.brand-name {
    font-family: Gotham;
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.1;
    opacity: 0;
    animation: text-fade-in 1s forwards ease-out 1.5s;
}

.adesso-color { color: var(--primary-orange); }
.immobiliare-color { color: var(--primary-blue); } /* Sarà più chiaro sul background */

.brand-tagline {
    font-size: 1.5em;
    font-style: italic;
    color: var(--text-light); /* Colore chiaro per la tagline */
    opacity: 0;
    animation: text-fade-in 1s forwards ease-out 2s;
    position: relative;
    display: inline-block; /* Per l'underline animato */
}

.brand-tagline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-grow 1s forwards ease-out 2.5s;
}

@keyframes text-fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes underline-grow {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}


/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end; /* Links a destra */
    align-items: center;
    z-index: 1000;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

/* Key Points Section */
.key-points-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    text-align: center;
}

.key-points-section h2 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}
.key-points-section > p { /* La p direttamente sotto h2 */
    font-size: 1.2em;
    color: var(--text-dark);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.key-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.key-point-card {
    /* cursor: pointer;  <-- RIMOSSO */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Assicuriamoci che non ci siano trasformazioni residue */
    transform: scale(1);
}

    .key-point-card:hover {
        /* Manteniamo un leggero effetto hover solo per estetica, ma niente di drastico */
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
    }

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(var(--primary-orange), 0.1); /* Sfondo leggero per le icone */
    border-radius: 50%;
}
/* Stili specifici per le Lottie icons se necessario */
.icon-wrapper svg {
    max-width: 70%;
    max-height: 70%;
}


.key-point-card h3 {
    color: var(--primary-blue);
    font-size: 1.5em;
    margin-top: 0;
}

.key-point-card p {
    color: var(--text-dark);
    font-size: 1em;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background-color: var(--primary-blue); /* Sfondo blu per CTA */
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light); /* Titolo bianco */
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Per responsività */
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    min-width: 200px;
}

.primary-btn {
    background-color: var(--primary-orange);
    color: var(--bg-light);
    border: 2px solid var(--primary-orange);
}

.primary-btn:hover {
    background-color: #e07421; /* Versione più scura di primary-orange */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 127, 41, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Media Queries per Responsività */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .brand-name { font-size: 3em; }
    .brand-tagline { font-size: 1.2em; }
    .navbar { justify-content: center; padding: 15px 20px; }
    .nav-links a { margin: 0 15px; }
    .key-points-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 80%; }
}

/* 1. Default (Mobile / XS): 
   Applicato su tutti gli schermi piccoli (sotto i 768px) */
.datalist-margin-top {
    margin-top: 330px;
    /* Imposta l'altezza max pari all'altezza dinamica del dispositivo */
    max-height: 68vh;
    /* Abilita lo scroll VERTICALE interno se i dati superano l'altezza */
    overflow-y: auto;
}

/* 2. Tablet e Desktop (MD in su): 
   Quando la larghezza è almeno 768px (il breakpoint 'md' di Bootstrap) */
@media (min-width: 768px) {
    .datalist-margin-top {
        margin-top: 150px;
        /* Su desktop rimuoviamo il limite di altezza per lasciare scorrere la pagina intera */
        max-height: none;
        overflow-y: visible;
    }
}