/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
img {
    content-visibility: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Remove outline from buttons on mobile */
button, .contact-btn, .whatsapp-btn, .instagram-btn, .social-link {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

button:focus, .contact-btn:focus, .whatsapp-btn:focus, .instagram-btn:focus, .social-link:focus {
    outline: none;
    box-shadow: none;
}

button:active, .contact-btn:active, .whatsapp-btn:active, .instagram-btn:active, .social-link:active {
    outline: none;
}

.products-grid {
    content-visibility: auto;
}

.page:not(.active) {
    content-visibility: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

#homepage:not(.active) {
    display: none !important;
}

/* Homepage Styles */
#homepage {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('background.png') center center / cover no-repeat;
    transition: all 0.5s ease;
}


.intro-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease;
    overscroll-behavior: contain;
    touch-action: none;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.intro-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    transform: translateZ(0);
}

/* Mobile/portrait: mostra il video intero (niente crop) */
@media (max-width: 768px), (orientation: portrait) {
    .intro-video {
        object-fit: contain;
        width: 100vw;
        height: 100vh;
    }
}

.intro-title {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: clamp(1.4rem, 3.8vw, 3rem);
    text-shadow: 0 4px 30px rgba(255,255,255,0.25);
}

.homepage-content {
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.8s ease 0.15s;
}

#homepage.intro-finished .homepage-content {
    opacity: 1;
}

/* Blocca lo scroll quando l'intro è attiva */
body.lock-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

.brand-text-container {
    margin-bottom: 3rem;
}

.brand-text {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.shark-container {
    margin: 2rem 0;
}

.shark-image {
    width: 700px;
    height: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: sharkFloat 4s ease-in-out infinite;
    will-change: transform;
}

.shark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes sharkFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}


.catalog-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    margin-top: 4rem;
}

.catalog-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Header Styles */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
}

.catalog-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    animation: logoFloat 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    will-change: transform;
}

.header-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.menu-btn, .search-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover, .search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
}

.social-link.whatsapp {
    background: #25d366;
    color: #ffffff;
    outline: none;
    border: none;
}

.social-link.whatsapp:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Social buttons */

.social-link.whatsapp:hover {
    background: #20ba5a;
    }

.social-link.instagram:hover {
    opacity: 0.9;
}

/* Navigation Menu */
.navigation-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 200;
    transition: left 0.3s ease;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.navigation-menu.active {
    left: 0;
}

.navigation-menu ul {
    list-style: none;
    margin-top: 4rem;
}

.navigation-menu li {
    margin: 1rem 0;
}

.navigation-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navigation-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

/* Main Content */
.catalog-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* How it Works Section */
.how-it-works {
    margin-bottom: 4rem;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, #333333, #666666);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.step p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Product Categories */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 4rem;
    padding: 0;
    box-sizing: border-box;
}

#accessori-page .product-categories {
    justify-content: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    #accessori-page .product-categories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0;
        justify-content: flex-start;
    }
    
    #accessori-page .category-card {
        flex: 0 0 75%;
        min-width: 75%;
        max-width: 75%;
    }
}

@media (max-width: 480px) {
    #accessori-page .category-card {
        flex: 0 0 85%;
        min-width: 85%;
        max-width: 85%;
    }
}

/* Override finale per centratura del titolo categoria su mobile molto piccolo */
@media (max-width: 480px) {
    #category-title {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
}

#accessori-page .category-card {
    flex: 0 1 calc(25% - 2rem);
    max-width: 300px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    width: calc(20% - 1rem);
    justify-content: flex-start;
}

.category-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.category-image {
    width: 100%;
    height: 220px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1a1a1a, #333333);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-placeholder {
    font-size: 4rem;
    opacity: 0.7;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    margin-top: calc(0.8rem - 30px);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.explore-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.explore-btn:hover {
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    transform: scale(1.05);
}

/* Reviews Section */
.reviews {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    width: 100%;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.reviews-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.rating {
    display: flex;
    gap: 0.5rem;
}

.rating i {
    font-size: 1.5rem;
    color: #ffd700;
}

.reviews-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.review-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.review-image.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.review-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: contain;
    display: block;
}

/* Carousel buttons removed - automatic scrolling only */


/* Category Page */
.category-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.category-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 2rem;
    position: relative;
}

#category-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    margin-left: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    grid-column: 1;
    justify-self: start;
    padding-left: 0;
}

/* Sposta il titolo a sinistra per "invernale" per far spazio al bottone cerca */
#category-title[data-category="invernale"] {
    margin-left: -2rem;
    padding-left: 0;
}

/* Search Container */
.search-bar-wrapper {
    position: relative;
    max-width: 300px;
    width: 300px;
    grid-column: 3;
    justify-self: end;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.5rem 0.8rem 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.search-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.product-item img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 0.2rem;
}

.product-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: -0.8rem;
    margin-bottom: 0.5rem;
}

/* Product Page */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.product-header {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    max-width: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: #ffffff;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
}

.product-details h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: -1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.size-selection {
    margin-bottom: 2rem;
}

.size-selection h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#size-selector {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

#size-selector option {
    background: #000000;
    color: #ffffff;
}

.product-features h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* iPad specific styles - mantieni layout desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-categories {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 4rem;
    }
    
    .category-card {
        width: calc(20% - 1rem);
        min-width: calc(20% - 1rem);
        max-width: calc(20% - 1rem);
        min-height: 360px;
        padding: 1.5rem;
        text-align: center;
    }
    
    .category-image {
        height: 220px;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 0.95rem;
        margin: 0;
        margin-top: calc(0.8rem - 30px);
        margin-bottom: 0.5rem;
        text-align: center;
        padding: 0 1rem;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.2;
        max-width: 100%;
        box-sizing: border-box;
        letter-spacing: 0.03em;
    }
    
    .category-card {
        padding: 1.5rem 0.5rem;
        box-sizing: border-box;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .brand-text {
        max-width: 400px;
    }
    
    .shark-image {
        width: 500px;
        height: 500px;
    }
    
    .header-logo {
        height: 80px;
    }
    
    .header-center {
        padding-left: 18px;
    }
    
    .catalog-header {
        padding: 1rem;
    }
    
    .catalog-logo h2 {
        font-size: 1.4rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .product-categories {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .category-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 1.5rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .category-image {
        height: 300px;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .category-img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-radius: 12px;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
        margin: 0;
        margin-top: -0.15rem;
        margin-bottom: 0.5rem;
        text-align: center;
        padding: 0 1rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        line-height: 1.3;
        letter-spacing: 0.02em;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Accessori: consenti a capo per "Ciabatte Uomo/Donna" */
    #accessori-page .category-card h3 {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
        line-height: 1.25;
    }
    
    .explore-btn {
        font-size: 1.2rem;
        padding: 1.2rem 2.5rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .category-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .category-title-wrapper {
        width: 100%;
    }
    
    .category-title-row {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    #category-title {
        margin-left: 0;
        text-align: left;
        padding: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .search-bar-wrapper {
        width: auto;
        max-width: 60px;
        min-width: 60px;
        margin-left: 0;
        transition: all 0.3s ease;
        align-self: flex-start;
    }
    
    .search-bar-wrapper:focus-within {
        max-width: 100%;
        min-width: 200px;
        width: 100%;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.6rem 0.6rem 2.5rem;
        width: 100%;
        min-width: 60px;
    }
    
    .search-input:not(:focus) {
        width: 60px;
        padding-left: 2.5rem;
        padding-right: 0.6rem;
    }
    
    .search-input:not(:focus)::placeholder {
        opacity: 0;
        color: transparent;
    }
    
    .search-input:focus {
        width: 100%;
        min-width: 200px;
        padding-left: 3rem;
        padding-right: 1rem;
    }
    
    .search-input:focus::placeholder {
        opacity: 0.7;
        color: rgba(255, 255, 255, 0.5);
    }
    
    .search-icon {
        font-size: 1.2rem;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        transition: all 0.3s ease;
    }
    
    .search-bar-wrapper:focus-within .search-icon {
        left: 1.2rem;
        transform: translateY(-50%);
    }
    
    .menu-btn, .search-btn {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .product-main {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        overflow-x: hidden;
        max-width: 100%;
        min-height: auto;
    }
    
    
    .product-gallery {
        position: relative;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .main-image {
        width: 100%;
        min-height: 300px;
        max-height: 60vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }
    
    .main-image img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }
    
    .product-image-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .product-image-placeholder img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }
    
    .thumbnail-images {
        display: flex;
        gap: 0.5rem;
        margin-top: 1rem;
        overflow-x: auto;
        padding: 0.5rem 0;
    }
    
    .thumbnail {
        min-width: 60px;
        max-width: 60px;
        height: 60px;
    }
    
    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-info {
        position: relative;
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 2rem;
    }
    
    .product-details {
        position: relative;
    }
    
    .product-details h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        margin-top: -0.5rem;
        position: relative;
    }
    
    .product-details p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .size-selection {
        position: relative;
        margin-bottom: 1.5rem;
    }
    
    .product-features {
        position: relative;
    }
    
    .contact-buttons {
        position: sticky;
        bottom: 0;
        background: rgba(0, 0, 0, 0.98);
        padding: 1rem;
        margin: 1rem -1.5rem -1.5rem -1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10;
    }
    
    .reviews-container {
        max-width: 400px;
    }
    
    .reviews-carousel {
        max-width: 400px;
        height: 500px;
    }
    
    .reviews-header {
        gap: 0.8rem;
    }
    
    .reviews-header h2 {
        font-size: 1.8rem;
    }
    
    .rating i {
        font-size: 1.3rem;
    }
    
.navigation-menu {
    width: 100%;
    left: -100%;
}
}

@media (max-width: 480px) {
    .homepage-content {
        padding: 1rem;
    }
    
    .brand-text {
        max-width: 300px;
    }
    
    .shark-image {
        width: 350px;
        height: 350px;
    }
    
    .header-logo {
        height: 60px;
    }
    
    .product-categories {
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .category-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 1.5rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        box-sizing: border-box;
    }
    
    .category-image {
        height: 280px;
        margin-bottom: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1.25rem;
        margin: 0;
        margin-top: -0.25rem;
        margin-bottom: 0.5rem;
        padding: 0 1rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        line-height: 1.3;
        letter-spacing: 0.02em;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .explore-btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    
    .catalog-main {
        padding: 1rem;
    }
    
    .header-center {
        padding-left: 10px;
    }
    
    .menu-btn, .search-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .how-it-works h2 {
        font-size: 2rem;
    }
    
    .category-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-title-wrapper {
        width: 100%;
    }
    
    .category-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    #category-title {
        font-size: 2rem;
        margin-left: 0;
        text-align: left;
        padding: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .search-bar-wrapper {
        width: auto;
        max-width: 60px;
        min-width: 60px;
        margin-left: 0;
        transition: all 0.3s ease;
    }
    
    .search-bar-wrapper:focus-within {
        max-width: 100%;
        min-width: 200px;
        width: 100%;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.6rem 0.6rem 2.5rem;
        width: 100%;
        min-width: 60px;
    }
    
    .search-input:not(:focus) {
        width: 60px;
        padding-left: 2.5rem;
        padding-right: 0.6rem;
    }
    
    .search-input:not(:focus)::placeholder {
        opacity: 0;
        color: transparent;
    }
    
    .search-input:focus {
        width: 100%;
        min-width: 200px;
        padding-left: 3rem;
        padding-right: 1rem;
    }
    
    .search-input:focus::placeholder {
        opacity: 0.7;
        color: rgba(255, 255, 255, 0.5);
    }
    
    .search-icon {
        font-size: 1.2rem;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        transition: all 0.3s ease;
    }
    
    .search-bar-wrapper:focus-within .search-icon {
        left: 1.2rem;
        transform: translateY(-50%);
    }
    
    .product-details h1 {
        font-size: 2rem;
    }
}

/* Video sfondo mobile */
/* Disabilitato: non usiamo più il video di sfondo */
#mobile-video-bg { display: none !important; }
