:root {
    --primary-color: #ff80ab; /* Rosa primario */
    --primary-light: #ffb2dd; /* Rosa chiaro */
    --primary-dark: #c94f7c; /* Rosa scuro */
    --accent-color: #ba68c8; /* Viola accent */
    --accent-dark: #883997; /* Viola scuro */
    --dark-color: #880e4f; /* Rosa molto scuro */
    --gray-color: #fce4ec; /* Rosa pallido */
    --light-gray: #f8bbd0; /* Rosa più chiaro */
    --text-color: #4a0025;
    --text-secondary: #880e4f;
    --white: #ffffff;
    --shadow-color: rgba(136, 14, 79, 0.15);
    --gradient-primary: linear-gradient(135deg, #ff80ab 0%, #ba68c8 100%);
    --gradient-secondary: linear-gradient(135deg, #ba68c8 0%, #673ab7 100%);
    --gradient-dark: linear-gradient(135deg, #880e4f 0%, #4a0025 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Preloader Moderno */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    transform-style: preserve-3d;
}

.loader-ring-light {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(255, 128, 171, 0.2);
    animation: pulse-ring 1.5s ease-out infinite;
}

.loader-ring-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 128, 171, 0.1);
    border-radius: 50%;
}

.loader-text {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: #FF80AB; /* Colore rosa per il testo */
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(255, 128, 171, 0.3);
}

.loader-text span {
    opacity: 0;
    animation: fade-in 0.5s ease forwards;
    transform: translateY(10px);
}

/* Animazione per far apparire le lettere una dopo l'altra con movimento */
@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Applica l'animazione con ritardo crescente per ogni lettera */
.loader-text span:nth-child(1) { animation-delay: 0.1s; }
.loader-text span:nth-child(2) { animation-delay: 0.2s; }
.loader-text span:nth-child(3) { animation-delay: 0.3s; }
.loader-text span:nth-child(4) { animation-delay: 0.4s; }
.loader-text span:nth-child(5) { animation-delay: 0.5s; }
.loader-text span:nth-child(6) { animation-delay: 0.6s; }
.loader-text span:nth-child(7) { animation-delay: 0.7s; }
.loader-text span:nth-child(8) { animation-delay: 0.8s; }
.loader-text span:nth-child(9) { animation-delay: 0.9s; }
.loader-text span:nth-child(10) { animation-delay: 1.0s; }
.loader-text span:nth-child(11) { animation-delay: 1.1s; }
.loader-text span:nth-child(12) { animation-delay: 1.2s; }
.loader-text span:nth-child(13) { animation-delay: 1.3s; }

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 128, 171, 0.4);
    }
    100% {
        box-shadow: 0 0 0 30px rgba(255, 128, 171, 0);
    }
}
/* Stile per l'icona del carrello */
.cart-icon {
    position: relative;
    margin-right: 10px;
}

.cart-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.cart-icon a:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Animazione del carrello quando si aggiunge un prodotto */
@keyframes cart-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-bump {
    animation: cart-bump 0.3s ease-in-out;
}

/* Mini carrello dropdown - SOTTO L'ICONA DEL CARRELLO */
.mini-cart {
    position: absolute !important;
    top: calc(100% + 15px) !important; /* SOTTO l'icona del carrello */
    right: 0 !important;
    width: 350px !important;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    padding: 0;
    z-index: 99999 !important;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 128, 171, 0.2);
    max-height: 70vh;
    overflow: hidden;
    /* FORZATURE */
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
}

.mini-cart.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
}

/* IMPORTANTE: L'icona del carrello deve avere position: relative */
.cart-icon {
    position: relative !important;
    margin-right: 10px;
}

.mobile-cart-icon {
    position: relative !important;
    margin-right: 15px;
    z-index: 10;
}

/* Resto degli stili del carrello */
.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #ff80ab 0%, #f48fb1 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.mini-cart-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.mini-cart-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mini-cart-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.mini-cart-items {
    max-height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

.mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cart-item-info {
    flex-grow: 1;
}

.mini-cart-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.mini-cart-item-variant {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.mini-cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.mini-cart-item-remove {
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mini-cart-item-remove:hover {
    background: #ffebee;
    color: #ff4757;
}

.mini-cart-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 15px 15px;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.mini-cart-total-amount {
    color: var(--primary-color);
    font-size: 20px;
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.checkout-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f48fb1 100%);
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 128, 171, 0.4);
}

.mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
    background: white;
}

.mini-cart-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.mini-cart-empty p {
    color: #777;
    font-size: 16px;
}

/* fine icona del carrello */

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 128, 171, 0.3);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
    display: none;
}

@media (pointer: fine) {
    .cursor-follower {
        display: block;
    }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGZpbHRlcj0idXJsKCNhKSIgb3BhY2l0eT0iLjA1IiBkPSJNMCAwaDMwMHYzMDBIMHoiLz48L3N2Zz4=');
    pointer-events: none;
    z-index: 100;
    opacity: 0.4;
}


/* Hero Section -INIZIO */
.hero-section {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: transparent;
    padding-top: 80px; /* Invece di margin-top, usiamo padding-top per creare spazio per l'header */
}

