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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: #333;
    min-height: 100vh;
}

/* HEADER / NAVBAR */

header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0698d8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0698d8;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* HERO */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    color: #0698d8;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* BUTTONS */

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #0698d8;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: #0582bd;
}

.btn-secondary {
    background: white;
    color: #0698d8;
    border: 2px solid #0698d8;
}

.btn-secondary:hover {
    background: #0698d8;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CATEGORIES */

.categories {
    background: white;
    padding: 1rem 1.5%;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0698d8;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.category-card {
    flex: 1 1 300px;
    background: linear-gradient(135deg, #006a99 0%, #02b6ed 50%, #006a99 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* PRODUCTS */

.products {
    padding: 4rem 5%;
    background: #f8f9fa;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0698d8;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: white;
    border: 2px solid #0698d8;
    color: #0698d8;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0698d8;
    color: white;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: flex-start;
    align-items: stretch;
}

.product-card {
    flex: 0 1 320px;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #006a99 0%, #02b6ed 50%, #006a99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info .btn {
    margin-top: 0.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    color: #02b6ed;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: auto;
}

/* CONTACT SECTION */

.contact-section {
    background: linear-gradient(135deg, blue 0%, #02b6ed 50%, blue 100%);
    padding: 4rem 5%;
    color: white;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, blue 0%, #02b6ed 50%, blue 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.3),
            0 1px 8px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.4),
            0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* FOOTER */

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 5%;
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #0698d8;
}

/* GENERIC */

section {
    scroll-margin-top: 100px;
}

/* SLIDER IMMAGINI NEL MODALE */

.product-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* FIX: gestione visibilità slide */
.slider-slide {
    display: none;
}

.slider-slide.active {
    display: block;
}

.slider-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s;
}

.slider-image:hover {
    opacity: 0.9;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 152, 216, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.slider-arrow:hover {
    background: rgba(6, 152, 216, 1);
    transform: translateY(-50%) scale(1.15);
}

.slider-arrow-left {
    left: 10px;
}

.slider-arrow-right {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #0698d8;
    width: 12px;
    height: 12px;
}

/* ZOOM IMMAGINI A SCHERMO INTERO */

.image-zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 20px;
}

.image-zoom-overlay.active {
    display: flex;
}

.image-zoom-overlay img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    animation: zoomIn 0.3s ease;
}

.zoom-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(6, 152, 216, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 3001;
}

.zoom-close-btn:hover {
    background: rgba(6, 152, 216, 1);
    transform: scale(1.1);
}

.zoom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 152, 216, 0.9);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 3001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.zoom-arrow:hover {
    background: rgba(6, 152, 216, 1);
    transform: translateY(-50%) scale(1.15);
}

.zoom-arrow-left {
    left: 20px;
}

.zoom-arrow-right {
    right: 20px;
}

.zoom-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 152, 216, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 3001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* HINT ZOOM */

.zoom-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 152, 216, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.slider-image:hover + .zoom-hint {
    opacity: 1;
}

/* ANIMATIONS */

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 5%;
        background: white;
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .category-card {
        flex: 1 1 100%;
    }

    .zoom-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .zoom-arrow-left {
        left: 10px;
    }

    .zoom-arrow-right {
        right: 10px;
    }

    .zoom-close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
