/* ================================================= */
/* 0. IMPOSTAZIONI DI BASE E VARIABILI (PALETTE) */
/* ================================================= */
:root {
    /* NERI E GRIGI */
    --nero-profondo: #0a0a0a; /* Sfondo principale */
    --nero-scuro: #1a1a1a;    /* Sfondo secondario (sezione alternate) */
    --bianco: #FFFFFF;
    --grigio-chiaro: #CCCCCC;
    
    /* VIOLA DINAMICO (NEON) */
    --viola-vibrante: #9A00FF; /* Colore CTA e accenti principali */
    --viola-chiaro: #b040ff;   /* Colore per hover e glow */
}

/* Reset CSS e Font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--nero-profondo);
    color: var(--grigio-chiaro);
    line-height: 1.6;
    scroll-behavior: smooth; /* Scorrimento fluido ai link interni */
}

a {
    text-decoration: none;
    color: var(--viola-vibrante);
    transition: color 0.3s ease;
}

/* ================================================= */
/* 1. CLASSI UTILITY E TESTO */
/* ================================================= */
.text-viola { color: var(--viola-vibrante); }
.text-bianco { color: var(--bianco); }
.text-grigio { color: var(--grigio-chiaro); }
.bg-dark { background-color: var(--nero-profondo); }
.bg-darker { background-color: var(--nero-scuro); }

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
    overflow: hidden;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.headline {
    font-size: 4em;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out; /* Animazione leggera all'ingresso */
    text-shadow: 0 0 15px rgba(154, 0, 255, 0.4); /* Neon effect subtle */
}
.sottotitolo {
    font-size: 1.2em;
    margin-top: 10px;
}

/* ================================================= */
/* 2. HEADER E NAVIGAZIONE */
/* ================================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px; 
    z-index: 10; 
}

/* NAV BAR */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.9); /* Sfondo quasi opaco */
    z-index: 20; 
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--viola-vibrante) !important;
}

.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-transform: uppercase;
    color: var(--bianco);
}
.nav-links a:hover {
    color: var(--viola-vibrante);
    text-shadow: 0 0 8px var(--viola-vibrante); /* Effetto neon al passaggio */
}

/* ================================================= */
/* 3. CAROSELLO E OVERLAY DINAMICO */
/* ================================================= */
.hero-media-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Nascosto inizialmente */
    transition: opacity 1.5s ease-in-out; /* Transizione fade */
}

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

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* Filtri per l'estetica NERO/VIOLA: BN, scuro, e hint viola */
    filter: grayscale(100%) brightness(50%) hue-rotate(300deg); 
    
    transform: scale(1.05); 
    transition: transform 15s ease-out; /* Animazione di zoom sottile */
}

/* LIVELLO DI OVERLAY PER SCURIRE E APPLICARE IL FILTRO VIOLA */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Tra l'immagine e il contenuto */
    background-color: rgba(0, 0, 0, 0.5); /* Base nera per l'oscuramento */
    
    /* EFFETTO GLOW VIOLA DINAMICO */
    box-shadow: inset 0 0 100px rgba(154, 0, 255, 0.4); 
    animation: pulseGlow 15s infinite alternate ease-in-out;
}
@keyframes pulseGlow {
    0% { opacity: 0.6; }
    100% { opacity: 0.8; } /* L'overlay pulsa leggermente */
}

/* Contenuto Hero (Testo, CTA) */
.hero-content {
    position: relative; 
    z-index: 15; 
    padding: 20px;
}

/* ================================================= */
/* 4. BOTTONI (CTA) E INTERAZIONE */
/* ================================================= */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: 30px;
}

.btn-viola {
    background-color: var(--viola-vibrante);
    color: var(--bianco);
    box-shadow: 0 0 15px rgba(154, 0, 255, 0.5); 
}

.btn-viola:hover {
    background-color: var(--viola-chiaro);
    box-shadow: 0 0 25px var(--viola-chiaro); 
    transform: translateY(-2px); 
}

