/* ==========================================
   RESET & VARIABILI (Velocità ed Efficienza)
   ========================================== */
:root {
    --primary-blue: #0056b3;
    --accent-orange: #ff8000;
    --bg-light: #f4f7f6;
    --text-dark: #222222;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================
   HEADER & LOGO CENTRATO
   ========================================== */
header {
    background-color: var(--white);
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
}

.logo-container {
    display: inline-block;
}

.logo-text-blue {
    color: var(--primary-blue);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text-orange {
    color: var(--accent-orange);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ottimizzazione per il logo in formato immagine */
.logo-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* ==========================================
   NAVBAR & MENU A TENDINA (STILE BASE PC)
   ========================================== */
.navbar {
    background-color: var(--primary-blue);
    position: relative;
    width: 100%;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-links li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Nascondiamo i controls mobile di default su PC */
.menu-toggle, .hamburger-menu {
    display: none;
}

/* ==========================================
   CAROSELLO SCORREVOLE AUTOMATICO (PERFETTO)
   ========================================== */
.carousel-container {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    height: 400px; /* Altezza del contenitore */
    width: 90%;    /* Larghezza dello schermo del telefono */
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 auto;
}

/* ==========================================
   STRUTTURA CONTENUTI
   ========================================== */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-text h1 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-text p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #444;
}

/* Bottone Ordina Ora */
.cta-wrapper {
    text-align: center;
    margin: 2.5rem 0 1rem 0;
}

.btn-ordina {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 128, 0, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-ordina:hover {
    background-color: #e07000;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 0.5rem 1rem 1.5rem 1rem;
    background-color: transparent;
    color: #666;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================
   RESPONSIVE: CONFIGURAZIONE SMARTPHONE
   ========================================== */
@media (max-width: 768px) {
    .logo-text-blue, .logo-text-orange {
        font-size: 2.2rem;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        padding: 1rem;
        box-sizing: content-box;
    }

    .hamburger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--white);
        border-radius: 3px;
        transition: 0.3s;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-blue);
    }

    .nav-links li {
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
}

/* Configurazione per schermi grandi (PC) */
@media (min-width: 769px) {
    .carousel-container {
        height: 400px;
    }
}

/* ==========================================
   PULSANTE FLUTTUANTE WHATSAPP (VISIBILE OVUNQUE)
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}
