/* 
Investing Roma 2025 - Custom Styles
Professional financial event landing page styling
*/

:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --gradient-hero: rgba(0, 0, 0, 0.7);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    background: rgba(0, 102, 204, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-logo {
    height: 40px;
    width: 150px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: url('../images/hero-background.jpg?v=2') center/cover no-repeat;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 140px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--white);
    padding-right: 2rem;
}

.hero-row {
    min-height: calc(100vh - 150px);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-location {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-info {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.event-info .badge {
    font-size: 0.9rem !important;
}

.hero-title {
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


.hero-icons {
    display: flex;
    gap: 1rem;
}

.icon-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

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

.hero-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.3rem;
}

/* Registration Card */
.registration-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

/* Hero Registration Form Modern */
.hero-registration-form-container {
    max-width: 450px;
    margin: 0 auto;
}

.hero-registration-form-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-field {
    margin-bottom: 1rem;
}

.form-input,
.form-select-modern {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(51, 51, 51, 0.7);
    font-weight: 400;
}

.form-input:focus,
.form-select-modern:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.form-select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-input {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: #ff6600;
}

.checkbox-label {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
}

.privacy-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.privacy-link:hover {
    color: white;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.submit-button:hover {
    background: #e55500;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

/* Main Registration Form Container */
.main-registration-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.main-registration-form-container .submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-registration-form-container .submit-button:hover {
    background: #e55500;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.checkbox-label-dark {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
}

.privacy-link-dark {
    color: white;
    text-decoration: underline;
}

.privacy-link-dark:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Registration CTA Section with Background */
.bg-primary {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/conference-speaker-background.jpg') center/cover no-repeat !important;
    position: relative;
}

/* Event Info Styling */
.event-info-detailed {
    font-size: 1.1rem;
}

.event-info-detailed i {
    color: white;
    width: 20px;
}

/* Location Section */
.location-section {
    background: url('../images/palazzo-location.jpg') center/cover no-repeat;
    background-attachment: fixed;
    background-size: 110% auto;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 6rem 0;
    position: relative;
    min-height: 80vh;
    overflow: hidden;
}

/* Mobile version with vertical image */
@media (max-width: 768px) {
    .location-section {
        background: url('../images/palazzo-mobile.png') center/cover no-repeat;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

.location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    pointer-events: none;
}

.location-section .container {
    position: relative;
    z-index: 2;
}

.location-overlay {
    width: 100%;
    height: 100%;
}

.location-feature {
    padding: 1rem;
}

.location-feature i {
    color: white;
    opacity: 0.9;
}

.location-feature h5 {
    color: white;
    margin: 1rem 0 0.5rem 0;
}

.location-feature p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.min-vh-50 {
    min-height: 50vh;
}

.location-details i {
    color: white;
}

.location-details h5 {
    color: white;
    font-weight: 600;
}

.location-details p {
    color: rgba(255, 255, 255, 0.9);
}

.registration-form .form-control,
.registration-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.registration-form .form-control:focus,
.registration-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff4500 0%, #e63900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Partner Logos */
.partners-grid {
    margin-top: 3rem;
}

.partner-logo-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.main-partner-logo {
    max-height: 150px;
    max-width: 100%;
}

/* Speakers Section */
.speakers-grid {
    margin-top: 3rem;
}

.speaker-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.speaker-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
}

.speaker-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Schedule Section */
.room-navigation {
    margin-bottom: 3rem;
}

.room-btn {
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.room-btn:hover {
    transform: translateY(-3px);
}

.room-schedule {
    display: none;
}

.room-schedule.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.session-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.session-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.session-title {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Benefits Section */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    background: var(--gradient-primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-content h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--text-light);
    margin: 0;
}

/* Event Details */
.detail-item {
    padding: 1rem;
}

.detail-item i {
    color: var(--accent-color);
}

/* Exhibitors Logos */
.exhibitors-grid {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(99, 125, 255, 0.1);
}

.exhibitors-logos {
    width: 100%;
    height: auto;
    display: block;
}

/* Partner Logos */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    min-width: 90px;
    padding: 0.3rem;
}

.partner-logo img {
    max-height: 35px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--text-dark) !important;
}

footer h5 {
    color: var(--accent-color);
}

footer ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-registration-card {
        margin-top: 2rem;
    }
    
    .registration-card {
        margin-top: 3rem;
    }
    
    .speaker-image {
        width: 100px;
        height: 100px;
    }
    
    .speaker-name {
        font-size: 0.8rem;
    }
    
    .partner-logo-card {
        height: 100px;
        padding: 1rem;
    }
    
    .session-card {
        padding: 1rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .registration-card {
        padding: 1.5rem;
    }
    
    .room-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll to Top Animation */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
