/* MIKOMAX BRAND COLORS - SUGAR THEME
   Primary: #ffffff (Crystal White)
   Secondary: #f8f9fa (Sugar Powder Grey)
   Accent: #5a7d9a (Steel Blue - for clarity and trust)
   Text: #333333 (Dark Grey)
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Grigio chiarissimo "polvere di zucchero" */
}

/* --- HEADER & NAVIGATION --- */
header {
    background: #ffffff; /* Bianco puro */
    color: #333;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e9ecef;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- STILE LOGO UNIVERSALE --- */
.logo-container {
    display: flex !important;
    align-items: center;
    gap: 12px;
    height: 60px;
    text-decoration: none;
}

.logo-img {
    height: 45px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain;
    filter: none !important; /* Rimosso eventuali filtri per visibilità su bianco */
}

.logo-text {
    font-weight: bold;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #333; /* Testo scuro su header bianco */
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #5a7d9a; /* Blu acciaio al passaggio del mouse */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #333;
    margin-bottom: 4px;
    border-radius: 2px;
}

/* --- HERO SECTION CON VIDEO --- */
.hero {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Leggermente più chiaro per lo zucchero */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background-color: #5a7d9a; /* Blu Acciaio */
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    border-color: white;
    transform: scale(1.05);
}

/* --- SEZIONE CHI SIAMO --- */
.about-section {
    background-color: #ffffff;
    padding: 100px 20px;
}

h2 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 3px solid #5a7d9a;
    display: inline-block;
    padding-bottom: 5px;
}

.subtitle {
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

.highlight-card {
    background: #f8f9fa;
    padding: 30px;
    border-left: 6px solid #5a7d9a;
    margin-top: 25px;
    border-radius: 4px;
}

/* Box Statistiche */
.stat-box {
    background: #5a7d9a;
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
}

/* --- GRIGLIA PRODOTTI & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- CONTATTI & FOOTER --- */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background: #25d366;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

footer {
    background: #e9ecef; /* Grigio chiaro industriale */
    color: #495057;
    padding: 50px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #dee2e6;
}

footer a {
    color: #333;
    text-decoration: none;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: #ffffff;
        padding: 30px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav-links.active { display: flex; }

    .menu-toggle { display: flex; }

    .logo-container { gap: 8px; }
    .logo-img { height: 35px !important; }
    .logo-text { font-size: 1.2rem; }
}

/* --- COOKIE BANNER --- */
.cookie-container {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px;
    transition: bottom 0.5s ease-in-out;
}

.cookie-container.show { bottom: 0; }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-btn.accept {
    background: #5a7d9a;
    color: white;
}

.cookie-btn.reject {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}
/* Stile per la freccia di ritorno */
.back-arrow {
    text-decoration: none;
    color: #333; /* Grigio scuro come il testo zucchero */
    font-size: 1.5rem;
    padding-right: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.back-arrow:hover {
    transform: translateX(-5px); /* Effetto movimento al passaggio */
    color: #5a7d9a; /* Blu acciaio */
}

/* Nascondi la freccia nella Home (non serve) */
.home-page .back-arrow {
    display: none;
}