:root {
    --deep-blue: #1a232e;
    --bright-blue: #3a4b5c;
    --soft-blue: #a0c4ff;
    --white: #ffffff;
    --light-bg: #ffffff; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--deep-blue);
    line-height: 1.6;
    overflow-x: hidden; 
}

/* --- HEADER & WATERMARK --- */
.main-header {
    height: 60vh;
    width: 100%;
    position: relative;
    background: radial-gradient(circle at 50% 50%, var(--bright-blue) 0%, var(--deep-blue) 100%);
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.bg-watermark-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}

.background-watermark {
    font-size: 11vw; 
    font-weight: 900;
    color: var(--white);
    opacity: 0.02; 
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
    text-transform: uppercase;
    transform: scale(1.25, 2.8); 
    transform-origin: center;
    letter-spacing: -0.1vw; 
}

/* --- NAVBAR (DESKTOP) --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    z-index: 2000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav.sticky {
    padding: 15px 50px;
    background: rgba(26, 35, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(160, 196, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-weight: 900;
    letter-spacing: 2px;
    z-index: 3005; 
}

/* --- HAMBURGER BUTTON --- */
.mobile-menu-btn {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 3005;
    background: transparent;
    border: none;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3005; 
}

.nav-item, .fav-link, .login-link {
    text-decoration: none;
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.nav-item::after, .fav-link::after, .login-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--soft-blue);
    transition: width 0.3s ease-in-out;
}

.nav-item:hover, .fav-link:hover, .login-link:hover { color: var(--soft-blue); }
.nav-item:hover::after, .fav-link:hover::after, .login-link:hover::after { width: 100%; }

.separator { color: rgba(255, 255, 255, 0.2); font-size: 0.6rem; }
.icon { font-size: 22px; display: flex; }

/* --- HERO CONTENT & PRODOTTO --- */
.hero-content {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 5%;
    align-items: center;
    z-index: 5;
    position: relative;
    margin-top: 60px;
}

.left-panel { justify-self: end; padding-right: 60px; }
.product-area { justify-self: start; padding-left: 60px; }

.main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-align: right;
}