.hero-background {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    animation: scale-in 1.5s ease-out forwards;
}

/* Media queries per la responsività dell'immagine hero */
@media (max-width: 1024px) {
    .hero-bg-image {
        object-position: center center;
    }
}

@media (max-width: 767px) {
.hero-section {
padding-top: 5px; /* RIDOTTO per header compatto */
}
}
/* Hero Section con effetto sfumato */
.hero-section {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: transparent;
    padding-top: 80px; /* Spazio per l'header */
}

.hero-background {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    animation: scale-in 1.5s ease-out forwards;
}

/* Effetto sfumato in fondo all'immagine */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Altezza della sfumatura */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.9) 80%,
        rgba(255, 255, 255, 1) 100%
    );
    z-index: 2; /* Sopra l'immagine ma sotto altri elementi */
    pointer-events: none; /* Permette di cliccare attraverso l'overlay */
}

/* Overlay colorato sull'intera immagine (opzionale) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 128, 171, 0.1) 0%,
        rgba(186, 104, 200, 0.1) 100%
    );
    z-index: 2; /* Stesso z-index dell'effetto sfumato */
    pointer-events: none;
}

/* Media queries per la responsività dell'immagine hero */
@media (max-width: 1024px) {
    .hero-bg-image {
        object-position: center center;
    }
}

@media (max-width: 767px) {
.hero-section {
padding-top: 0px; /* RIMOSSO COMPLETAMENTE il padding */
}
}
    .hero-section::after {
        height: 100px; /* Sfumatura più sottile su mobile */
    }
}
/* Fine Header */
/* HEADER FISSO E MOBILE OTTIMIZZATO */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 128, 171, 0.1);
    padding: 15px 0; /* Desktop padding */
}

/* MOBILE HEADER COMPATTO */
@media (max-width: 768px) {
    header {
        padding: 5px 0 !important; /* MOLTO PIÙ COMPATTO */
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 15px rgba(255, 128, 171, 0.15);
    }

    /* Effetto sfumato sotto l'header */
    header::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 100%;
        height: 8px;
        background: linear-gradient(
            to bottom,
            rgba(255, 128, 171, 0.1) 0%,
            transparent 100%
        );
        pointer-events: none;
        z-index: -1;
    }

    /* Logo più piccolo */
    .logo-image {
        height: 40px !important; /* MOLTO PIÙ PICCOLO */
    }

    /* Container più compatto */
    .nav-container {
        padding: 0 10px !important;
        min-height: 40px !important;
    }
}

/* Header quando si scrolla */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(255, 128, 171, 0.2);
}

@media (max-width: 768px) {
    header.scrolled {
        padding: 3px 0 !important; /* ANCORA PIÙ COMPATTO */
    }

    header.scrolled .logo-image {
        height: 35px !important;
    }
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    overflow: visible;
    position: relative;
    margin-right: 50px;
    z-index: 10;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

header.scrolled .logo-image {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-links a:not(.login-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.login-btn {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 10px 25px !important;
    border-radius: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: all 0.5s;
    z-index: -1;
    border-radius: 30px;
}

.login-btn:hover::before {
    width: 100%;
}

.login-btn span {
    position: relative;
    z-index: 2;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 128, 171, 0.4);
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 102;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

.mobile-menu-open .menu-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-open .menu-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-open .menu-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.menu-content a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

.menu-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.menu-content a:hover::after,
.menu-content a.active::after {
    width: 100%;
}

.menu-content a:hover,
.menu-content a.active {
    color: var(--primary-color);
}

.login-btn-mobile {
    margin-top: 20px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 12px 30px !important;
    border-radius: 30px;
    font-size: 18px !important;
}

/* Video Section - Completamente ridisegnata con palette rosa */
.video-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
    position: relative;
    overflow: hidden;
}

.video-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff80ab 0%, #ba68c8 50%, #880e4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #880e4f;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.video-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: stretch;
}

.community-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(136, 14, 79, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: fit-content;
}

.community-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #880e4f;
    margin-bottom: 25px;
    line-height: 1.2;
}

.community-description {
    font-size: 1.05rem;
    color: #4a0025;
    line-height: 1.7;
    margin-bottom: 35px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 128, 171, 0.1);
}

.features-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff80ab 0%, #ba68c8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 18px;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    color: #880e4f;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.feature-desc {
    color: #4a0025;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff80ab 0%, #ba68c8 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 128, 171, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 128, 171, 0.4);
    color: white;
    text-decoration: none;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(136, 14, 79, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 9/16;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 600px;
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(136, 14, 79, 0.25);
}

