:root {
    --pop-pink: #ff007f;
    --pop-blue: #00f2ff;
    --pop-yellow: #fbfe01; /* Aggiornato */
    --pop-green: #adff00;
    --pop-purple: #7f00ff;
    --dark-bg: #1a1a1a;
    --light-bg: #f0f0f0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--light-bg);
    color: #333;
    overflow-x: hidden;
    font-weight: 400; /* Base weight for regular text */
}

.main-index {
    overflow-x: hidden; /* Previene lo scrolling orizzontale solo sulla homepage */
}

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

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 42px;
    font-weight: 900;
    color: var(--dark-bg);
    text-decoration: none;
}



nav a {
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-bg);
    margin-left: 30px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--pop-purple);
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 30px;
    width: 120px;
}

.current-language {
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
}

.language-dropdown {
	display: none;
    position: absolute;
    background-color: white;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.language-dropdown a {
    color: black;
    padding: 12px 0 12px 30px;
	margin: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.language-dropdown a:hover {
    background-color: #f1f1f1;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.flag-icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 60px 0 0;
}

.hero-text {
    flex-basis: 50%;
    text-align: center;
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
    color: var(--dark-bg);
}

.hero-text h1 .highlight {
    background: var(--pop-yellow);
    padding: 0 15px;
    display: inline-block;
}

.hero-text p {
    font-size: 20px;
    margin: 25px auto 40px;
    max-width: 500px;
    line-height: 1.6;
    color: #555;
}

.cta-button {
    display: inline-block;
    background-color: var(--pop-pink);
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 50px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 0, 127, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.4);
}

.hero-visual {
    flex-basis: 45%;
    position: relative;
    height: 500px;
}

.blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--pop-blue), var(--pop-purple), var(--pop-pink));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite both alternate;
    cursor: pointer;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg); }
    100% { border-radius: 30% 70% 60% 40% / 50% 60% 30% 60%; transform: rotate(5deg); }
}

/* FEATURED PRODUCTS */
.featured-section {
    padding: 0;
    text-align: center;
}

.featured-section h2 {
    font-size: 50px;
    font-weight: 900;
    margin-bottom: 60px;
    display: inline-block;
    border-bottom: 4px solid var(--pop-yellow);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border: none;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    margin-bottom: 20px;
}

.product-image.p1 { 
    background: transparent !important;
    clip-path: none !important;
    position: relative;
    border: none !important;
}

.product-image.p1::before, .product-image.p1::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 50px;
    background: #e0c4a0;
    border: 4px solid #333;
    border-radius: 10px;
    top: 50%;
    left: 50%;
}

.product-image.p1::before {
    transform: translate(-60%, -50%) skewY(15deg);
}

.product-image.p1::after {
    transform: translate(-40%, -50%) skewY(-15deg);
}
.product-image.p2 { 
    background-color: var(--pop-blue); 
    clip-path: circle(50% at 50% 50%); 
} /* Palla */
.product-image.p3 { 
    background-color: var(--pop-yellow); 
    clip-path: polygon(25% 15%, 75% 15%, 100% 50%, 75% 85%, 25% 85%, 0% 50%); 
} /* Cubo */
.product-image.p4 { 
    background-color: var(--pop-pink); 
    border-radius: 65% 35% 45% 55% / 50% 60% 40% 50%; 
} /* Sasso */
.product-image.p5 { 
    background: var(--dark-bg);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
} /* Stella */
.product-image.p6 { 
    background-color: var(--pop-green); 
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%); 
} /* Triangolo */

.product-card h3 {
    font-size: 26px;
    margin: 0 0 10px;
    font-weight: 700;
}

.product-card p:not(.price) {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* Fa espandere il paragrafo */
}

.product-card .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--pop-purple);
}

/* STATEMENT SECTION */
.statement {
    position: relative;
    background-color: var(--pop-yellow);
    color: black;
    padding: 100px 30px;
    text-align: center;
    transform: rotate(-2deg) scale(1.05);
    margin: 120px 0;
    border: 4px solid black;
    box-shadow: 0 0 0 10px white, 0 0 0 14px black;
    overflow: hidden; /* To contain the pseudo-elements */
}

.statement::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: #ff5b5c; /* Aggiornato */
    transform: rotate(25deg);
    z-index: 0;
}

.statement::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background-image: radial-gradient(#ff5b5c 20%, transparent 21%); /* Aggiornato */
    background-size: 20px 20px;
    transform: rotate(-15deg);
    z-index: 0;
}

.statement h2 {
    font-size: 58px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
    background: white;
    padding: 10px 20px;
    border: 4px solid black;
    position: relative; /* To bring it in front of the pseudo-elements */
    z-index: 1;
}

/* FOOTER */
footer {
    background-color: var(--dark-bg);
    color: #aaa;
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
}


/* --- MANIFESTO PAGE --- */

/* MANIFESTO PAGE */

.manifesto-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 30px;
    text-align: center;
}

.manifesto-content h1 {
    font-size: 64px;
    font-weight: 900;
    color: var(--dark-bg);
    margin-bottom: 50px;
    border-bottom: 4px solid var(--pop-yellow);
    display: inline-block;
    padding-bottom: 10px;
}

.manifesto-content p {
    font-size: 22px;
    line-height: 1.8;
    margin: 0 auto 25px;
    max-width: 600px;
    color: #333;
    font-weight: 400;
}

.manifesto-content p:last-of-type {
    margin-bottom: 50px;
}

.pop-out-text {
    margin-top: 60px;
    padding: 40px;
    background: var(--pop-yellow);
    border: 4px solid var(--dark-bg);
    transform: rotate(-2deg);
}

