/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff; /* Un blu vibrante per i CTA */
    --dark-bg: #121212;
    --light-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1100px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* --- Call to Action Buttons --- */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #0056b3;
}

/* --- Header & Hero Section --- */
.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 1)), url('https://placehold.co/1920x1080/1a1a1a/333333?text=sfondo+cruscotto') no-repeat center center/cover;
    padding-bottom: 80px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.nav-cta {
    font-size: 0.9rem;
    padding: 10px 25px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    margin: 20px 0 30px;
}

.hero-cta {
    font-size: 1.1rem;
}

.trust-icons {
    margin-top: 30px;
    color: var(--text-muted);
}

.trust-icons span {
    margin-right: 20px;
}

.trust-icons .fa-star, .trust-icons .fa-shield-alt {
    color: #28a745;
    margin-right: 5px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- Problem Section --- */
.problem-section {
    background-color: var(--light-bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.problem-item {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.problem-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.problem-item h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
}

/* --- Solution Section --- */
.section-tag {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.solution-subtitle {
    max-width: 600px;
    margin: 10px auto 30px;
    font-size: 1.1rem;
}

.solution-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Features Section --- */
.features-section {
    background-color: var(--light-bg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

/* --- Social Proof Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.testimonial .stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial .author {
    margin-top: 15px;
    font-weight: 600;
    color: #fff;
}

/* --- Final CTA Section --- */
.final-cta-section {
    background: var(--primary-color);
}

.final-cta-section h2, .final-cta-section p {
    color: #fff;
}

.final-cta-section p {
    opacity: 0.9;
}

.final-cta {
    background: #fff;
    color: var(--primary-color);
    margin: 20px 0;
}

.final-cta:hover {
    background: #e2e6ea;
    color: var(--primary-color);
}

.final-guarantee {
    color: #fff;
    opacity: 0.9;
}

/* --- Footer --- */
.main-footer {
    background-color: #000;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Video Styling --- */
.responsive-video {
    width: 100%;
    max-width: 800px; /* Imposta una larghezza massima per schermi grandi */
    height: auto; /* Mantiene le proporzioni */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 20px auto 0; /* Centra il video e aggiunge spazio sopra */
    display: block; /* Necessario per centrare con margin auto */
}

/* --- Animations on Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */

/* Default (Mobile) Styles for Nav CTA */
.nav-cta-text {
    display: none;
}
.nav-cta-icon {
    display: inline-block;
    font-size: 1.1rem;
}
.nav-cta {
    padding: 10px 12px; /* Padding ridotto per il solo bottone icona */
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .feature-item, .feature-item.reverse {
        flex-direction: column;
        text-align: center;
    }
}

/* Desktop Styles for Nav CTA */
@media (min-width: 769px) {
    .nav-cta-text {
        display: inline-block;
    }
    .nav-cta-icon {
        display: none;
    }
    .nav-cta {
        padding: 10px 25px; /* Padding originale per il bottone con testo */
    }
}
