/* RESET E BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    /* SFONDO BLU PROFONDO */
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #172554 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
}

.status-dot {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 600;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* NUOVO: Badge Oro per la sezione Evento */
.badge-gold {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: white;
}

.text-highlight {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto;
}

/* CARDS */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 40px 8%;
}

.card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    flex: 1 1 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.5);
}

.card.highlight {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.8), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.icon { font-size: 2rem; margin-bottom: 15px; }

h3 { color: white; margin-bottom: 10px; font-size: 1.3rem; }
.card p { font-size: 0.95rem; color: #cbd5e1; }

/* VIDEO SECTIONS */
.video-section {
    padding: 60px 8%;
    text-align: center;
}

/* NUOVO: Sfondo specifico per far risaltare il secondo video */
.experience-section {
    padding-top: 40px;
    padding-bottom: 80px;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.2) 0%, transparent 70%); 
}

.video-section h2 { font-size: 2.2rem; margin-bottom: 10px; color: white; }
.video-section p { margin-bottom: 40px; color: #94a3b8; }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* NUOVO: Elementi del divisore centrale */
.divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 10%;
    margin: 20px 0;
    opacity: 0.6;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #94a3b8, transparent);
    flex: 1;
    max-width: 200px;
}

.divider-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

/* NUOVO: Testo Urgenza Evento */
.urgent-text {
    color: #fbbf24 !important; /* Giallo oro */
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA & BUTTON */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to top, #020617, transparent);
}

.btn-main {
    display: inline-block;
    text-decoration: none;
    background: white;
    color: #0f172a;
    padding: 16px 40px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

footer {
    text-align: center;
    padding: 30px;
    color: #475569;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    nav { padding: 20px; }
    .video-section h2 { font-size: 1.8rem; }
}
/* ===== CALCOLATORE FINANZIARIO ===== */
.calc-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 20px;
    cursor: pointer;
    max-width: 1000px;
    margin: 0 auto;
    transition: background 0.2s, border-color 0.2s;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.calc-accordion-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.5);
}

.calc-accordion-btn.open {
    border-radius: 20px 20px 0 0;
    border-bottom-color: transparent;
}

.calc-acc-left { flex: 1; text-align: left; }

.calc-acc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.calc-acc-sub {
    font-size: 0.82rem;
    color: #60a5fa;
    margin-top: 4px;
    font-style: italic;
}

.calc-chevron {
    font-size: 22px;
    color: #60a5fa;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.calc-accordion-btn.open .calc-chevron { transform: rotate(180deg); }

.calc-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.calc-accordion-body.open { max-height: 900px; }

.calc-inner { padding: 28px; }

.calc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(15, 23, 42, 0.5);
    padding: 4px;
    border-radius: 12px;
}

.calc-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    transition: all 0.15s;
}

.calc-tab.active {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
}

.calc-panel { display: none; }
.calc-panel.active { display: block; }

.calc-field { margin-bottom: 20px; }

.calc-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.calc-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.15s;
}

.calc-input:focus { border-color: rgba(96, 165, 250, 0.5); }

.calc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #1e3a8a;
    transition: transform 0.15s;
}

.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-slider::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #1e3a8a;
}

.calc-slider-val {
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
    min-width: 28px;
    text-align: right;
}

.calc-result-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 4px;
}

.calc-result-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.calc-result-label {
    font-size: 11px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.calc-result-val {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.calc-result-loss {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: #f87171;
    font-weight: 500;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.asset-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.15s;
}

.asset-card:hover { border-color: rgba(96, 165, 250, 0.3); }

.asset-name {
    font-size: 10px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.asset-val {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 3px;
}

.asset-pct { font-size: 12px; font-weight: 600; }
.pos { color: #4ade80; }
.neg { color: #f87171; }

@media (max-width: 768px) {
    .asset-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-accordion-btn { padding: 16px 20px; }
    .calc-inner { padding: 20px; }
}
