#container {
    width: 100vw;
    height: 100vh;
    transition: transform 0.2s linear;
}

.page {
    text-align: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.25rem;
    flex-shrink: 0;
    position: relative;
    color: white;
    flex-direction: column;
}

.horizontal-wrapper {
    display: flex;
    width: 300vw;
    height: 100vh;
    transition: transform 0.2s linear;
}

body {
    background: #ff000000;
    margin: 0;
    padding: 0;
}

/* ======= Header base ======= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 999;
}

/* ======= Logo + nome ======= */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 24px;
    font-weight: bold;
}

.subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}


.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;

}

/* ======= Email popup ======= */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* leggermente più scuro per contrasto */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background: #ffffff;
    /* bianco per contrasto */
    color: #000;
    /* testo nero */
    padding: 30px 40px;
    /* più grande */
    border-radius: 20px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0);
    font-family: sans-serif;
}

.popup-content h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.popup-content p {
    font-size: 16px;
    margin-bottom: 15px;

    box-shadow: none;
    /* rimuove eventuale box-shadow */
    text-shadow: none !important;
    /* rimuove qualsiasi text-shadow ereditato */
}

.popup-content input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.popup-buttons {

    gap: 10px;
}

.popup-buttons button {
    flex: 1;
    padding: 12px 0;
    font-size: 11px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sendEmailBtn {
    font-size: 18px;
    margin-left: 20px;
    color: #00c92f;
    /* testo bianco */
}

#cancelPopupBtn {
    font-size: 18px;

    color: #000;
    /* testo nero */
}

.popup-buttons button:hover {
    opacity: 0.85;
}


/* ======= Menu desktop ======= */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* ======= Menu mobile ======= */
.menu-icon {
    display: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ======= Responsivo ======= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.85);
        border-radius: 12px;
        padding: 1rem 2rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}


.horizontal-item {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.25rem;
    flex-shrink: 0;
    flex-direction: column;
    padding: 2rem 1rem;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

h1 {
    font-family: 'Bangers', cursive;
    margin-bottom: 7%;
    font-size: 76px;
    line-height: 1.5;
    /* aumenta la distanza tra righe */
    letter-spacing: 1px;
}

h1 span {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 1.5s forwards;
}

h1 span:nth-child(1) {
    animation-delay: 0s;
}

h1 span:nth-child(2) {
    animation-delay: 0.5s;
}

h1 span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    margin-bottom: 1%;
    font-size: 36px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.8s forwards ease-out;
    animation-delay: 2s;
}

.feature-img,
.feature-img-merda {
    height: auto;
    max-height: 70vh;
    width: auto;
    max-width: 90%;
    border-radius: 24px;
    margin-bottom: 0;
    object-fit: contain;
}

#container1,
#containerstart,
#containerend {
    height: auto;
    min-height: 15%;
    max-height: 25%;
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

#containerstart {
    border-top-left-radius: 46px;
}

#containerend {
    border-top-right-radius: 46px;
}

.arrow {
    position: fixed;

    color: white;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transition: opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;

    font-size: 2rem;
    color: white;
    cursor: pointer;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    top: 50%;

}



.arrow-up {

    left: 20px;


}

.arrow-down {
    right: 20px;


}







.arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

p {
    height: 100%;
    align-content: center;
    font-size: 28px;
    padding-left: 20px;
    padding-right: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

button,
button1,
button2 {
    padding: 1rem 2rem;
    font-size: 1.75rem;
    cursor: pointer;
    border-radius: 24px;
    background: rgba(0, 0, 0, 1);
    color: white;
    border: none;
    transition: background 0.3s;
}

button:hover,
button1:hover,
button2:hover {
    background: rgba(50, 50, 50, 1);
}

button1 {
    position: fixed;
    bottom: 8%;
}

button {
    position: fixed;
    bottom: -298%;
    margin-top: 100%;
}

button2 {
    position: fixed;
    bottom: -290%;
    margin-top: 100%;
}

.custom-theme-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    height: 50px;
    width: 50px;
    background: white;
    border: none;
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.custom-color-menu {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 10px 14px;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.color-label {
    font-size: 14px;
    color: #333;
}

input[type="color"] {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}


/* --- MEDIA QUERIES --- */

@media (max-width: 1024px) {
    h1 {
        font-size: 64px;
    }

    h2 {
        font-size: 32px;
    }

    p {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 54px;
        margin-bottom: 25%;

    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 22px;
        padding-left: 15px;
        padding-right: 15px;
    }

    button,
    button1,
    button2 {
        font-size: 1.4rem;
        padding: 0.8rem 1.5rem;
    }

    .arrow-up {
        left: 16px;
        font-size: 1.2rem;
    }

    .arrow-down {
        right: 16px;
        font-size: 1.2rem;
    }

    .feature-img,
    .feature-img-merda {
        max-height: 60vh;
        max-width: 95%;
    }

    #containerstart,
    #containerend,
    #container1 {
        min-height: 20%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 38px;
        margin-bottom: 30%;
        line-height: 1.8;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }

    button,
    button1,
    button2 {
        font-size: 1.2rem;
        padding: 0.7rem 1.2rem;
    }






    .arrow-up {
        left: 14px;
        font-size: 1rem;
    }

    .arrow-down {
        right: 14px;
        font-size: 1rem;
    }

    #containerstart,
    #containerend,
    #container1 {
        height: 25%;
        padding: 0.5rem;
    }

    .feature-img,
    .feature-img-merda {
        max-height: 55vh;
        max-width: 100%;
    }

    .feature-img-merda {
        transform: scale(1.2);
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 18px;
    }
}