.promo-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(136, 14, 79, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.play-pause-btn {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(136, 14, 79, 0.2);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.play-pause-btn:focus {
    outline: none;
}

/* Decorazioni animate con palette rosa */
.video-section::before,
.video-section::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.video-section::before {
    top: -225px;
    left: -225px;
    background: linear-gradient(135deg, rgba(255, 128, 171, 0.08) 0%, rgba(186, 104, 200, 0.08) 100%);
    filter: blur(50px);
    animation-delay: 0s;
}

.video-section::after {
    bottom: -225px;
    right: -225px;
    background: linear-gradient(135deg, rgba(186, 104, 200, 0.08) 0%, rgba(136, 14, 79, 0.08) 100%);
    filter: blur(50px);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* Particelle decorative rosa */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 128, 171, 0.6);
    border-radius: 50%;
    animation: floatUp 10s linear infinite;
}

.floating-element:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { left: 20%; animation-delay: 2s; }
.floating-element:nth-child(3) { left: 30%; animation-delay: 4s; }
.floating-element:nth-child(4) { left: 40%; animation-delay: 1s; }
.floating-element:nth-child(5) { left: 50%; animation-delay: 3s; }
.floating-element:nth-child(6) { left: 60%; animation-delay: 5s; }
.floating-element:nth-child(7) { left: 70%; animation-delay: 1.5s; }
.floating-element:nth-child(8) { left: 80%; animation-delay: 3.5s; }
.floating-element:nth-child(9) { left: 90%; animation-delay: 0.5s; }

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(0vh) scale(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-container {
        max-width: 380px;
        margin: 0 auto;
        height: 500px;
    }

    .community-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .community-content {
        padding: 35px 25px;
    }

    .community-title {
        font-size: 1.9rem;
    }

    .video-container {
        max-width: 320px;
        height: 450px;
    }

    .play-pause-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .community-content {
        padding: 30px 20px;
    }

    .community-title {
        font-size: 1.7rem;
    }

    .video-container {
        max-width: 280px;
        height: 400px;
    }

    .play-pause-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 16px;
    }
}

/* Features Section - 4 elementi in riga orizzontale su desktop */
.features-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.feature-icon {
    margin-bottom: 25px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 128, 171, 0.1) 0%, rgba(186, 104, 200, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 35px 25px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 28px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 15px;
    }
}
/* Packages Section - Modern iOS Style con Palette Rosa */
.packages-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
    position: relative;
    overflow: hidden;
    color: #1d1d1f;
}

/* Subtle Background Elements */
.blob-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    z-index: 1;
    opacity: 0.08;
    filter: blur(60px);
    animation: blob-float 20s infinite alternate ease-in-out;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(15px, -10px) rotate(3deg) scale(1.02); }
    100% { transform: translate(-15px, 10px) rotate(-3deg) scale(0.98); }
}

.blob-left {
    left: -200px;
    top: 20%;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
}

.blob-right {
    right: -200px;
    bottom: 20%;
    background: linear-gradient(135deg, #f48fb1 0%, #f8bbd9 100%);
    animation-delay: -10s;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header - iOS Style con Rosa */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #e91e63;
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.4;
}

.promo-banner {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
    animation: gentle-pulse 3s infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.promo-text {
    background: linear-gradient(90deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Carousel Controls - Rosa Style */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 50px;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(233, 30, 99, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e91e63;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.15);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.25);
    color: #ad1457;
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(233, 30, 99, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.indicator-dot.active {
    width: 20px;
    background: #e91e63;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

/* Packages Carousel */
.packages-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
}

.packages-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 12px;
}

/* Package Cards - Rosa Glass Morphism */
.package-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 320px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.1);
    display: flex;
    flex-direction: column;
    border: 0.5px solid rgba(255, 255, 255, 0.8);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e91e63 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.15);
}

.package-card:hover .card-glow {
    opacity: 1;
}

.package-card.featured {
    border: 1px solid rgba(233, 30, 99, 0.3);
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.2);
}

.package-card.featured:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(233, 30, 99, 0.25);
}

/* Badges - Rosa Style */
.package-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: white;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
    z-index: 3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.free-trial-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f48fb1 0%, #f8bbd9 100%);
    color: white;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(244, 143, 177, 0.4);
    z-index: 3;
    letter-spacing: 0.2px;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Package Header */
.package-header {
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.package-header h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-weight: 600;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 12px;
}

.currency {
    font-size: 20px;
    font-weight: 500;
    color: #86868b;
    margin-right: 2px;
}

.amount {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.period {
    font-size: 16px;
    font-weight: 500;
    color: #86868b;
    margin-left: 4px;
}

.price-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.old-price {
    font-size: 14px;
    color: #86868b;
    text-decoration: line-through;
}

.savings {
    font-size: 12px;
    font-weight: 700;
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

/* Package Features */
.package-features {
    padding: 0 24px 24px;
    flex-grow: 1;
    z-index: 2;
}

.package-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #86868b;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.3;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.package-features li:hover {
    transform: translateX(2px);
}

.package-features li i {
    color: #e91e63;
    margin-right: 12px;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.package-features li strong {
    color: #e91e63;
    font-weight: 600;
}

.package-features li em {
    color: #86868b;
    font-style: normal;
    font-size: 14px;
}

/* Package Buttons */
.package-buttons {
    padding: 0 24px 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.package-btn.primary-btn {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

.package-btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, #ad1457 0%, #e91e63 100%);
}

.package-btn.primary-btn:active {
    transform: translateY(0);
}

.package-btn.info-btn {
    background: rgba(233, 30, 99, 0.08);
    border: 1px solid rgba(233, 30, 99, 0.3);
    color: #e91e63;
}

.package-btn.info-btn:hover {
    background: rgba(233, 30, 99, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
    color: #ad1457;
}

.package-popular {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ad1457 0%, #e91e63 100%);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0 20px 0 16px;
    z-index: 3;
    letter-spacing: 0.3px;
}

/* CTA Banner */
.cta-banner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    border: 0.5px solid rgba(233, 30, 99, 0.1);
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.1);
    margin-top: 40px;
}

.cta-banner h3 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
    line-height: 1.2;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #1d1d1f;
    font-weight: 500;
}

.benefit i {
    color: #e91e63;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.cta-text {
    font-size: 16px;
    color: #86868b;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.cta-text strong {
    color: #1d1d1f;
    font-weight: 600;
}

.cta-text em {
    color: #e91e63;
    font-style: normal;
}

/* Mobile Swipe Indicator */
.swipe-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #86868b;
    font-size: 14px;
    margin-top: 24px;
    animation: gentle-pulse 2s infinite;
}

