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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
header {
    background: #3498db;
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Navigation */
nav {
    background: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background: #3498db;
}

/* Sections */
.section {
    background: white;
    margin: 2rem 0;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.product-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin: 1rem 0;
    border-radius: 5px;
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #e9ecef;
}

/* Placeholder per immagini mancanti */
.image-placeholder {
    width: 100%;
    height: 200px;
    background: #3498db;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 1rem 0;
    border: 1px solid #2980b9;
}

/* Specifiche tecniche */
.tech-specs {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-line;
    border-left: 4px solid #3498db;
    border: 1px solid #e9ecef;
    display: none;
}

/* Sezione contatti */
.contact-info {
    background: #3498db;
    color: white;
    padding: 2.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-info h2 {
    color: white;
    border-bottom: 3px solid white;
}

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

.contact-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-item h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
}

.contact-item p {
    font-size: 1rem;
}

.contact-item a {
    color: white;
    text-decoration: underline;
}

/* Testo */
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* Box evidenziati */
.highlight {
    background: #e8f4fd;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    margin: 1.5rem 0;
    border: 1px solid #bee5eb;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Pulsanti */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.btn:hover {
    background: #2980b9;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    background: #2980b9;
}

.scroll-to-top.visible {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        padding: 1rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        margin: 5px 0;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .tech-specs {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* Animation semplici e discrete */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading-animation {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.loading-animation:nth-child(1) { animation-delay: 0.1s; }
.loading-animation:nth-child(2) { animation-delay: 0.2s; }
.loading-animation:nth-child(3) { animation-delay: 0.3s; }
.loading-animation:nth-child(4) { animation-delay: 0.4s; }