.btn-viola-outline {
    background-color: transparent;
    border: 2px solid var(--viola-vibrante);
    color: var(--viola-vibrante);
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.btn-viola-outline:hover {
    background-color: var(--viola-vibrante);
    color: var(--bianco);
    box-shadow: 0 0 10px var(--viola-vibrante);
}

/* ================================================= */
/* 5. BRAND STORY E PRODOTTI */
/* ================================================= */
/* Sezione Brand Story (ID: #vision) */
.brand-story {
    background-color: var(--nero-scuro); /* Sfondo leggermente più chiaro del body per creare stacco */
    padding: 100px 0; /* Aumentiamo il padding per dare più respiro */
    text-align: center; /* Assicura che l'H2 sia centrato se non lo era */
}
.newsletter {
    text-align: center; /* Assicura che l'H2 sia centrato se non lo era */
}
.story-container {
    max-width: 800px;
    margin: 0 auto;
}
.story-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-top: 30px;
}
.dynamic-border {
    border: 2px solid var(--viola-vibrante);
    box-shadow: 0 0 10px rgba(154, 0, 255, 0.7);
}

.product-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    width: 300px; 
    background-color: var(--nero-scuro);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(154, 0, 255, 0.1); 
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

/* EFFETTO DINAMICO HOVER SULLE CARD */
.dynamic-hover:hover {
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 10px 30px rgba(154, 0, 255, 0.4); 
    border-color: var(--viola-vibrante);
}

/* ================================================= */
/* 6. SOCIAL PROOF, NEWSLETTER E FOOTER */
/* ================================================= */
.testimonial-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}
blockquote {
    max-width: 400px;
    border-left: 3px solid var(--viola-vibrante);
    padding-left: 20px;
    font-style: italic;
    font-size: 1.1em;
}
cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
}
.instagram-feed {
    text-align: center;
    margin-top: 50px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.input-field {
    padding: 15px;
    width: 350px;
    border: 1px solid var(--grigio-chiaro);
    background-color: var(--nero-scuro);
    color: var(--bianco);
    font-size: 1em;
}

/* Focus Dinamico per l'Input */
.dynamic-focus:focus {
    outline: none;
    border-color: var(--viola-vibrante);
    box-shadow: 0 0 10px rgba(154, 0, 255, 0.7);
}

.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(154, 0, 255, 0.2);
}
.footer-links a {
    margin: 0 15px;
    color: var(--grigio-chiaro);
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--viola-vibrante);
    text-shadow: 0 0 5px var(--viola-vibrante);
}
/* Aggiungi qui lo stile per le icone social se le inserisci */

/* ================================================= */
/* 7. MEDIA QUERIES (RESPONSIVE) */
/* ================================================= */
@media (max-width: 768px) {
    .headline {
        font-size: 2.5em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .product-grid {
        flex-direction: column;
        align-items: center;
    }
    .product-card {
        width: 90%;
    }
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .input-field {
        width: 90%;
        margin-bottom: 15px;
    }
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; /* Nasconde i link di navigazione su mobile per semplicità */
    }
}
section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; 
}
/* Assicura che la card abbia una dimensione definita */
.product-card {
    /* Esempio: larghezza fissa o massima */
    width: 300px; 
}

/* 1. Il contenitore ha bisogno di overflow: hidden per nascondere le slide fuori vista */
.carousel-container1 {
    position: relative; 
    overflow: hidden; 
    width: 100%; 
    /* Aiuta a mantenere l'aspect ratio dell'immagine */
    aspect-ratio: 1 / 1; 
}

/* 2. Nasconde TUTTE le slide per impostazione predefinita */
.carousel-slide1 {
    display: none; 
    width: 100%;
}

/* 3. Mostra SOLO la slide con la classe 'active' */
.carousel-slide1.active {
    display: block; 
}

/* 4. Assicura che l'immagine riempia la slide */
.carousel-slide1 img {
    width: 100%;
    display: block;
}

.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: #a020f0;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

header {
    position: sticky;
    top: 0;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: bold;
}

header nav a:hover {
    color: rgba(154, 0, 255, 0.7);
    text-decoration: none;
}