/* Homepage Revamp CSS */

/* Hero Section with Split Cards */
.hero-wrapper {
    width: 100%;
    height: 45vh; /* Covers about half/60% of the screen */
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.hero-card {
    flex: 1;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important; /* Force no underline */
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Card Specific Backgrounds */
.hero-card.cles {
    background-image: url('../img/cles.jpg');
}

.hero-card.mezzolombardo {
    background-image: url('../img/mezzolombardo.jpg');
}

/* Overlay Effect */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    z-index: 1;
}

.hero-card:hover::before {
    background: rgba(0, 0, 0, 0.00);
}

/* Hover Zoom Effect on Background */
.hero-card:hover {
    flex: 1.2; /* Expands the hovered card slightly */
}

/* Text Styling */
.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-card:hover .hero-text {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* Middle Divider/Text (Optional, inspired by old half.css) */
.hero-divider {
    position: absolute;
    top: 30vh; /* Half of 60vh */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: none; /* Hidden by default, enable if desired */
}

/* Commercial/Info Section */
.commercial-section {
    padding: 30px 0 80px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    font-family: 'Poppins', sans-serif;
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Catchy Styles */
.catchy-title {
    font-size: 3rem !important; /* Override section-title h2 */
    font-weight: 800 !important;
    margin-bottom: 20px;
}

.highlight-text {
    background: -webkit-linear-gradient(45deg, #e08644, #f22233);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.catchy-subtitle {
    font-size: 1.25rem !important;
    color: #555 !important;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.commercial-logo {
    transition: transform 0.5s ease;
}

.commercial-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}


/* Feature Cards */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: white;
    border: 1px solid #eee;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 50%;
    color: #0d6efd;
}

.feature-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-box p {
    font-family: 'Poppins', sans-serif;
    color: #666;
    line-height: 1.6;
}

/* Steps Section */
.steps-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.step-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    color: #e9ecef;
    margin-right: 20px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #0d6efd;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    color: #0a58ca;
}

/* Header Overrides for Homepage */
.header_area {
    padding: 10px 0 !important; /* Reduced padding (default was 30px) */
}

.logo {
    max-width: 140px !important; /* Reduced logo size (default was 188px) */
}

.header_btn .btns {
    padding: 8px 16px !important; /* Compact button */
    font-size: 16px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        height: 80vh; /* Taller on mobile to fit both */
    }
    
    .hero-card:hover {
        flex: 1; /* Disable flex expansion on mobile */
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Modal Customization */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-body {
    padding: 2rem;
}

.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
    background-color: #f8f9fa;
}

.form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
    background-color: white;
}
