/*
Theme Name: Scooterinomotorino
Description: Professional WordPress theme for motorcycle dealership with full Elementor Pro compatibility
Version: 3.1
Author: Scooterinomotorino Team
Text Domain: scooterinomotorino
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   ELEMENTOR COMPATIBILITY STYLES
   ========================================================================== */

/* Reset and normalize for Elementor compatibility */
* {
    box-sizing: border-box;
}

/* Minimal body styles to avoid conflicts with Elementor */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Container styles that work with Elementor */
.elementor-section .elementor-container {
    max-width: 100%;
}

/* Ensure Elementor widgets don't inherit unwanted styles */
.elementor-widget-container {
    box-sizing: border-box;
}

/* ==========================================================================
   THEME SPECIFIC STYLES (Non-conflicting with Elementor)
   ========================================================================== */

/* Header styles - only when not using Elementor header */
.site-header:not(.elementor-location-header) {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.contact-info {
    text-align: right;
}

.contact-info h3 {
    color: #CC0000;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-info p {
    margin: 2px 0;
    font-size: 14px;
}

/* Main content area */
.site-content {
    min-height: 60vh;
}

/* Container for non-Elementor pages */
.container:not(.elementor-container) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu Section Styles */
.menu-section {
    margin: 40px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    position: relative;
}

.menu-item a {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.menu-item:hover a {
    transform: translateY(-5px);
}

/* Menu Buttons */
.menu-button {
    background: #CC0000;
    color: white;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.menu-button:hover {
    background: #990000;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* Menu Button Colors */
.menu-button.cfmoto-btn {
    background: #007BFF !important;
}

.menu-button.cfmoto-btn:hover {
    background: #0056b3 !important;
}

.menu-button.kymco-btn {
    background: #CC0000 !important;
}

.menu-button.kymco-btn:hover {
    background: #990000 !important;
}

.menu-button.used-bikes-btn {
    background: #8B4513 !important;
}

.menu-button.used-bikes-btn:hover {
    background: #654321 !important;
}

.menu-button h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Featured Products Section */
.featured-products {
    margin: 60px 0;
}

.featured-products h2 {
    text-align: center;
    color: #CC0000;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Finance Banner in Motorcycle Section */
.finance-banner-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.finance-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finance-banner-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Navigation */
.back-to-home-section {
    margin: 20px 0;
}

.back-to-home-button {
    display: inline-block;
    background: #CC0000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-to-home-button:hover {
    background: #990000;
}

/* Page Title */
.page-title {
    text-align: center;
    color: #CC0000;
    font-size: 2.5rem;
    margin: 30px 0;
}

/* Footer styles - only when not using Elementor footer */
.site-footer:not(.elementor-location-footer) {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-button h2 {
        font-size: 2rem;
    }
    
    .featured-products h2,
    .page-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .finance-banner-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .finance-banner-image {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .container:not(.elementor-container) {
        padding: 0 15px;
    }
    
    .menu-button {
        height: 200px;
    }
    
    .menu-button h2 {
        font-size: 1.5rem;
    }
    
    .featured-products h2,
    .page-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .finance-banner-section {
        margin: 15px 0;
        padding: 10px;
    }
    
    .finance-banner-image {
        max-width: 95%;
    }
}

/* ==========================================================================
   ELEMENTOR SPECIFIC OVERRIDES
   ========================================================================== */

/* Ensure Elementor sections don't inherit theme margins */
.elementor-section-wrap {
    margin: 0;
}

/* Reset any potential conflicts with Elementor widgets */
.elementor-widget-heading .elementor-heading-title {
    margin: 0;
}

.elementor-widget-text-editor {
    color: inherit;
}

/* Ensure buttons work properly in Elementor */
.elementor-button-wrapper .elementor-button {
    transition: all 0.3s ease;
}

/* Hide theme header/footer when Elementor locations are active */
.elementor-location-header ~ .site-header,
.elementor-location-footer ~ .site-footer {
    display: none;
}