.swipe-indicator i {
    font-size: 16px;
    animation: swipe-right 1.5s infinite;
    color: #e91e63;
}

@keyframes swipe-right {
    0% { transform: translateX(0); }
    50% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}

/* Responsive Design */
@media (min-width: 1200px) {
    .desktop-only { display: flex; }
    .mobile-only { display: none; }
}

@media (max-width: 1199px) {
    .package-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 300px;
    }
    .desktop-only { display: flex; }
    .mobile-only { display: none; }
}

@media (max-width: 768px) {
    .packages-section {
        padding: 80px 0;
    }

    .packages-track {
        padding: 0 16px;
        gap: 16px;
    }

    .package-card {
        flex: 0 0 85%;
        min-width: 280px;
    }

    .desktop-only { display: none; }
    .mobile-only { display: flex; }

    .section-header {
        margin-bottom: 60px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cta-banner {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .packages-section {
        padding: 60px 0;
    }

    .package-card {
        flex: 0 0 90%;
        min-width: 260px;
    }

    .package-header,
    .package-features,
    .package-buttons {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cta-banner {
        padding: 24px 20px;
    }

    .cta-banner h3 {
        font-size: 20px;
    }
}

/* JavaScript to handle carousel functionality */
document.addEventListener('DOMContentLoaded', function() {
    const track = document.querySelector('.packages-track');
    const cards = Array.from(document.querySelectorAll('.package-card'));
    const prevBtn = document.querySelector('.prev-arrow');
    const nextBtn = document.querySelector('.next-arrow');
    const indicators = document.querySelector('.carousel-indicators');

    if (!track || !cards.length) return;

    let currentIndex = 0;
    let cardWidth = 0;
    const gap = 30; // Gap between cards
    const totalSlides = cards.length;
    let slidesPerView = 1;
    let maxIndex = 0;

    // Calculate dimensions and indices
    function updateCarouselDimensions() {
        // Get current card width
        cardWidth = cards[0].offsetWidth;

        // Calculate visible slides based on viewport
        slidesPerView = getSlidesPerView();

        // Calculate max index
        maxIndex = Math.max(0, totalSlides - slidesPerView);

        // Ensure current index is valid
        if (currentIndex > maxIndex) {
            currentIndex = maxIndex;
        }

        // Update carousel position
        goToSlide(currentIndex, false);

        // Update indicators
        createIndicators();
    }

    // Create indicator dots
    function createIndicators() {
        if (!indicators) return;

        indicators.innerHTML = '';

        for (let i = 0; i <= maxIndex; i++) {
            const dot = document.createElement('div');
            dot.classList.add('indicator-dot');
            if (i === currentIndex) dot.classList.add('active');

            dot.addEventListener('click', () => {
                goToSlide(i, true);
            });

            indicators.appendChild(dot);
        }
    }

    // Navigate to specific slide
    function goToSlide(index, animate = true) {
        currentIndex = Math.min(Math.max(0, index), maxIndex);
        const offset = -(currentIndex * (cardWidth + gap));

        if (animate) {
            track.style.transition = 'transform 0.6s cubic-bezier(0.25, 1, 0.5, 1)';
        } else {
            track.style.transition = 'none';
        }

        track.style.transform = `translateX(${offset}px)`;

        // Update indicators
        const dots = document.querySelectorAll('.indicator-dot');
        dots.forEach((dot, idx) => {
            dot.classList.toggle('active', idx === currentIndex);
        });
    }

    // Get slides per view based on screen width
    function getSlidesPerView() {
        if (window.innerWidth >= 1200) {
            return 3; // Desktop: 3 cards visible
        } else if (window.innerWidth >= 768) {
            return 2; // Tablet: 2 cards visible
        } else {
            return 1; // Mobile: 1 card visible
        }
    }

    // Previous slide
    if (prevBtn) {
        prevBtn.addEventListener('click', () => {
            goToSlide(currentIndex - 1);
        });
    }

    // Next slide
    if (nextBtn) {
        nextBtn.addEventListener('click', () => {
            goToSlide(currentIndex + 1);
        });
    }

    // Touch events for mobile swipe
    let startX, moveX, initialPosition;
    let isDragging = false;

    track.addEventListener('touchstart', (e) => {
        startX = e.touches[0].clientX;
        initialPosition = -currentIndex * (cardWidth + gap);
        isDragging = true;
        track.style.transition = 'none';
    }, { passive: true });

    track.addEventListener('touchmove', (e) => {
        if (!isDragging) return;
        moveX = e.touches[0].clientX;
        const diff = moveX - startX;
        track.style.transform = `translateX(${initialPosition + diff}px)`;
    }, { passive: true });

    track.addEventListener('touchend', (e) => {
        isDragging = false;
        track.style.transition = 'transform 0.6s cubic-bezier(0.25, 1, 0.5, 1)';
        if (moveX) {
            const diff = moveX - startX;
            if (Math.abs(diff) > cardWidth / 3) {
                if (diff > 0 && currentIndex > 0) {
                    goToSlide(currentIndex - 1);
                } else if (diff < 0 && currentIndex < maxIndex) {
                    goToSlide(currentIndex + 1);
                } else {
                    goToSlide(currentIndex);
                }
            } else {
                goToSlide(currentIndex);
            }
        }
    }, { passive: true });

    // Handle card hover effects
    cards.forEach(card => {
        // 3D tilt effect - only for desktop
        if (window.innerWidth > 768) {
            card.addEventListener('mousemove', function(e) {
                const rect = this.getBoundingClientRect();
                const x = e.clientX - rect.left;
                const y = e.clientY - rect.top;

                const centerX = rect.width / 2;
                const centerY = rect.height / 2;

                const rotateX = (y - centerY) / 20;
                const rotateY = (centerX - x) / 20;

                this.style.transform = `perspective(1000px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale3d(1.02, 1.02, 1.02)`;

                // Update glow effect
                const glowEffect = this.querySelector('.card-glow');
                if (glowEffect) {
                    const glassX = (x / rect.width) * 100;
                    const glassY = (y / rect.height) * 100;
                    glowEffect.style.background = `radial-gradient(
                        circle at ${glassX}% ${glassY}%,
                        rgba(255, 255, 255, 0.4) 0%,
                        rgba(255, 255, 255, 0.1) 70%
                    )`;
                }
            });

            // Reset on mouse leave
            card.addEventListener('mouseleave', function() {
                this.style.transform = '';

                // Reset glow effect
                const glowEffect = this.querySelector('.card-glow');
                if (glowEffect) {
                    glowEffect.style.background = '';
                }

                // If it's a featured card, maintain its scale
                if (this.classList.contains('featured')) {
                    this.style.transform = 'scale(1.05)';
                }
            });
        }
    });

    // Responsive adjustments
    window.addEventListener('resize', () => {
        clearTimeout(window.resizeTimer);
        window.resizeTimer = setTimeout(() => {
            updateCarouselDimensions();
        }, 250);
    });

    // Initialize carousel
    updateCarouselDimensions();
});

/* About Section */
.about-section {
    padding: 120px 0 180px; /* Aumentato padding bottom per più spazio */
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-color);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 128, 171, 0.2) 0%, rgba(186, 104, 200, 0.2) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    z-index: -1;
    transform: translate(20px, 20px);
    border-radius: 20px;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 0;
    background: var(--gradient-primary);
    color: var(--white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(255, 128, 171, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 128, 171, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 128, 171, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 128, 171, 0);
    }
}

.experience-badge .number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.about-content {
    padding-right: 20px;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.highlight-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0 50px 0; /* Aumentato margin bottom per più spazio dal bottone */
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 5px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(255, 128, 171, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 40px; /* Aggiunto margin bottom per più spazio */
}

.about-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: all 0.5s;
    z-index: -1;
    border-radius: 50px;
}

.about-btn:hover::before {
    width: 100%;
}

.about-btn span,
.about-btn i {
    position: relative;
    z-index: 2;
}

.about-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 128, 171, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .about-section {
        padding: 80px 0 120px; /* Ridotto su mobile ma mantenuto spazio extra */
    }

    .about-stats {
        margin: 25px 0 40px 0;
    }

    .about-btn {
        margin-bottom: 30px;
    }
}
/* CSS per i professionisti */
.professionals-instagram {
    margin: 2rem 0 1.5rem 0;
}