.featured-product-link {
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.featured-product-img {
    max-width: 100%;
    max-height: 38vh; 
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: filter 0.6s ease;
}

.featured-product-link:hover { transform: scale(1.05); }

.content-section {
    height: 100vh;
    width: 100%;
    background-color: var(--light-bg);
}

/* --- MEDIA QUERIES (MOBILE) --- */
@media (max-width: 992px) {
    .main-header {
        height: 45vh; /* Leggermente più alto per ospitare elementi più grandi */
        min-height: 420px; 
    }

    /* WATERMARK: Ripristinato ai valori originali del desktop */
    .background-watermark {
        font-size: 11vw; 
        transform: scale(1.25, 2.8); 
        opacity: 0.02;
    }

    .top-nav {
        display: flex;
        justify-content: space-between;
        padding: 15px 25px;
    }

    .mobile-menu-btn { display: flex; }

    .nav-links {
        display: flex;
        opacity: 0;
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(26, 35, 46, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 3000; 
        transform: translateY(-30px);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-item {
        font-size: 1.8rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active .nav-item { opacity: 1; transform: translateY(0); }

    .separator, .fav-text, .login-text { display: none; }

    /* CONTENUTO MOBILE: Titolo più grande, borsa ingrandita e riposizionamento */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px; 
        margin-top: 65px; /* Abbassato leggermente rispetto al precedente */
    }

    .left-panel, .product-area {
        justify-self: center;
        padding: 0;
    }

    .main-title {
        text-align: center;
        font-size: clamp(3.2rem, 11vw, 4.2rem); /* Più grande e d'impatto */
        line-height: 0.8;
        letter-spacing: -3px;
        width: 100%;
    }

    .featured-product-img {
        max-height: 22vh; /* Ingrandita rispetto al precedente 16vh/18vh */
        pointer-events: auto;
    }
}







/* --- LAYOUT PAGINA (Per centrare le card) --- */
body {
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Sfondo neutro per far risaltare il blu */
}

/* --- GRIGLIA --- */
.francesca-grid {
    display: inline-flex;
    vertical-align: top;
    margin: 20px;
    text-align: left;
}

/* --- CONTENITORE CARD (Con Hover Leggerissimo) --- */
.francesca-card-container {
    width: 300px;
    background-color: #1a2a3a;
    border-radius: 35px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effetto Over Leggerissimo */
.francesca-card-container:hover {
    transform: translateY(-5px); /* Si alza appena */
    box-shadow: 0 12px 30px rgba(0,0,0,0.3); /* L'ombra si ammorbidisce */
}

/* --- BOX IMMAGINE --- */
.francesca-card-image-box {
    position: relative;
    background-color: #ffffff;
    height: 260px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.francesca-card-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* --- IL CUORE (Potenziato) --- */
.francesca-card-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1a2a3a;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.francesca-card-wishlist ion-icon {
    font-size: 28px;
}

.francesca-card-wishlist:hover {
    transform: scale(1.2); /* Pop più evidente al passaggio */
}

/* ANIMAZIONE LIKE POTENZIATA */
.francesca-card-wishlist.is-active ion-icon {
    animation: heartPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.5);
    color: white;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.6); } /* Balzo più grande */
    60% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

/* PARTICELLE ESPLOSIONE (Più ampie) */
.francesca-card-wishlist .particle {
    position: absolute;
    width: 8px; /* Leggermente più grandi */
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    top: 50%;
    left: 50%;
}

.francesca-card-wishlist.is-active .particle {
    animation: particlesExplosion 0.7s ease-out forwards;
}

/* Colori e traiettorie più spinte */
.francesca-card-wishlist .particle:nth-child(2) { background: #ff4757; --tw-y: -60px; --tw-x: -25px; }
.francesca-card-wishlist .particle:nth-child(3) { background: #ffbc00; --tw-y: 60px; --tw-x: 25px; }
.francesca-card-wishlist .particle:nth-child(4) { background: #2ed573; --tw-x: -60px; --tw-y: 20px; }
.francesca-card-wishlist .particle:nth-child(5) { background: #1e90ff; --tw-x: 60px; --tw-y: -20px; }

@keyframes particlesExplosion {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tw-x)), calc(-50% + var(--tw-y))) scale(0); opacity: 0; }
}

/* --- INFO E TESTI --- */
.francesca-card-info {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.francesca-text-content {
    flex-grow: 1;
}

.francesca-card-title {
    margin: 5px 0;
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.francesca-card-category {
    font-size: 11px;
    color: #8fa1b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.francesca-card-description {
    font-size: 14px;
    color: #d1d9e0;
    margin: 10px 0 20px 0;
    line-height: 1.4;
}

/* --- BOTTONE (Ingrandimento) --- */
.francesca-card-footer {
    margin-top: auto;
}

.francesca-card-button {
    display: block;
    padding: 12px 0;
    background-color: #ffffff;
    color: #1a2a3a;
    text-align: center;
    text-decoration: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.francesca-card-button:hover {
    transform: scale(1.06);
}

/* Stato Like attivo (Rosso) */
.francesca-card-wishlist.is-active {
    background-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4); /* Bagliore quando attivo */
}





.final-footer {
    background-color: #1a2533; /* Ripristinato lo sfondo originale */
    color: #ffffff;
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Indispensabile per le icone a destra */
    padding: 0 40px;
}

/* Titolo Brand Centrale e Ingrandito */
.brand-title {
    font-size: 18px; 
    letter-spacing: 5px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

/* Icone spostate a DESTRA */
.social-icons-center {
    position: absolute;
    right: 40px; 
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 25px;
}

.social-icons-center a {
    color: #ffffff;
    font-size: 1.3rem;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.social-icons-center a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Copyright Centrale */
.copyright-text {
    font-size: 0.90rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    letter-spacing: 1px;
}

/* Responsive per schermi piccoli */
@media (max-width: 850px) {
    .social-icons-center {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}



/* --- SEZIONE TITOLI (DESKTOP & GENERAL) --- */
.fr-section-container {
    text-align: center;
    padding: 70px 20px 20px 20px;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
}

.fr-main-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 52px; 
    font-weight: 900;
    color: #1a2a3a; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 5px 0;
    line-height: 1.1;
}

.fr-title-underline {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #1a2a3a;
    margin: 5px auto 10px auto;
}

.fr-sub-title {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-style: italic;
    color: #444444;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.3;
}

/* --- RESPONSIVE MOBILE (SOTTO 768px) --- */
@media (max-width: 768px) {
    .fr-main-title { font-size: 34px; }
    .fr-sub-title { font-size: 18px; }
    
    /* Ridotto il padding inferiore per avvicinare i titoli alle card correttamente */
    .fr-section-container { padding: 40px 15px 0px 15px; }

    /* Contenitore Carosello: rimosso margin-top negativo che tagliava le card */
    .francesca-section-wrapper {
        width: 100%;
        /* Fondamentale: deve essere visible verticalmente per non tagliare le card */
        overflow: visible; 
        padding: 40px 0 60px 0; 
        box-sizing: border-box;
    }

    /* Binario di scorrimento */
    .cards-mobile-wrapper {
        display: flex;
        overflow-x: auto;
        /* IMPORTANTE: permette alla card di espandersi senza limiti verticali */
        overflow-y: visible; 
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 20px 15%; /* Aggiunto padding top/bottom interno */
        gap: 20px;
        align-items: center;
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }

    .cards-mobile-wrapper::-webkit-scrollbar {
        display: none;
    }

    .francesca-grid {
        flex: 0 0 auto;
        width: 70vw;    
        max-width: 280px; 
        scroll-snap-align: center;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
        transform: scale(0.9);
        opacity: 0.6;
        margin: 0 !important;
        /* Assicura che la card non venga tagliata ai bordi durante lo scroll */
        overflow: visible; 
    }

    /* Card attiva al centro: scale moderato per non sbordare */
    .francesca-grid.is-featured {
        transform: scale(1.02); /* Leggermente ridotto per sicurezza */
        opacity: 1;
        z-index: 10;
    }

    .francesca-card-container {
        width: 100% !important;
        margin: 0 auto;
        box-sizing: border-box;
        /* Ombra più contenuta per evitare tagli */
        box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        background-color: #1a232e; /* Assicurati che il colore sia quello corretto */
        border-radius: 35px;
        overflow: hidden; /* Mantiene il contenuto dentro i bordi arrotondati */
    }
}