/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --max-width: 1200px;
    --spacing: 1rem;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

section {
    padding: 4rem 0;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.nav .nav-services {
    color: var(--primary-color);
    font-weight: 600;
}

.nav .btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Dropdown Menu Styles */
.menu-item-dropdown {
    position: relative;
}

.menu-item-dropdown .has-submenu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.menu-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    margin-top: 15px;
}

.menu-item-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

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

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-hover);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: var(--bg-light);
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== HERO PRICE BOX ===== */
.hero-price {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    display: inline-block;
    margin: 2rem auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.price-main {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.price-detail {
    display: block;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.price-renewal {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===== PRICING SECTION ===== */
.pricing {
    background: var(--white);
}

.pricing .container {
    max-width: 1200px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.price-box {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.price-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.price-box.highlighted {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.price-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.package-name {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.price-amount {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.price-period {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.price-renewal-note {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.feature-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.feature-badge {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.price-features {
    margin-bottom: 2rem;
}

.price-features h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.price-features ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.price-features ul li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-light);
}

.price-features ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 900;
    font-size: 1.1rem;
}

.price-features ul.not-included li {
    opacity: 0.7;
}

.price-features ul.not-included li::before {
    content: '✗';
    color: #ef4444;
}

.price-footer {
    margin-top: 2rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.pricing-note-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: center;
}

.pricing-note-box h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.pricing-note-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.pricing-note-box p:last-child {
    margin-bottom: 0;
}

/* ===== DEMO SECTION ===== */
.demo {
    background: var(--bg-light);
}

.demo-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

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

.demo-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.demo-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.demo-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.demo-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FAQ SECTION ===== */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-dark);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

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

.contact-form .btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.1rem;
    padding: 1.2rem;
}

.contact-form .btn:hover {
    background: var(--primary-hover);
}

.form-privacy {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Redirect Box */
.redirect-box {
    max-width: 700px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    color: var(--white);
    text-align: center;
    animation: slideDown 0.4s ease-out;
}

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

.redirect-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.redirect-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.redirect-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.redirect-buttons .btn {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.redirect-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.redirect-note {
    margin-top: 1rem;
    opacity: 0.9;
}

.redirect-note small {
    font-size: 0.95rem;
}

/* Demo CTA Box */
.demo-cta-box {
    max-width: 600px;
    margin: 3rem auto 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
    color: var(--white);
    text-align: center;
}

.demo-cta-box h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.demo-cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-size: 1.1rem;
}

.demo-cta-box .btn {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.demo-cta-box .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Remove old demo/preventivo form styles as they're not needed */

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

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-content a {
    color: var(--white);
    text-decoration: underline;
}

.footer-content a:hover {
    opacity: 0.8;
}

/* ===== GDPR COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__content {
    max-width: 960px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.35);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent__text {
    flex: 1 1 auto;
}

.cookie-consent__content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent__categories {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cookie-consent__category strong,
.cookie-consent__category small {
    display: block;
}

.cookie-consent__category small {
    color: rgba(248, 250, 252, 0.75);
    margin-top: 0.25rem;
}

.cookie-consent__category input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.cookie-consent__category--locked {
    opacity: 0.88;
}

.cookie-consent__content a {
    color: #93c5fd;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-self: flex-end;
}

.cookie-consent__actions .btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    
    .nav .btn-sm {
        margin-top: 0.5rem;
    }
    
    /* Mobile Submenu Styles */
    .menu-item-dropdown {
        width: 100%;
    }
    
    .menu-item-dropdown .has-submenu {
        justify-content: center;
        cursor: pointer;
    }
    
    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        border-left: 3px solid var(--primary-color);
        background: var(--bg-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-item-dropdown.mobile-open .submenu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .submenu a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
        text-align: left;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .price-main,
    .price-amount {
        font-size: 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .price-box {
        padding: 2rem 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .package-name {
        font-size: 1.5rem;
    }
    
    .pricing-note-box {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .cookie-consent {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .cookie-consent__content {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .cookie-consent__category {
        align-items: flex-start;
    }

    .cookie-consent__actions {
        width: 100%;
        flex-direction: column;
        align-self: stretch;
    }

    .cookie-consent__actions .btn {
        width: 100%;
        text-align: center;
    }
    
    section {
        padding: 3rem 0;
    }
}