.professionals-instagram h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.instagram-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instagram-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.professional-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid #e74c3c;
}

.professional-details {
    display: flex;
    flex-direction: column;
}

.professional-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.instagram-handle {
    color: #E4405F;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.instagram-handle i {
    font-size: 1rem;
}

.coach-text {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .professionals-instagram {
        margin: 1.5rem 0 1rem 0;
    }

    .instagram-link {
        padding: 0.8rem;
    }

    .professional-avatar {
        width: 40px;
        height: 40px;
    }

    .professional-title {
        font-size: 0.9rem;
    }

    .instagram-handle {
        font-size: 0.8rem;
    }
}
/* Testimonials Section */
.testimonials-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    margin-top: 50px;
    padding: 30px 0;
}

.swiper-container {
    overflow: visible;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--light-gray);
    font-size: 40px;
    opacity: 0.5;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--light-gray);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 18px;
}

.swiper-pagination {
    position: relative;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--light-gray);
    opacity: 0.7;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-prev {
    left: -25px;
}

.swiper-button-next {
    right: -25px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary-color);
    color: var(--white);
}

.swiper-button-prev i,
.swiper-button-next i {
    font-size: 20px;
}

/* Contact Section */
.contact-section {
    padding: 120px 0 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
    margin-bottom: 100px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 30px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 128, 171, 0.1) 0%, rgba(186, 104, 200, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-info-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 128, 171, 0.4);
}

.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 30px var(--shadow-color);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: var(--gray-color);
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.1);
}

.form-control:focus + .form-border {
    width: 100%;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23880e4f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: all 0.5s;
    z-index: -1;
    border-radius: 10px;
}

.submit-btn:hover::before {
    width: 100%;
}

.submit-btn span,
.submit-btn i {
    position: relative;
    z-index: 2;
}

.submit-btn:hover {
    box-shadow: 0 10px 20px rgba(255, 128, 171, 0.3);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-about p {
    color: var(--gray-color);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--gray-color);
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-newsletter h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-newsletter p {
    color: var(--gray-color);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--gray-color);
    font-size: 14px;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
}

.footer-links-bottom a {
    color: var(--gray-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links-bottom a:hover {
    color: var(--primary-color);
}

/* /* Avatar Circle Button Style */
   .avatar-button {
       position: fixed;
       bottom: 30px;
       right: 30px;
       width: 60px;
       height: 60px;
       border-radius: 50%;
       background-color: #fff;
       box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
       display: flex;
       align-items: center;
       justify-content: center;
       cursor: pointer;
       z-index: 999;
       transition: transform 0.3s ease, box-shadow 0.3s ease;
       overflow: hidden;
   }

   .avatar-button:hover {
       transform: scale(1.1);
       box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
   }

   .avatar-button .button-pulse {
       position: absolute;
       width: 100%;
       height: 100%;
       border-radius: 50%;
       background-color: rgba(255, 255, 255, 0.7);
       z-index: -1;
       animation: pulse 2s infinite;
   }

   .avatar-button .avatar-img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       border-radius: 50%;
   }

   @keyframes pulse {
       0% {
           transform: scale(1);
           opacity: 1;
       }
       100% {
           transform: scale(1.5);
           opacity: 0;
       }
   }

   /* Aggiungi questo stile per il badge di notifica se necessario */
   .avatar-button::after {
       content: "";
       position: absolute;
       top: 0;
       right: 0;
       width: 15px;
       height: 15px;
       background-color: #FF80AB;
       border-radius: 50%;
       border: 2px solid #fff;
   }
/* Chat Popup */
.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    z-index: 98;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: var(--gradient-primary);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
}

.chat-title h3 {
    font-size: 16px;
    color: var(--white);
    margin: 0;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.online-status p {
    font-size: 12px;
    color: var(--white);
    opacity: 0.9;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-chat:hover {
    transform: scale(1.2);
}

.chat-messages {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f5f5f5;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 80%;
    animation: fadeIn 0.3s forwards;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-bubble {
    background-color: var(--white);
    padding: 12px 15px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.assistant .message-bubble {
    border-top-left-radius: 0;
}

.message.user .message-bubble {
    background: var(--gradient-primary);
    color: var(--white);
    border-top-right-radius: 0;
}

.message-time {
    font-size: 10px;
    color: #999;
    display: block;
    margin-top: 5px;
    text-align: right;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.quick-question {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.quick-question:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: var(--white);
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s;
}

.chat-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 128, 171, 0.1);
}

.chat-input button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:hover {
    transform: rotate(15deg);
    box-shadow: 0 5px 10px rgba(255, 128, 171, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(255, 128, 171, 0.4);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: block;
}

.modal-content {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    animation: zoomIn 0.3s forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 70px;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: checkmark 0.5s forwards;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-button:hover {
    background: var(--gradient-secondary);
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--dark-color);
    transform: rotate(90deg);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate,
[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-splitting] .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s, transform 0.3s;
}

[data-splitting].visible .char {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-image {
        max-width: 45%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-section {
        padding: 0px 0 100px;
    }
/* SFUMATURA ROSA SOTTO LA FOTO SU MOBILE */
@media (max-width: 768px) {
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: linear-gradient(
            to bottom,
            rgba(255, 128, 171, 0) 0%,
            rgba(255, 128, 171, 0.1) 30%,
            rgba(255, 128, 171, 0.2) 70%,
            rgba(255, 255, 255, 1) 100%
        );
        z-index: 2;
        pointer-events: none;
    }
}
    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .packages-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .package-card.featured {
        grid-column: span 2;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .packages-container {
        grid-template-columns: 1fr;
    }

    .package-card.featured {
        grid-column: auto;
        transform: scale(1);
    }

    .package-card.featured:hover {
        transform: translateY(-15px);
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 20px;
        bottom: 20px;
    }

    .chat-popup {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
    }

    .back-to-top {
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .contact-card,
    .contact-form {
        padding: 30px 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

/* Additional Animations */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 128, 171, 0.3);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(255, 128, 171, 0);
    }
}

.ripple-animation {
    animation: ripple 1.5s infinite;
}
/* Shop Section */
.shop-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    position: relative;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-product {
    border: 2px solid rgba(255, 128, 171, 0.3);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background: linear-gradient(90deg, #FF80AB 0%, #BA68C8 100%);
    color: white;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0 20px 20px 0;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 128, 171, 0.3);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
    opacity: 1;
}

.quick-view-btn:hover {
    background: #FF80AB;
    color: white;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #333;
}

.product-description {
    font-size: 14px;
    color: #777;
    margin: 0 0 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #FF80AB;
}

.original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #aaa;
}

.discount-tag {
    background-color: rgba(255, 128, 171, 0.1);
    color: #FF80AB;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    color: #999;
    font-size: 12px;
}

.product-variations {
    margin-bottom: 20px;
}

.variation-group {
    margin-bottom: 15px;
}

.variation-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    background: #f5f5f5;
}

.size-option.active {
    background: #FF80AB;
    border-color: #FF80AB;
    color: white;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f5f5f5;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-btn:hover {
    background: #FF80AB;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

.featured-btn {
    background: linear-gradient(90deg, #FF80AB 0%, #BA68C8 100%);
    color: white;
}

.featured-btn:hover {
    background: linear-gradient(90deg, #BA68C8 0%, #FF80AB 100%);
    box-shadow: 0 5px 20px rgba(255, 128, 171, 0.4);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-section {
        padding: 80px 0;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 20px;
    }

    .product-title {
        font-size: 16px;
    }

    .price-amount {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 250px;
    }
}
/* Color selector for products */
.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.color-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    color: #333;
    font-size: 16px;
}

.color-option[data-color="bianco"].active::after {
    color: #333;
}

.color-option[data-color="rosa"].active::after {
    color: #fff;
}

.color-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option:hover .color-name,
.color-option.active .color-name {
    opacity: 1;
}

/* FINE SHOP SECTION */
/* Register Section - Clean iOS Style with App Colors */
.register-section {
    padding: 8rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(221, 160, 221, 0.1) 0%, transparent 50%);
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Content */
.section-badge {
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.section-title {
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Clean Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 182, 193, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.feature-card h4 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* iOS Card */
.ios-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 182, 193, 0.2);
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.2);
}

.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
}

.card-header h3 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: #6c757d;
    font-size: 1rem;
}

.card-features {
    margin-bottom: 2.5rem;
}

.ios-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    border-radius: 50%;
    flex-shrink: 0;
}

.ios-feature span {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ios-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
}

.ios-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.5);
}