.pop-out-text p {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--dark-bg);
}

.pop-out-text h2 {
    font-size: 80px;
    font-weight: 900;
    color: var(--pop-pink);
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}


/* --- CONTACT PAGE --- */

/* CONTACT PAGE */

.contact-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 30px;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 64px;
    font-weight: 900;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 20px;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.contact-card {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    text-align: center;
}

.contact-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--dark-bg);
}

.contact-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.contact-card a {
    font-size: 18px;
    font-weight: 700;
    color: var(--pop-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--pop-pink);
}

.contact-form-section {
    text-align: center;
}

.contact-form-section h2 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box; /* Corregge l'overflow */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pop-purple);
}

.cta-button {
    width: 100%;
    cursor: pointer;
}

/* --- FORM PAGES (Contact, Register) --- */
.form-page-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 30px;
}

.form-wrapper {
    background: white;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.form-wrapper h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 40px;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

.form-footer a {
    color: var(--pop-purple);
    font-weight: 700;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* --- Setup for CSS-only Hamburger --- */
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
}


/* --- RESPONSIVE - FULLSCREEN HAMBURGER MENU --- */
@media (max-width: 768px) {
    /* 1. Style the hamburger icon (the label) */
    .nav-toggle-label {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001; /* Ensure it's on top */
    }

    /* Create the 3 bars of the hamburger */
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background-color: var(--dark-bg);
        height: 3px;
        width: 100%;
        border-radius: 3px;
        position: absolute;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

    .nav-toggle-label span {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle-label span::before {
        content: '';
        top: -8px;
    }

    .nav-toggle-label span::after {
        content: '';
        top: 8px;
    }

    header {
        position: relative; /* Necessario per posizionare il menu a discesa */
    }

    /* 2. Style the navigation menu itself (the dropdown panel) */
    header nav {
        position: absolute;
        top: 100%; /* Posiziona il menu subito sotto l'header */
        left: 0;
        width: 100%;
        background-color: var(--light-bg);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 1000;
        
        /* Nascondi di default con una transizione */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;

        /* Layout per i link */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    header nav a {
        font-size: 18px;
        font-weight: 700;
        margin: 10px 0;
        width: 100%;
        text-align: center;
        padding: 5px 0;
    }

    .language-selector {
        margin-left: 0;
        margin-top: 10px;
        padding-bottom: 10px;
        text-align: center;
        width: 100%; /* Occupa tutta la larghezza per un allineamento pulito */
    }

    .language-selector .current-language {
        justify-content: center; /* Centra il contenuto (bandiera e testo) */
    }

    /* 3. The magic: show the menu when the checkbox is checked */
    .nav-toggle:checked ~ nav {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    /* 4. Animate the hamburger icon into a close (X) icon */
    .nav-toggle:checked ~ .nav-toggle-label span {
        background-color: transparent; /* Middle bar disappears */
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    /* --- GENERAL LAYOUTS --- */
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 50px 20px;
    }

    .hero-visual {
        display: block;
        order: -1;
        height: 250px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px;
        position: relative;
    }

    .hero-text {
        order: 1;
    }

    .hero-text h1 {
        font-size: 38px;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 16px;
        margin: 20px auto 30px;
    }

    .hero-text .cta-button {
        display: block;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 15px 20px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .statement {
        margin: 80px 0;
        padding: 40px 20px;
        box-shadow: 0 0 0 5px white, 0 0 0 8px black;
    }

    .statement h2 {
        font-size: 28px;
    }

    .featured-section h2 {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .manifesto-container, .contact-container {
        margin: 60px auto;
    }

    .manifesto-content h1, .contact-header h1 {
        font-size: 36px;
    }

    .manifesto-content p, .contact-header p {
        font-size: 16px;
    }

    .pop-out-text h2 {
        font-size: 40px;
    }

    .contact-form-section h2 {
        font-size: 28px;
    }
}

/* --- SHOP PAGE --- */
.shop-header {
    text-align: center;
    margin: 60px 0;
}

.shop-header h1 {
    font-size: 52px;
    font-weight: 900;
    margin: 0 0 15px;
}

.shop-header p {
    font-size: 18px;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
}

/* --- PRODUCT PAGE --- */
.product-page-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.product-image-large {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: white;
    border-radius: 10px;
}

.product-details h1 {
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 15px;
}

.product-details .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--pop-purple);
    margin-bottom: 30px;
}

.product-details .description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
}

.add-to-cart {
    width: 100%;
    max-width: 400px;
}

/* Stile per i link delle schede prodotto */
.product-card-link {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .product-page-container {
        grid-template-columns: 1fr; /* Colonne impilate su mobile */
        gap: 30px;
        margin-top: 30px;
    }

    .product-details h1 {
        font-size: 36px;
    }
}

/* --- NUOVA STRATEGIA RESPONSIVE (da report) --- */
@media (max-width: 768px) {
    /* Usa CSS Grid per la sezione HERO */
    .hero.container {
        display: grid;
        grid-template-areas:
            "visual"
            "text";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .hero .hero-visual {
        grid-area: visual;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px;
        aspect-ratio: 1 / 1; /* Mantiene il contenitore quadrato */
    }

    .hero .hero-text {
        grid-area: text;
    }

    /* Usa 'inset' per far riempire il blob */
    .hero .hero-visual .blob {
        position: absolute;
        inset: 0; /* Shorthand per top, right, bottom, left = 0 */
        width: auto; /* Resetta le vecchie regole */
        height: auto; /* Resetta le vecchie regole */
    }
}
