/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #000;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
}

.btn-autoscout {
    background: #F5F200;
    color: #000;
    border: 2px solid #F5F200;
}

.btn-autoscout:hover {
    background: transparent;
    color: #F5F200;
}

.btn-full {
    width: 100%;
}

.review-btn {
    max-width: 100%;
    margin: 0 auto;
}
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ccc;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Hero Section with Carousel */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 2rem;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

.tagline {
    display: block;
    font-style: italic;
    opacity: 0.9;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    color: #ccc;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.section-header p {
    color: #ccc;
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    color: #fff;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #ccc;
    line-height: 1.8;
}

.brands-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.brand-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.brand-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-item span {
    font-weight: 500;
    color: #fff;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #ccc;
    font-weight: 500;
}

/* Services Section */
.services {
    background: #000;
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0.1);
    transition: filter 0.3s ease;
}

.service-card:hover .service-icon {
    filter: grayscale(0);
}

.service-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.service-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Inventory Section */
.inventory {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: #fff;
}

/* Instagram Embed Section */
.instagram-embed-section {
    margin-bottom: 3rem;
}

.instagram-embed-section h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
}

.instagram-embed-section p {
    color: #ccc;
    text-align: center;
    margin-bottom: 2rem;
}

.instagram-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.instagram-container iframe {
    border-radius: 10px;
    max-width: 100%;
    background: #fff;
}

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

.autoscout-section {
    text-align: center;
    padding-bottom: 3rem;
}

.autoscout-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.autoscout-section p {
    color: #ccc;
    margin-bottom: 2rem;
}

/* Reviews Section */
.reviews {
    background: #000;
    color: #fff;
}

.reviews-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.google-reviews-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    overflow: hidden;
}

.reviews-widget iframe {
    border-radius: 10px;
    background: #fff;
    width: 100%;
    height: 450px;
    border: none;
}

.reviews-fallback {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.review-stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.review-text {
    color: #ccc;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-author {
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.reviews-cta {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.reviews-cta h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.reviews-cta p {
    color: #ccc;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.info-icon {
    font-size: 1.5rem;
    min-width: 40px;
    color: #fff;
}

.info-item h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #ccc;
    margin: 0;
}

.info-item a {
    color: #ccc;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #fff;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group option {
    background: #333;
    color: #fff;
}

/* Privacy Policy Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: #000;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 4px;
}

.checkbox-label {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.privacy-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #ccc;
}

/* Privacy Policy Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #fff;
    margin: 0;
}

.close {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ccc;
}

.modal-body {
    padding: 2rem;
    color: #ccc;
}

.modal-body h3 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body a {
    color: #fff;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand p {
    color: #ccc;
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

/* Notification Styles for Alerts */
.notification {
    border-radius: 10px;
    font-weight: 500;
}

.notification-success {
    background: #10B981 !important;
    color: #fff !important;
}

.notification-error {
    background: #EF4444 !important;
    color: #fff !important;
}

.notification-info {
    background: #3B82F6 !important;
    color: #fff !important;
}

/* Form Validation States */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: #EF4444 !important;
}

/* Active Navigation Link */
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brands-showcase {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .reviews-fallback {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 70vh;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    .tagline {
        font-size: 1.5rem;
    }

    .service-card,
    .contact-form-container,
    .google-reviews-container,
    .reviews-cta {
        padding: 1.5rem;
    }

    .about-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .instagram-container {
        padding: 1rem;
    }

    .reviews-widget iframe {
        height: 350px;
    }

    .checkbox-label {
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 15% auto;
        width: 98%;
        max-height: 60vh;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Fix per la checkbox della privacy policy su mobile */

/* Migliora l'area cliccabile della checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Aumentato da 10px */
    margin-top: 0.5rem;
    padding: 10px; /* Aggiunto padding per area cliccabile maggiore */
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer; /* Tutta l'area diventa cliccabile */
}

.checkbox-group:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Stato checked della checkbox */
.checkbox-group input[type="checkbox"]:checked {
    background: #fff;
    border-color: #fff;
}

/* Icona di spunta personalizzata */
.checkbox-label {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    flex: 1; /* Permette al testo di espandersi */
}

/* Mobile specifico */
@media (max-width: 768px) {
    .checkbox-group {
        padding: 15px; /* Ancora più padding su mobile */
        gap: 12px;
        background: rgba(255, 255, 255, 0.03); /* Sfondo leggero per evidenziare l'area */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .checkbox-group input[type="checkbox"] {
        width: 24px; /* Ancora più grande su mobile */
        height: 24px;
        min-width: 24px; /* Previene il restringimento */
        min-height: 24px;
    }

    .checkbox-label {
        font-size: 1rem; /* Leggermente più grande su mobile */
        line-height: 1.6;
        /* Aggiunge tocco feedback */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        padding: 20px; /* Massimo padding su schermi molto piccoli */
    }

    .checkbox-group input[type="checkbox"] {
        width: 28px; /* Massima dimensione su schermi piccoli */
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .checkbox-label {
        font-size: 1.1rem;
    }
}