.login-option {
    text-align: center;
    margin-bottom: 2rem;
}

.login-option span {
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.login-link {
    color: #DDA0DD;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.badge i {
    color: #DDA0DD;
    font-size: 1.1rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .register-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .register-content {
        text-align: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ios-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .register-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .ios-card {
        padding: 2rem;
        border-radius: 25px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .ios-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .badge {
        flex-direction: row;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.app-icon {
    animation: float 3s ease-in-out infinite;
}
/* Carrello mobile - sempre visibile */
.mobile-cart-icon {
    display: none;
    position: relative;
    margin-right: 15px;
    z-index: 10;
}

.mobile-cart-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-cart-icon a:hover {
    color: var(--primary-color);
}

.mobile-cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Media queries per mostrare/nascondere i carrelli */
@media (max-width: 768px) {
    /* Mostra carrello mobile */
    .mobile-cart-icon {
        display: block;
    }

    /* Nascondi carrello desktop */
    .nav-links .cart-icon {
        display: none;
    }

    /* Aggiusta la disposizione degli elementi nell'header mobile */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-container > div:last-child {
        display: flex;
        align-items: center;
        gap: 15px;
    }
}

@media (min-width: 769px) {
    /* Nascondi carrello mobile */
    .mobile-cart-icon {
        display: none;
    }

    /* Mostra carrello desktop */
    .nav-links .cart-icon {
        display: block;
    }
}
/* CARRELLO MOBILE - Schermo intero come Lovable */
@media (max-width: 768px) {
    .mini-cart {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        max-width: none !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
    }

    .mini-cart.show {
        transform: translateX(0) !important;
    }

    .mini-cart-header {
        border-radius: 0 !important;
        padding: 20px !important;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mini-cart-items {
        flex: 1;
        max-height: none !important;
        padding: 20px !important;
        overflow-y: auto;
    }

    .mini-cart-footer {
        border-radius: 0 !important;
        position: sticky;
        bottom: 0;
        z-index: 10;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
}


/* PACCHETTI MOBILE - Lista verticale invece di carousel */
@media (max-width: 768px) {
    /* Nascondi i controlli del carousel su mobile */
    .carousel-controls.desktop-only {
        display: none !important;
    }

    /* Mostra indicatore swipe */
    .swipe-indicator.mobile-only {
        display: flex !important;
    }

    /* Modifica il layout dei pacchetti su mobile */
    .packages-carousel {
        overflow: visible !important;
    }

    .packages-track {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        transform: none !important;
        transition: none !important;
        padding: 0 !important;
    }

    .package-card {
        flex: none !important;
        width: 100% !important;
        min-width: auto !important;
        margin: 0 !important;
    }

    /* Disabilita gli eventi touch per il carousel su mobile */
    .packages-track {
        pointer-events: auto !important;
    }
}
/* Stili aggiuntivi per la sezione contact */
.contact-info-content small {
display: block;
color: #999;
font-size: 12px;
margin-top: 5px;
font-style: italic;
}
.contact-info-content a {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
}
.contact-info-content a:hover {
text-decoration: underline;
}
.form-header h3 {
color: var(--primary-color);
margin-bottom: 10px;
}
.form-header p {
color: #666;
font-size: 14px;
}
.form-footer {
background: #f9f9f9;
padding: 15px;
border-radius: 10px;
border-left: 4px solid var(--primary-color);
}
.social-contact h4 {
color: var(--dark-color);
margin-bottom: 15px;
}

/* 🍪 COOKIE POPUP - SOLUZIONE DEFINITIVA */
#cookiePopup {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    width: 400px !important;
    max-width: calc(100vw - 60px) !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px rgba(255, 128, 171, 0.3) !important;
    z-index: 2147483647 !important; /* Z-INDEX MASSIMO POSSIBILE */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    transform: translateY(120px) scale(0.7) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    border: 2px solid #FFB6C1 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

#cookiePopup.active {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Barra colorata in alto */
#cookiePopup::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: linear-gradient(90deg, #FF80AB 0%, #FFB6C1 50%, #DDA0DD 100%) !important;
}

/* Contenuto principale */
#cookiePopup .cookie-content {
    padding: 28px !important;
    position: relative !important;
}

/* Pulsante di chiusura */
#cookiePopup .cookie-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #999 !important;
    transition: all 0.3s ease !important;
}

#cookiePopup .cookie-close:hover {
    background: #FF80AB !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Testo del popup */
#cookiePopup .cookie-text {
    margin-bottom: 20px !important;
    padding-right: 15px !important;
}

#cookiePopup .cookie-text p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 0 !important;
}

#cookiePopup .cookie-text strong {
    color: #FF80AB !important;
    font-weight: 700 !important;
}

#cookiePopup .cookie-text a {
    color: #DDA0DD !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

#cookiePopup .cookie-text a:hover {
    text-decoration: underline !important;
}

