/* ==================================================
   HOSPITECH CRM - MAIN STYLESHEET
   Version: 1.0
   Author: Hospitech - Hotel Management Srls
   ================================================== */

/* ==================================================
   1. CSS VARIABLES & ROOT
   ================================================== */
:root {
    --primary-blue: #2e4a8b;
    --primary-blue-dark: #1e3a6b;
    --primary-blue-light: #4e6aab;
    --accent-orange: #ff6b35;
    --accent-green: #10b981;
    --dark-color: #1f2937;
    --light-bg: #fef7f3;
    --card-bg: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2e4a8b 0%, #1e3a6b 100%);
}

/* ==================================================
   2. GLOBAL STYLES & RESET
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    background: #fafafa;
}

/* Typography - Uniform paragraph styling */
p {
    font-size: 1.125rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.7 !important;
}

.lead {
    font-size: 1.125rem !important;
}

.text-muted {
    font-size: 1.125rem !important;
}

/* ==================================================
   3. NAVIGATION & HEADER
   ================================================== */
.navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding: 12px 0;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.navbar-brand img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(46, 74, 139, 0.08);
    color: var(--primary-blue);
}

.btn-accedi {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-accedi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 74, 139, 0.3);
    color: white;
}

/* ==================================================
   4. HERO SLIDER
   ================================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 74, 139, 0.85) 0%, rgba(30, 58, 107, 0.75) 100%);
}

.slide-1 {
    background-image: url('images/slide1.jpg');
}

.slide-2 {
    background-image: url('images/slide2.jpg');
}

.slide-3 {
    background-image: url('images/slide3.jpg');
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out;
    letter-spacing: -1px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out;
}

.slide-content p {
    font-size: 1.125rem !important;
    margin-bottom: 40px;
    animation: slideInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
    opacity: 0.95;
    line-height: 1.7 !important;
}

.slide-content .btn-hero {
    background: white;
    color: var(--primary-blue);
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.slide-content .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,255,255,0.3);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 40px;
    border-radius: 20px;
}

/* ==================================================
   5. FEATURE SECTIONS
   ================================================== */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.feature-box {
    background: white;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(46, 74, 139, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon-wrapper i {
    font-size: 28px;
    color: var(--primary-blue);
}

.feature-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-box p {
    color: #6b7280;
    line-height: 1.7 !important;
    margin-bottom: 20px;
    font-size: 1.125rem !important;
}

.feature-check {
    color: var(--accent-green);
    margin-right: 8px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    color: #6b7280;
    display: flex;
    align-items: center;
}

/* ==================================================
   6. VISION & BENEFITS
   ================================================== */
.vision-card {
    background: white;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.vision-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.vision-card h5 {
    color: var(--primary-blue);
}

.vision-card p {
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
}

/* Benefits Section */
.benefit-item {
    display: flex;
    align-items: start;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(46, 74, 139, 0.1) 0%, rgba(46, 74, 139, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.benefit-item p {
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
}

/* ==================================================
   7. PARTNER SECTION WITH CAROUSEL
   ================================================== */
#partner {
    background: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.partners-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.partners-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.partner-slide {
    flex: 0 0 auto;
    width: 200px;
}

#partner .partner-card {
    display: block;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#partner .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    background: #ffffff;
}

#partner .partner-logo {
    max-height: 70px;
    max-width: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: none;
}

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

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--primary-blue);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.carousel-btn i {
    font-size: 20px;
}

.carousel-btn.prev {
    left: -60px;
}

.carousel-btn.next {
    right: -60px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Responsive adjustments for carousel */
@media (max-width: 1320px) {
    .carousel-btn.prev {
        left: 20px;
    }
    .carousel-btn.next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .partner-slide {
        width: 160px;
    }
    
    #partner .partner-card {
        padding: 20px 15px;
        height: 120px;
    }
    
    #partner .partner-logo {
        max-height: 60px;
        max-width: 130px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* ==================================================
   8. PRODUCT PREVIEW SECTION
   ================================================== */
#prodotto .preview-card {
    position: relative;
    display: block;
    border-radius: 1rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

#prodotto .preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    text-decoration: none;
}

#prodotto .preview-card img {
    transition: transform .5s ease;
}

#prodotto .preview-card:hover img {
    transform: scale(1.03);
}

#prodotto .preview-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(255,255,255,.95);
    color: #1f2937;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* ==================================================
   9. PRICING & BADGES
   ================================================== */
.price-badge {
    background: white;
    color: var(--primary-blue);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ==================================================
   10. CONTACT FORM
   ================================================== */
.contact-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.contact-form h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(46, 74, 139, 0.15);
    background: white;
}

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(46, 74, 139, 0.3);
}

/* ==================================================
   11. FOOTER
   ================================================== */
.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 30px;
}

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

/* ==================================================
   13. RESPONSIVE MEDIA QUERIES
   ================================================== */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.125rem !important;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .feature-box {
        margin-bottom: 20px;
    }
    
    p {
        font-size: 1.125rem !important;
    }
    
    #prodotto .preview-badge { 
        font-size: .85rem; 
        padding: 7px 12px; 
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 70vh;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .price-badge {
        font-size: 1.4rem;
        padding: 12px 24px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* ==================================================
   14. UTILITIES & HELPERS
   ================================================== */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}