/* MAIN STYLES - assets/css/main.css */
/* Global styles without single tour specific code */

/* ========================================
   1. VARIABILI GLOBALI
   ======================================== */
:root {
    --primary-color: #f79448;
    --secondary-color: #3068b3;
    --accent-color: #3068b3;
    --accent-secondary: #2a5ba1;
    --text-color: #333;
    --text-muted: #555;
    --background-gradient: linear-gradient(135deg, #4a7bc8 0%, #5a8fd3 100%);
    --white: #ffffff;
    --white-95: rgba(255,255,255,0.95);
    --border-color: rgba(224,224,224,0.5);
    --footer-bg: #1f2937;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --orange-light: #fdb584;
    --blue-primary: #3068b3;
    --orange-primary: #f79448;
    --red-primary: #dc3545;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--background-gradient);
    min-height: 100vh;
}

/* ========================================
   2. HEADER (Con Site Title SALIMAR)
   ======================================== */
.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.header-wrapper {
    background: transparent;
    padding: 20px 0;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

.site-logo::before {
    display: none !important;
}

/* Site title styling - SALIMAR */
.site-title,
.site-title-large {
    font-size: 34px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #f79448, #e8843f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hover effect for site title */
.site-logo:hover .site-title,
.site-logo:hover .site-title-large {
    background: linear-gradient(135deg, #3068b3, #2a5ba1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* If custom logo is used */
.logo-wrapper img {
    max-height: 60px !important;
    height: auto;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.menu-container {
    display: flex;
    gap: 35px;
}

.menu-container ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.menu-container a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-container a:hover,
.menu-container a:focus {
    color: var(--primary-color);
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-container .current-menu-item a,
.menu-container .current_page_item a {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   3. MAIN CONTENT WRAPPER
   ======================================== */
.site-content {
    background: transparent;
    padding: 0;
    margin: 0;
    min-height: calc(100vh - 60px);
}

.main-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    margin-top: 30px;
}

/* ========================================
   4. BUTTONS GLOBAL STYLE
   ======================================== */
.btn,
.search-btn,
.wp-block-button__link {
    background: linear-gradient(135deg, #3068b3, #2a5ba1);
    color: var(--white);
    border: none;
    border-radius: 25px;
    padding: 12px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover,
.search-btn:hover,
.wp-block-button__link:hover {
    background: linear-gradient(135deg, #2a5ba1, #245491);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48,104,179,0.3);
    color: var(--white);
}

.price-amount {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   5. FOOTER
   ======================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--white);
    margin-top: 60px;
    width: 100%;
}

.footer-widgets {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget-area .widget-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget-area a {
    color: #bdc3c7;
}

.footer-widget-area a:hover,
.footer-widget-area a:focus {
    color: var(--white);
}

.site-info {
    padding: 20px 0;
    background: rgba(0,0,0,0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #bdc3c7;
}

.footer-menu a:hover,
.footer-menu a:focus {
    color: var(--white);
}

.copyright {
    color: #bdc3c7;
}

/* ========================================
   6. MOBILE STYLES - GLOBAL ONLY
   ======================================== */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 20px 15px;
        margin-top: 15px;
    }
    
    /* Header mobile */
    .header-content {
        padding: 0 15px;
    }
    
    /* TITOLO MOBILE RIDOTTO */
    .site-title,
    .site-title-large {
        font-size: 26px !important;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 999;
    }
    
    .menu-container.toggled {
        display: block;
    }
    
    .menu-container ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-container a {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* Footer mobile */
    .site-footer {
        margin-bottom: 80px;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
}

/* ========================================
   7. UTILITY CLASSES
   ======================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Loading spinner */
.tour-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #f79448;
    border-radius: 50%;
    animation: tour-spin 1s linear infinite;
}

@keyframes tour-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile loading */
.mobile-loading {
    padding: 40px;
    text-align: center;
}

/* Hide elements on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Hide elements on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* ========================================
   8. ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition {
    animation: fadeIn 0.6s ease-out;
}

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

/* ========================================
   9. ACCESSIBILITY
   ======================================== */
/* Ensure header stays above other elements */
.site-header {
    z-index: 1000;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Price displays consistency */
.price-amount {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-variant-numeric: tabular-nums;
}
