
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;  
    scroll-padding-top: 60px;  
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #f9fafb;
}

/* Layout base */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tipografia */
h1, h2, h3 {
    font-weight: 700;
    color: #111827;
    margin-top: 0;
}

h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e5e7eb;
    padding: 4rem 0 3rem;
}

.hero h1 {
    color: #f9fafb;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    margin-bottom: 1rem;
}

.hero-trust {
    font-size: 0.95rem;
    color: #cbd5f5;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
    background-color: #2563eb;
    color: #f9fafb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Sezioni */
.section {
    padding: 3rem 0;
}

.section:nth-of-type(odd) {
    background-color: #ffffff;
}

.section:nth-of-type(even) {
    background-color: #f3f4f6;
}

/* Cosa faccio */
.section-services h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.service-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.services-note {
    text-align: center;
    font-size: 0.95rem;
    color: #4b5563;
}

/* Come lavoro */
.section-process p {
    max-width: 720px;
}

.process-steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0 1rem;
}

.process-steps li {
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
    border-left: 3px solid #2563eb;
    padding-left: 1rem;
}

.process-steps h3 {
    margin-top: 0;
}

.process-note {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Per chi è */
.section-for-whom ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0;
}

.section-for-whom li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.section-for-whom li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563eb;
    font-size: 1.2rem;
}

/* Chi sono */
.section-about p {
    max-width: 720px;
}

/* CTA */
.section-cta {
    text-align: center;
}

.section-cta p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    margin: 1.25rem 0 0.5rem;
}

.cta-note {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background-color: #020617;
    color: #9ca3af;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    h1 {
        font-size: 2rem;
    }

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

    .section {
        padding: 2.5rem 0;
    }
}


/* Pacchetto Pilota */
.section-pilot {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.pilot-intro {
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

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

.pilot-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pilot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.pilot-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.pilot-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.pilot-features li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.pilot-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}
.pilot-price {
    text-align: center;
    margin-top: 1.5rem; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;  
    gap: 0.5rem;
}

.price-old {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    width: 100%;  
    margin-bottom: -0.2rem;
}

.price-new {
    font-size: 1.8rem;
    font-weight: 800;
    color: #dc2626;
}

.price-note {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.pilot-guarantee {
    text-align: center;
    margin: 2rem 0;
}

.guarantee-badge {
    display: inline-block;
    background: #10b981;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pilot-actions {
    text-align: center;
}

/* Responsive pilota */
@media (max-width: 640px) {
    .pilot-grid {
        grid-template-columns: 1fr;
    }
    
    .pilot-card {
        padding: 1.5rem;
    }
}

/* CTA + Form contatti */
.section-cta {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #f9fafb;
    text-align: center;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-text h2 {
    color: #f9fafb;
}

.cta-text p {
    color: #d1d5db;
}

.cta-note {
    color: #9ca3af;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-full {
    width: 100%;
}

.contact-form button:hover {
    transform: translateY(-1px);
}

/* Responsive CTA + Form */
@media (max-width: 900px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .section-cta {
        padding: 2.5rem 0;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
}
/* Navbar */
.navbar {
    background-color: #ffffff;  
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;  
    top: 0;
    z-index: 1000;  
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-menu li a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-menu li a:hover {
    color: #2563eb;
}

/* Bottone nella navbar (opzionale per risaltare) */
.navbar-cta {
    background-color: #2563eb;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem !important;
}

.navbar-cta:hover {
    background-color: #1d4ed8;
}

/* Mobile responsive per la navbar */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;  
    }
     
}


/* Flash Messages */
.flash-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000; /* Sopra la navbar */
    width: 90%;
    max-width: 600px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.flash-success {
    background-color: #d1fae5; /* Verde chiaro */
    color: #065f46; /* Verde scuro */
    border-left: 5px solid #10b981;
}

.flash-error {
    background-color: #fee2e2; /* Rosso chiaro */
    color: #991b1b; /* Rosso scuro */
    border-left: 5px solid #ef4444;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    margin-left: 1rem;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e293b; /* Scuro */
    color: #f8fafc;
    padding: 1rem 0;
    z-index: 3000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
}

.cookie-banner .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
