@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

*{
    padding: 0;
    margin: 0;
    font-weight: 700;
    box-sizing: border-box;
    color: #111; /* TESTO SCURO DI DEFAULT */
}

body{
    background-color: #ffffff;
    font-family: 'Noto Sans JP';
}

@font-face {
    font-family: 'SF Display Pro';
    font-weight: 400;
    src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff');
}

/* —————————————————————————————— */
/* INFO BAR */
/* —————————————————————————————— */

.info{
    background: linear-gradient(135deg, #f200ff 0%, #65044d 50%, #800080 100%);
    height: 6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 119, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.info p{
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    color: white; /* necessario */
}

/* —————————————————————————————— */
/* NAV BAR */
/* —————————————————————————————— */

.nav-bar{
    background-color: white;
    height: 10vh;
    width: 100%;
    position: absolute;
    border-radius: 0% 0% 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    z-index: 1000;
}

.nav-bar .logo{
    position: absolute;
    left: 5%;
}

.nav-bar .logo img {
    height: 500px;
    margin-top: 3%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-bar .logo img:hover {
    transform: scale(1.05);
}

.nav-bar .logo a{
    text-decoration: none;
    display: block;
}

.nav-bar .sections{
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-bar .sections li {
    display: flex;
    gap: 30px;
    list-style: none;
    margin-top: 0;
    justify-content: center;
}

.nav-bar .sections li ul a, 
.nav-bar .sections li ul a span {
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: #111; /* visibile su sfondo bianco */
}

.nav-bar .sections li ul a:hover{
    background-color: rgb(0, 0, 0);
    color: white;
    span{ color: white; }
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 5%;
}

.menu-toggle i{
    color: #4f4f4f;
    font-size: 28px;
}

/* —————————————————————————————— */
/* MOBILE MENU */
/* —————————————————————————————— */

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 200px;
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
    background: linear-gradient(to bottom, black 30%, purple);
    padding: 60px 15px 20px 15px;
    transition: right 0.3s ease;
    z-index: 1001;
    border-radius: 10px 0 0 10px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    color: white;
}

.mobile-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* —————————————————————————————— */
/* GALLERY */
/* —————————————————————————————— */

.gallery-container {
    width: 100%;
    position: relative;
    background-color: black;
}

.two-photos {
    display: flex;
    width: 100%;
    flex-direction: row !important;
}

.left-photo,
.right-photo {
    width: 50%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    opacity: 0.7;
    background-color: black;
}

.shop-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    border: none;
    width: 220px;
    height: 60px;
    border-radius: 10px;
    z-index: 10;
    transition: all 0.3s ease;
}

.shop-btn:hover{
    transform: translate(-50%, -50%) scale(1.05);
}

.shop-btn a{
    color: #111;
    text-decoration: none;
}

/* —————————————————————————————— */
/* LOADING / ERROR */
/* —————————————————————————————— */

.loading-container {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #00bfff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    color: #ff6b6b;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.retry-btn {
    background: #00bfff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #0077ff;
    transform: scale(1.05);
}

/* —————————————————————————————— */
/* TAGS */
/* —————————————————————————————— */

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.product-tags {
    margin: 15px 0;
}

.tag {
    display: inline-block;
    background: rgba(0, 123, 255, 0.15);
    color: #004c80;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* —————————————————————————————— */
/* MARQUEE */
/* —————————————————————————————— */

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    color: #111;
    font-size: 24px;
    font-family: Arial, sans-serif;
    margin-top: 1%;
}

.marquee-track {
    display: inline-flex;
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    padding-right: 80px;
}

/* —————————————————————————————— */
/* MAIN SECTIONS */
/* —————————————————————————————— */

.main {
    width: 100%;
    padding-bottom: 50px;
}

.motto h1 {
    text-align: center;
    margin-top: 5%;
    margin-bottom: 5%;
    font-size: 3rem;
    color: #111;
}

.box-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 40px;
    margin-bottom: 80px;
}

.box-row.reverse {
    flex-direction: row-reverse;
}

.img-box img {
    width: 450px;
    max-width: 90%;
    height: auto;
    border-radius: 10px;
}

.text-box {
    width: 40%;
    max-width: 500px;
}

.text-box h2 {
    font-size: 1.6rem;
    color: #111;
}

.text-box p {
    margin-top: 10px;
    font-weight: 400;
    line-height: 1.4;
    font-family: 'SF Display Pro';
    color: #222;
}

/* —————————————————————————————— */
/* MEDIA QUERIES */
/* —————————————————————————————— */

@media (max-width: 1600px) and (min-width: 1141px) {
    .nav-bar .sections li {
        gap: 10px;
        margin-left: 15%;
    }

    .nav-bar .sections li ul a{
        font-size: 1rem;
    }

    .nav-bar .logo img {
        height: 400px;
    }

    .left-photo,
    .right-photo {
        height: 400px;
        margin-top: 7%;
    }
}

@media (max-width: 1140px) {
    .info {
        height: 7vh;
        padding: 0 15px;
    }

    .info p {
        font-size: 0.9rem;
    }

    .nav-bar .sections {
        display: none;    
    }

    .menu-toggle {
        display: block;
        right: 5%;
        position: absolute;
    }

    .mobile-menu {
        display: block;
    }

    .nav-bar .logo {
        position: static !important;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .nav-bar .logo img {
        height: 500px;
    }

    .left-photo,
    .right-photo {
        width: 100%;
        height: 300px;
        margin-top: 11%;
    }

    .box-row,
    .box-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .text-box {
        width: 90%;
    }

    .img-box img {
        width: 90%;
    }

    .motto h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 180px;
        padding: 50px 12px 20px 12px;
    }

    .mobile-menu ul li a {
        font-size: 1rem;
        padding: 6px 8px;
    }

    .mobile-menu .close-btn {
        top: 12px;
        right: 12px;
        font-size: 1.3rem;
    }

    .gallery-container {
        padding: 10px;
    }

    .left-photo,
    .right-photo {
        height: 250px;
        margin-top: -2.2%;
    }

    .left-photo{
        margin-left: -2.1%;
    }

    .nav-bar .logo img {
        height: 400px;
    }

}