/* ========================================
   VARIABILI E RESET
   ======================================== */
:root {
    --primary-blue: #0A2463;
    --secondary-blue: #1E3A8A;
    --accent-orange: #FB8500;
    --accent-yellow: #FFB703;
    --dark-gray: #1A1A2E;
    --medium-gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --tech-gradient: linear-gradient(135deg, #0A2463 0%, #1E3A8A 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   HEADER
   ======================================== */
.header {
    background: var(--tech-gradient);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

/* Logo grafico accattivante */
.logo-graphic {
    position: relative;
}

.logo-circuit {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(251, 133, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(251, 133, 0, 0.6);
    }
}

.logo-circuit i {
    font-size: 2rem;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: 
        linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.3) 50%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.3) 50%, transparent 52%);
    background-size: 15px 15px;
    opacity: 0.3;
}

.logo-text h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Header Email */
.header-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.95rem;
}

.header-email i {
    color: var(--accent-orange);
}

.header-email a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-email a:hover {
    color: var(--accent-yellow);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-blue);
    flex-direction: column;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-item {
    padding: 1rem 2rem;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: var(--tech-gradient);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 183, 3, 0.2);
    border: 2px solid var(--accent-yellow);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-badge i {
    color: var(--accent-yellow);
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-feature i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.hero-feature span {
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 133, 0, 0.4);
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

/* Email info box */
.email-info {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(251, 133, 0, 0.1);
    border: 2px solid var(--accent-orange);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.email-info i {
    color: var(--accent-orange);
    font-size: 1.2rem;
}

.email-info strong {
    color: var(--primary-blue);
}

/* ========================================
   SERVIZI SECTION
   ======================================== */
.servizi {
    background: var(--light-gray);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servizio-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-orange);
}

.servizio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-yellow);
}

.servizio-icon {
    width: 70px;
    height: 70px;
    background: var(--tech-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.servizio-icon i {
    font-size: 2rem;
    color: var(--white);
}

.servizio-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.servizio-card p {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ========================================
   MARCHI SECTION
   ======================================== */
.marchi {
    background: var(--white);
}

.marchi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.marchio-card {
    background: var(--light-gray);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.marchio-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.marchio-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.marchio-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.marchio-card p {
    color: var(--medium-gray);
}

/* ========================================
   ASSISTENZA SECTION
   ======================================== */
.assistenza {
    background: var(--light-gray);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.assistenza-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(251, 133, 0, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.form-note {
    background: rgba(251, 133, 0, 0.1);
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.form-note i {
    color: var(--accent-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.form-note p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
}

.form-note strong {
    color: var(--primary-blue);
}

.form-actions {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preview-remove:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-submit {
    background: var(--tech-gradient);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 36, 99, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 36, 99, 0.4);
}

.btn-submit i {
    font-size: 1.2rem;
}

.success-message {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid #10B981;
}

.success-message i {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

/* ========================================
   CONTATTI SECTION
   ======================================== */
.contatti {
    background: var(--white);
}

.contatti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contatto-card {
    background: var(--light-gray);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--accent-orange);
}

.contatto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contatto-icon {
    width: 80px;
    height: 80px;
    background: var(--tech-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contatto-icon i {
    font-size: 2rem;
    color: var(--white);
}

.contatto-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contatto-card p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.contatto-card a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contatto-card a:hover {
    color: var(--accent-yellow);
}

/* Google Maps */
.map-container {
    margin-top: 4rem;
}

.map-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.google-map {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.footer-section h4 {
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-exp {
    font-style: italic;
    margin-top: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .header-email {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .assistenza-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-circuit {
        width: 50px;
        height: 50px;
    }
    
    .logo-circuit i {
        font-size: 1.5rem;
    }
    
    .contatti-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-primary,
    .btn-submit {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
