/* Experiences Showcase - Luxury Design with Animations */

:root {
    --luxury-gold: #C9A961;
    --luxury-gold-light: #E6D4A5;
    --luxury-gold-dark: #B8975A;
    --luxury-dark: #0D0D0D;
    --luxury-light: #FEFEFE;
    --luxury-cream: #F8F6F0;
    --luxury-text: #2D3748;
    --luxury-text-light: #718096;
    --luxury-border: #E2E8F0;
    --luxury-shadow: 0 20px 60px rgba(201, 169, 97, 0.15);
    --luxury-shadow-xl: 0 30px 80px rgba(201, 169, 97, 0.25);
    --luxury-shadow-lg: 0 15px 40px rgba(201, 169, 97, 0.2);
}

/* Luxury Hero Section - Ottimizzato per performance */
.experiences-luxury-hero {
    position: relative;
    min-height: 100vh;
    /* Fallback colore scuro prima del caricamento dell'immagine */
    background-color: #2a2a2a;
    /* Nota: Il percorso dell'immagine viene sovrascritto inline per iOS/Safari */
    background-image: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 100%
    ),
    url('../images/hero-index-esperienze.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Cambiato da fixed per migliorare performance */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Rimossa contain che potrebbe interferire con il caricamento dell'immagine */
    /* Fix per iOS Safari */
    -webkit-background-size: cover;
    -webkit-background-attachment: scroll;
}

.hero-luxury-content {
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    /* Rimossa animazione che ritarda il rendering - contenuto visibile immediatamente */
    opacity: 1;
    color: white;
    /* Leggera animazione solo se supportata, senza bloccare il rendering */
    animation: luxuryFadeInUp 0.6s ease-out;
}

.hero-luxury-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-luxury-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-primary, .hero-cta-secondary {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-cta-primary {
    background: var(--luxury-gold);
    color: var(--luxury-dark);
    box-shadow: var(--luxury-shadow);
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.hero-cta-primary:hover::before {
    left: 100%;
}

.hero-cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--luxury-shadow-xl);
    background: var(--luxury-gold-light);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--luxury-gold);
    color: var(--luxury-gold);
    transform: translateY(-3px);
}

/* Floating Elements Animation - Disabilitati per migliorare performance */
.floating-elements {
    display: none; /* Rimossi per migliorare LCP e performance */
}

.floating-element {
    display: none; /* Rimossi per migliorare LCP e performance */
}

/* Main Content Section */
.experiences-luxury-main {
    padding: 0;
    background: #000;
    position: relative;
}

/* Filters Section - Simplified */
.luxury-filters-section {
    display: none; /* Nascondiamo i filtri per ora per seguire lo stile minimale */
}

.filters-luxury-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    max-width: none;
    margin: 0;
}

.filters-luxury-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--luxury-text);
    margin-bottom: 1.5rem;
}

