/* ═══════════════════════════════════════════════════════════════════
   OTA PREMIUM STYLE - La Tua Fuga LOWCOST
   Basato su OTAPremiumStyleGuide.swift
   ═══════════════════════════════════════════════════════════════════ */

/* CSS Variables */
:root {
    /* Background Colors */
    --bg-dark: #1A1A2E;
    --bg-dark-blue: #16213E;
    --bg-deep: #0F0F1E;
    
    /* Accent Colors */
    --orange: #FF6B35;
    --orange-light: #FF8F5C;
    --orange-soft: #FFA52E;
    
    /* Secondary Colors */
    --purple: #8B5CF6;
    --purple-light: #A78BFA;
    --green: #34C759;
    --red: #FF3B30;
    --gold: #FFD700;
    --blue: #4A90E2;
    
    /* Category Colors */
    --cat-blue: #00B4D8;
    --cat-green: #4CAF50;
    --cat-purple: #9C27B0;
    --cat-pink: #E91E63;
    --cat-cyan: #42A5F5;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Surface Colors */
    --surface-light: rgba(255, 255, 255, 0.08);
    --surface-medium: rgba(255, 255, 255, 0.1);
    --surface-border: rgba(255, 255, 255, 0.15);
    --surface-border-light: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-bg: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F0F1E 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B35, #FF8F5C);
    --gradient-purple: linear-gradient(135deg, #8B5CF6, #A78BFA);
    --gradient-hero: linear-gradient(180deg, rgba(26,26,46,0) 0%, rgba(26,26,46,0.8) 50%, #1A1A2E 100%);
    
    /* Spacing */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 20px;
    --space-xl: 24px;
    --space-xxl: 32px;
    --space-xxxl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-round: 100px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow-orange: 0 0 40px rgba(255, 107, 53, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: transparent;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border-light);
}

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

.logo img {
    height: 40px;
    transition: var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 13px;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: var(--gradient-orange);
    color: white;
    box-shadow: var(--shadow-glow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.5);
}

.btn-glass {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--surface-medium);
    border-color: var(--surface-border);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920') center/cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-round);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--orange);
}

.hero-title {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: var(--text-secondary);
    margin-bottom: var(--space-xxl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xxxl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xxxl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--orange);
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--text-tertiary);
    font-size: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxxl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-round);
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-xxxl);
}

/* ═══════════════════════════════════════════════════════════════════
   OFFERS GRID
   ═══════════════════════════════════════════════════════════════════ */

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.offer-card {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.offer-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: var(--shadow-glow-orange);
}

.offer-card.skeleton {
    min-height: 400px;
    background: linear-gradient(90deg, var(--surface-light) 25%, var(--surface-medium) 50%, var(--surface-light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.offer-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.offer-card:hover .offer-image img {
    transform: scale(1.1);
}

.offer-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xxs) var(--space-sm);
    background: var(--orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.offer-content {
    padding: var(--space-lg);
}

.offer-destination {
    font-size: 11px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.offer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.offer-details {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--text-tertiary);
    font-size: 13px;
}

.offer-details i {
    color: var(--text-muted);
    margin-right: var(--space-xxs);
}

.offer-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.offer-price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--orange);
}

.offer-price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.offer-price-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════
   CATEGORIES
   ═══════════════════════════════════════════════════════════════════ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--category-color, var(--orange));
    box-shadow: 0 0 30px color-mix(in srgb, var(--category-color, var(--orange)) 30%, transparent);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--category-color, var(--orange)) 20%, transparent);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-md);
    font-size: 24px;
    color: var(--category-color, var(--orange));
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.category-card p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════
   STEPS / COME FUNZIONA
   ═══════════════════════════════════════════════════════════════════ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.step-card {
    position: relative;
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xxl);
    text-align: center;
    transition: var(--transition-normal);
}

.step-card:hover {
    border-color: var(--purple);
    box-shadow: var(--shadow-glow-purple);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.step-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-medium);
    border-radius: var(--radius-xl);
    margin: 0 auto var(--space-lg);
    font-size: 28px;
    color: var(--purple);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════
   APP SECTION
   ═══════════════════════════════════════════════════════════════════ */

.app-section {
    background: linear-gradient(135deg, var(--bg-dark-blue), var(--bg-deep));
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxxl);
    align-items: center;
}

.app-text .section-badge {
    margin-bottom: var(--space-md);
}

.app-text .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.app-text .section-subtitle {
    text-align: left;
    margin: 0 0 var(--space-xl);
    max-width: none;
}

.app-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.app-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.app-features i {
    color: var(--green);
    font-size: 18px;
}

.app-store-btn img {
    height: 50px;
    transition: var(--transition-fast);
}

.app-store-btn:hover img {
    transform: scale(1.05);
}

.app-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #2a2a4a, #1a1a3a);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 32px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.contact-card {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-normal);
}

.contact-card:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-medium);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-md);
    font-size: 20px;
    color: var(--orange);
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.contact-card p {
    font-size: 15px;
    margin-bottom: var(--space-xs);
}

.contact-card a {
    color: var(--orange);
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.footer {
    background: var(--bg-deep);
    padding: var(--space-xxxl) 0 var(--space-xl);
    border-top: 1px solid var(--surface-border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xxl);
    margin-bottom: var(--space-xxl);
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-tertiary);
    padding: var(--space-xs) 0;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-contact p {
    font-size: 14px;
    color: var(--text-tertiary);
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-contact i {
    color: var(--orange);
    width: 16px;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--surface-border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .app-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-text .section-title,
    .app-text .section-subtitle {
        text-align: center;
    }
    
    .app-features {
        display: inline-block;
        text-align: left;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        border-bottom: 1px solid var(--surface-border);
    }
    
    .nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: var(--space-lg);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .phone-frame {
        width: 220px;
        height: 440px;
    }
}

@media (max-width: 480px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card {
        padding: var(--space-lg);
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
