/* --- VARIABILI GLOBALI --- */
:root {
    --navy-header: #121d2b;
    --navy-text: #1a2634;
    --grey-bg: #f5f5f5;
    --white: #ffffff;
    --accent: #8e1b54; 
    --deep-blue: #1a232e;
    --bright-blue: #3a4b5c;
    --soft-blue: #a0c4ff;
}

/* --- RESET E BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--grey-bg);
    color: var(--navy-text);
    overflow-x: hidden;
}

/* --- HEADER (Versione PC: Statica in alto) --- */
.main-header {
    width: 100%;
    height: 80px;
    position: absolute; 
    top: 0;
    left: 0;
    background: var(--deep-blue);
    display: flex;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    width: 100%;
    height: 100%;
}

.logo {
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    z-index: 3005; 
    text-decoration: none;
}

/* --- LINKS E ICONE --- */
.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; color: var(--white); }

/* --- CARD PRODOTTO --- */
.product-wrapper {
    padding: 40px 5%;
    margin-top: 80px; /* SISTEMATO: Spinge giù il contenuto su PC */
}

.product-card {
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.btn-back {
    text-decoration: none;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.btn-back:hover {
    color: var(--navy-text);
}

/* --- GRIGLIA PRINCIPALE --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- SEZIONE GALLERY --- */
.product-image-section {
    width: 100%;
    min-width: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fcfcfc;
    border-radius: 15px;
    overflow: hidden; 
    border: 1px solid #f0f0f0;
}

.image-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-track img {
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    box-sizing: border-box;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    transition: 0.3s;
    font-size: 1.2rem;
}

.nav-arrow:hover { background: var(--navy-text); color: white; }
.nav-arrow.left { left: 15px; }
.nav-arrow.right { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--navy-text);
    width: 22px;
    border-radius: 10px;
}

/* --- SEZIONE INFO --- */
.product-info-section {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: var(--navy-text);
    text-transform: uppercase;
}

.product-subtitle {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.tabs-menu {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-link {
    background: none;
    border: none;
    padding: 12px 0;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

.tab-link.active { color: var(--navy-text); }
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--navy-text);
}

.tab-content {
    display: none;
    line-height: 1.7;
    color: #555;
    min-height: 180px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-wish {
    background: white;
    border: 1px solid #ddd;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-contact {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(142, 27, 84, 0.2);
}

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

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.4s ease;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .main-header { 
        height: 70px; 
        position: fixed; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    body { padding-top: 0; }
    
    .product-wrapper {
        margin-top: 70px; /* SISTEMATO: Spinge giù il contenuto su Mobile */
        padding: 20px 5%;
    }

    .top-nav { padding: 0 25px; }
    .mobile-menu-btn { display: flex; }

    .nav-links {
        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; /* AGGIUNTO: Centra scritte */
        gap: 30px;
        transform: translateY(-30px);
        transition: all 0.5s ease;
        z-index: 3000;
    }

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

    /* MODIFICA ESSENZIALE: Font grande come in Home */
    .nav-item {
        font-size: 1.8rem;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

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

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

@media (max-width: 900px) {
    .product-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    h1 { font-size: 2rem; }
    .product-card { padding: 20px; }
}



/* --- FINAL FOOTER --- */
.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;
    }
}




#rev {
    max-height: 300px; /* Aggiunge uno scroll se ci sono troppe recensioni */
    overflow-y: auto;
    padding-right: 10px;
}

.review-item {
    animation: fadeIn 0.5s ease forwards;
}

.stars ion-icon {
    font-size: 0.9rem;
    margin-left: 2px;
}



.star-clickable {
    transition: transform 0.2s ease, color 0.2s ease;
}

.star-clickable:hover {
    transform: scale(1.2);
}

.add-review-box input:focus, 
.add-review-box textarea:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(142, 27, 84, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}




#reviews-container {
    max-height: 500px; /* Altezza massima per la lista */
    overflow-y: auto;
    padding-right: 15px;
}

/* Personalizzazione scrollbar per eleganza */
#reviews-container::-webkit-scrollbar { width: 5px; }
#reviews-container::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }