/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    z-index: 1;
    transition: all 0.6s ease;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 1rem;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* Brand Name Ottimizzato */
.brand-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.2), 0 0 10px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1.2s ease-out;
    cursor: pointer;
    position: relative;
    z-index: 10;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100vw;
    padding: 0 1rem;
    box-sizing: border-box;
}

.brand-name:hover {
    text-shadow: 0 0 1800px rgba(255, 255, 255, 0.15), 0 0 200px rgba(255, 255, 255, 0.2);
    box-shadow: 0px 0px 6px 3px #00000027;
}

/* EWH Name Ottimizzato */
.ewh-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.8rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: -2rem;
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.2), 0 0 10px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1.2s ease-out;
    cursor: default;
    position: relative;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100vw;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
}

/* Catalog Section */
.catalog {
    min-height: 100vh;
    padding: 4rem 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 100vh;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.catalog-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Product Cards */
.product-card {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    align-items: center;
    justify-items: center;
    z-index: 15;
    pointer-events: auto;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 20, 0.95);
}

.product-card:active {
    transform: translateY(-5px) scale(0.98);
    border-color: rgba(255, 255, 255, 0.5);
}

.product-image img, .product-image svg {
    width: 100%;
    height: auto;
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.product-info {
    text-align: center;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: 0.025em;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #333333, #555555);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    align-items: center !important;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    float: none;
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
}

.modal-content {
    position: relative;
    background: #181818;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-width: 95vw;
    width: 420px;
    margin: 0;
    padding: 1.5rem 1rem;
    z-index: 1010;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: -25px;
}

.gallery-nav.next {
    right: -25px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.modal-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.customize-btn {
    background: linear-gradient(135deg, #ffffff, #dddddd);
    color: #000000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.customize-btn:hover {
    background: linear-gradient(135deg, #dddddd, #bbbbbb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Media Queries Ottimizzate */

/* Schermi medi (tablet) */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .catalog {
        padding: 2rem 0;
    }
    
    .product-card {
        padding: 1.25rem;
    }
    
    .brand-name {
        font-size: clamp(2rem, 8vw, 4rem);
        letter-spacing: 0.1em;
        padding: 0 1.5rem;
    }
    
    .ewh-name {
        font-size: clamp(0.8rem, 2.2vw, 1.2rem);
        letter-spacing: 0.1em;
        padding: 0 1.5rem;
        margin-top: -2.5rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
}

/* Schermi piccoli (smartphone standard) */
@media (max-width: 480px) {
    .brand-name {
        font-size: clamp(1.8rem, 9vw, 3rem);
        letter-spacing: 0.08em;
        padding: 0 1rem;
    }
    
    .ewh-name {
        font-size: clamp(0.7rem, 2vw, 1.1rem);
        letter-spacing: 0.08em;
        padding: 0 1rem;
        margin-top: -2rem;
    }
    
    .catalog-title {
        font-size: 1.2rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-card {
        padding: 0.5rem;
    }
}

/* Schermi molto piccoli (smartphone compatti) */
@media (max-width: 390px) {
    .brand-name {
        font-size: clamp(1.6rem, 10vw, 2.5rem);
        letter-spacing: 0.06em;
        padding: 0 0.5rem;
    }
    
    .ewh-name {
        font-size: clamp(0.6rem, 1.8vw, 1rem);
        letter-spacing: 0.06em;
        padding: 0 0.5rem;
        margin-top: -2.5rem;
    }
}

/* Schermi extra piccoli (iPhone SE, etc.) */
@media (max-width: 320px) {
    .brand-name {
        font-size: clamp(1.4rem, 11vw, 2rem);
        letter-spacing: 0.04em;
        padding: 0 0.25rem;
        line-height: 1.1;
    }
    
    .ewh-name {
        font-size: clamp(0.45rem, 1.4vw, 0.8rem);
        letter-spacing: 0.04em;
        padding: 0 0.25rem;
        margin-top: -0.7rem;
        line-height: 1.2;
    }
}

/* Orientamento landscape su mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .brand-name {
        font-size: clamp(1.5rem, 8vh, 2.5rem);
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }
    
    .ewh-name {
        font-size: clamp(0.5rem, 3vh, 1rem);
        margin-top: -0.9rem;
    }
}

/* Griglia responsive */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-nav.prev {
        left: -20px;
    }
    
    .gallery-nav.next {
        right: -20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .modal-title {
        font-size: 1.1rem;
    }
    .modal-content {
        padding: 0.5rem;
    }
}

/* Galleria dots più grandi su mobile */
.gallery-dots .dot {
    width: 12px;
    height: 12px;
    margin: 0 3px;
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-name {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .product-card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .scroll-indicator {
        display: block;
    }
    
    .brand-name {
        padding: 1rem;
    }
    
    .brand-name:hover {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(255, 255, 255, 0.1);
    }
}

/* Fallback per browser che non supportano clamp() */
@supports not (font-size: clamp(1rem, 1vw, 1rem)) {
    @media (max-width: 768px) {
        .brand-name {
            font-size: 3rem;
        }
        .ewh-name {
            font-size: 1rem;
        }
    }
    
    @media (max-width: 480px) {
        .brand-name {
            font-size: 2.5rem;
        }
        .ewh-name {
            font-size: 0.8rem;
        }
    }
    
    @media (max-width: 320px) {
        .brand-name {
            font-size: 2rem;
        }
        .ewh-name {
            font-size: 0.7rem;
        }
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000000;
        color: #ffffff;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .brand-name {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .product-card {
        transition: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .modal {
        transition: none;
    }
    
    .gallery-nav:hover {
        transform: translateY(-50%);
    }
    
    .customize-btn:hover {
        transform: none;
    }
}
/*button styles */
/* .social-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}
 */
/* .social-button {
  display: inline-grid;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-top: -2rem;
  background-color: #fff;
  transition: 0.3s;
}

.social-button:hover {
  background-color: #ffffff;
  box-shadow: 0px 0px 6px 3px #00000027;
}

.social-buttons svg {
  transition: 0.3s;
  height: 20px;
}

.instagram {
  background-color: #141414;
}

.instagram svg {
  fill: #ffffff;
}

.instagram:hover svg {
  fill: #222222;
}
 */