.filters-luxury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-luxury-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-luxury-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--luxury-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-luxury-select, .filter-luxury-input {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(201, 169, 97, 0.3);
    border-radius: 12px;
    background: white;
    color: var(--luxury-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-luxury-select:focus, .filter-luxury-input:focus {
    outline: none;
    border-color: var(--luxury-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

/* Josetta Saffirio Style Sections */
.experiences-luxury-sections {
    margin-top: 0;
    background: #000;
}

.experience-luxury-section {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #000;
    color: white;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.experience-luxury-section.section-left .section-content-wrapper {
    flex-direction: row;
}

.experience-luxury-section.section-right .section-content-wrapper {
    flex-direction: row-reverse;
}

/* Background Elements - Simplified */
.section-background-elements {
    display: none; /* Rimuoviamo gli elementi decorativi */
}

/* Content Wrapper */
.section-content-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Content Side */
.section-content {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 50%;
}

.section-number {
    display: none; /* Rimuoviamo il numero */
}

.section-badge {
    margin-bottom: 2rem;
    z-index: 1;
    position: relative;
}

.badge-available {
    background: transparent;
    color: #C9A961;
    padding: 0;
    border: none;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    box-shadow: none;
}

.badge-unavailable {
    background: transparent;
    color: #999;
    padding: 0;
    border: none;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    box-shadow: none;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 300;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.section-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    transition: none;
}

.detail-item:hover {
    background: none;
    border: none;
    transform: none;
}

.detail-icon {
    display: none; /* Rimuoviamo le icone */
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 0.9rem;
    color: white;
    font-weight: 300;
}

/* Price and Actions */
.section-price-action {
    position: relative;
    z-index: 1;
}

.section-price {
    margin-bottom: 3rem;
}

.price-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.price-currency {
    font-size: 1.2rem;
    color: #C9A961;
    font-weight: 300;
}

.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #C9A961;
    line-height: 1;
}

.price-unit {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.section-actions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-luxury-section {
    padding: 0;
    border: none;
    background: none;
    font-weight: 300;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: visible;
}

.btn-luxury-section.primary {
    color: #C9A961;
    border-bottom: 1px solid transparent;
}

.btn-luxury-section.primary:hover {
    color: white;
    border-bottom-color: #C9A961;
}

.btn-luxury-section.secondary {
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid transparent;
}

.btn-luxury-section.secondary:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.btn-luxury-section svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-luxury-section:hover svg {
    transform: translateX(3px);
}

/* Visual Side - Josetta Saffirio Style */
.section-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    max-width: 50%;
}

.visual-main {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* .section-right .visual-main - stessa struttura di .section-left .visual-main */

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--luxury-shadow);
    transition: transform 0.3s ease;
}

.experience-hero-image:hover {
    transform: scale(1.05);
}

.visual-pattern {
    display: none; /* Rimuoviamo i pattern */
}

.visual-accent {
    display: none; /* Rimuoviamo gli accenti */
}

.visual-icon {
    display: none;
}

.accent-line {
    display: none;
}

.accent-dot {
    display: none;
}

/* Animations */
@keyframes luxuryFadeInUp {
    0% {
        opacity: 0.9; /* Partenza da 0.9 invece di 0 per rendering più veloce */
        transform: translateY(5px); /* Movimento ridotto per performance */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* New Luxury Animations */
@keyframes floatGlass {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.5;
    }
    66% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.4;
    }
}

@keyframes rotatePattern {
    0% {
        transform: rotate(15deg);
    }
    100% {
        transform: rotate(375deg);
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

@keyframes expandPattern {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

@keyframes drawLine {
    0%, 100% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Staggered Animation for Sections */
.experience-luxury-section:nth-child(1) { animation-delay: 0.1s; }
.experience-luxury-section:nth-child(2) { animation-delay: 0.2s; }
.experience-luxury-section:nth-child(3) { animation-delay: 0.3s; }
.experience-luxury-section:nth-child(4) { animation-delay: 0.4s; }
.experience-luxury-section:nth-child(5) { animation-delay: 0.5s; }
.experience-luxury-section:nth-child(6) { animation-delay: 0.6s; }

/* Scroll Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Empty State Styles */
.luxury-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: #000;
    color: white;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 600px;
    margin: 0 auto;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.luxury-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--luxury-cream), rgba(201, 169, 97, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luxury-empty-icon svg {
    width: 48px;
    height: 48px;
    color: #C9A961;
}

.luxury-empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 300;
}

.luxury-empty-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-luxury-title {
        font-size: 3.5rem;
    }
    
    /* Josetta Saffirio Tablet */
    .experience-luxury-section {
        margin: 0;
        min-height: 100vh;
    }
    
    .section-content {
        padding: 4rem;
        max-width: 50%;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-visual {
        max-width: 50%;
    }
    
    .section-actions {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .experiences-luxury-hero {
        min-height: 70vh;
        margin-top: 60px; /* Spazio per l'header fisso */
        /* Fix iOS Safari - forzare caricamento immagine */
        -webkit-background-size: cover !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        /* Forza il rendering dell'immagine su iOS */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .hero-luxury-content {
        margin-top: 2rem; /* Aggiunge spazio sopra il contenuto */
        padding-top: 2rem; /* Spazio aggiuntivo per il titolo */
    }
    
    .hero-luxury-title {
        font-size: 2.8rem;
        margin-top: 1.5rem !important; /* Spazio sopra il titolo */
    }
    
    .hero-luxury-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-cta-primary, .hero-cta-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-cta-secondary {
        margin-bottom: 2rem; /* Spazio sotto "Le Mie Prenotazioni" su mobile */
    }
    
    .filters-luxury-grid {
        grid-template-columns: 1fr;
    }
    
    /* Josetta Saffirio Mobile */
    .experience-luxury-section {
        margin: 0;
        min-height: 100vh;
    }
    
    .section-content-wrapper {
        flex-direction: column !important;
        min-height: 100vh;
    }
    
    .section-content {
        padding: 3rem 2rem;
        order: 2;
        max-width: 100%;
    }
    
    .section-visual {
        order: 1;
        min-height: 50vh;
        max-width: 100%;
    }
    
    .visual-main {
        height: 50vh;
        background-attachment: scroll !important;
    }
    
    .experience-hero-image {
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .section-actions {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .section-details {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .experiences-luxury-hero {
        margin-top: 60px; /* Spazio per l'header fisso */
        /* Fix iOS Safari - forzare caricamento immagine */
        -webkit-background-size: cover !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        /* Forza il rendering dell'immagine su iOS */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .hero-luxury-content {
        padding: 0 1rem;
        margin-top: 1.5rem; /* Spazio sopra il contenuto */
        padding-top: 1.5rem; /* Spazio aggiuntivo per il titolo */
    }
    
    .hero-luxury-title {
        margin-top: 1rem !important; /* Spazio sopra il titolo su schermi piccoli */
    }
    
    .hero-cta-secondary {
        margin-bottom: 4rem; /* Spazio sotto "Le Mie Prenotazioni" su schermi piccoli */
    }
    
    .card-luxury-content {
        padding: 2rem;
    }
    
    .experiences-luxury-main {
        padding: 3rem 0;
    }
    
    .visual-main {
        height: 250px;
    }
    
    .experience-hero-image {
        border-radius: 8px;
    }
} 