/* Bottoni */
#cookiePopup .cookie-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

#cookiePopup .cookie-btn {
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

/* Bottone principale "Accetta" */
#cookiePopup .cookie-save {
    background: linear-gradient(135deg, #FF80AB 0%, #FFB6C1 100%) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(255, 128, 171, 0.3) !important;
}

#cookiePopup .cookie-save:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 128, 171, 0.4) !important;
}

/* Bottone secondario "Scopri di più" */
#cookiePopup .cookie-learn {
    background: transparent !important;
    color: #666 !important;
    border: 2px solid #e0e0e0 !important;
}

#cookiePopup .cookie-learn:hover {
    border-color: #FFB6C1 !important;
    color: #FFB6C1 !important;
    background: rgba(255, 182, 193, 0.05) !important;
}

/* Mobile - FORZA stili mobile */
@media (max-width: 480px) {
    #cookiePopup {
        bottom: 20px !important;
        right: 20px !important;
        left: 20px !important;
        width: auto !important;
        max-width: none !important;
    }

    #cookiePopup .cookie-content {
        padding: 24px !important;
    }
}

/* FORZA stili desktop per schermi grandi */
@media (min-width: 481px) {
    #cookiePopup {
        bottom: 30px !important;
        right: 30px !important;
        left: auto !important;
        width: 400px !important;
        max-width: 400px !important;
    }
}


/* Nascondi inizialmente le azioni mobile e il pulsante di login mobile */
.header-mobile-actions {
    display: none;
}
.mobile-login-btn {
    display: none;
}

/* Assicurati che il pulsante di login desktop sia visibile di default */
.desktop-login-btn {
    display: flex; /* O 'block' a seconda del layout desiderato */
}

@media (max-width: 768px) {
    /* Rimuovi completamente il menu hamburger e il suo contenuto */
    .menu-icon,
    .mobile-menu,
    .mobile-menu-btn {
        display: none !important;
    }

    /* Nascondi completamente i link di navigazione desktop su mobile */
    .nav-links {
        display: none;
    }

    /* Mostra il gruppo di azioni mobile */
    .header-mobile-actions {
        display: flex;
        align-items: center;
        gap: 15px; /* Spazio tra l'icona del carrello e il pulsante di login */
        margin-left: auto; /* Sposta il gruppo di azioni a destra */
    }

    /* Rendi visibile il pulsante di login mobile e adattalo */
    .mobile-login-btn {
        display: flex !important;
        padding: 8px 15px !important; /* Riduci il padding */
        font-size: 14px !important; /* Riduci la dimensione del font */
        box-shadow: none !important; /* Rimuovi l'ombra per un aspetto più pulito su mobile */
        /* I colori e gli effetti hover saranno ereditati dalla classe .login-btn */
    }

    /* Nascondi il pulsante di login desktop su mobile */
    .desktop-login-btn {
        display: none !important;
    }

    /* Assicurati che il contenitore di navigazione spazi correttamente gli elementi */
    .nav-container {
        justify-content: space-between;
    }

    /* Regola esistente per mostrare il carrello mobile, qui per contesto */
    .mobile-cart-icon {
        display: block;
    }
}