:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #ff6f00;
    --light-color: #f8f9fc;
    --dark-color: #0a0a1a;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    --gradient-accent: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 50px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #f8f9fc;
    padding-top: 76px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* === NAVBAR === */
.navbar-custom {
    background: rgba(26, 35, 126, 0.98) !important;
    backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: white !important;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: #ff6f00;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 6px;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.85rem;
}

.dropdown-menu {
    background: rgba(26, 35, 126, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
    margin-top: 8px;
}

.dropdown-item {
    color: rgba(255,255,255,0.85);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.dropdown-item i {
    width: 20px;
    color: #ff6f00;
}

/* === MASTHEAD === */
.masthead {
    background: linear-gradient(160deg, #0a0a2e 0%, #1a237e 40%, #0d47a1 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.masthead::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,111,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.masthead::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13,71,161,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.masthead-content {
    position: relative;
    z-index: 2;
}

.masthead h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #90caf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.masthead .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 30px;
}

.masthead .btn-light {
    background: white;
    color: #1a237e;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
}

.masthead .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255,111,0,0.3);
    background: #ff6f00;
    color: white;
}

/* === FEATURES === */
.features-section {
    padding: 80px 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: #1a237e;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(26,35,126,0.08) 0%, rgba(13,71,161,0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #1a237e;
}

/* === CALCULATOR CARDS === */
.calculator-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid #eef2f7;
}

.calculator-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.calculator-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.calculator-card .card-body {
    padding: 25px;
}

.calculator-card .category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #1a237e;
    color: white;
}

.calculator-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.calculator-card .card-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.calculator-card .btn {
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
}

.calculator-card .btn-finanze {
    background: #1a237e;
    color: white;
}

.calculator-card .btn-finanze:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,35,126,0.3);
}

.calculator-card .btn-salute {
    background: #2e7d32;
    color: white;
}

.calculator-card .btn-salute:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,125,50,0.3);
}

.calculator-card .btn-legale {
    background: #e65100;
    color: white;
}

.calculator-card .btn-legale:hover {
    background: #bf360c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,81,0,0.3);
}

/* === CAROUSEL === */
.carousel-container {
    padding: 60px 0 80px;
    background: var(--light-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: var(--shadow-sm);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* === NEWSLETTER === */
.newsletter-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
}

.newsletter-form .form-control {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form .form-control:focus {
    border-color: #ff6f00;
    box-shadow: 0 0 0 3px rgba(255,111,0,0.2);
}

.newsletter-form .btn {
    background: #ff6f00;
    border: none;
    padding: 14px 30px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,111,0,0.4);
}

/* === FOOTER === */
footer {
    background: #0a0a1a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer h4, footer h5 {
    color: white;
    font-weight: 700;
}

footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff6f00;
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    background: #ff6f00;
    color: white;
    transform: translateY(-3px);
}

footer .divider {
    border-color: rgba(255,255,255,0.05);
    margin: 30px 0;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .masthead h1 {
        font-size: 2.4rem;
    }
    
    .navbar-custom {
        padding: 10px 0;
    }
    
    .dropdown-menu {
        background: rgba(26,35,126,0.98);
        padding: 8px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
    
    .masthead {
        padding: 60px 0 50px;
    }
    
    .masthead h1 {
        font-size: 1.8rem;
    }
    
    .masthead .lead {
        font-size: 1rem;
    }
    
    .features-section {
        padding: 50px 0;
    }
    
    .carousel-container {
        padding: 40px 0 60px;
    }
}

/* === UTILITY === */
.text-gradient {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(26,35,126,0.3);
    color: white;
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255,111,0,0.3);
    color: white;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* === TABLES === */
.table-custom {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-custom thead {
    background: var(--gradient-primary);
    color: white;
}

.table-custom th {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-custom td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.table-custom tbody tr:hover {
    background: #f8f9fc;
}

/* === CARDS DETAIL === */
.card-detail {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
    height: 100%;
}

.card-detail:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-detail .card-logo {
    max-height: 50px;
    margin-bottom: 15px;
}

.card-detail .pros-cons {
    background: var(--light-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 15px 0;
}

.card-detail .pros-cons ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.card-detail .pros-cons li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.card-detail .pro {
    color: #2e7d32;
}

.card-detail .con {
    color: #c62828;
}

.card-detail .promo-code {
    background: #fff3e0;
    border-left: 4px solid #ff6f00;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin: 10px 0;
}

/* === CALCULATOR FORM === */
.calculator-form .form-control,
.calculator-form .form-select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid #eef2f7;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.calculator-form .form-control:focus,
.calculator-form .form-select:focus {
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.calculator-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 6px;
}

.result-box {
    background: var(--light-color);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-top: 25px;
    border: 2px solid #1a237e;
}

.result-box .result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
}
