/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(180deg, #C0E5B5, #a8d99c);
    color: #1e1e1e;
    overflow-x: hidden;
}

/* CONTAINER */
#faqPage {
    max-width: 900px;
    margin: 100px auto;
    padding: 20px;
    text-align: center;
}

/* TITOLO */
#faqPage h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 50px;
    letter-spacing: -2px;
    color: #1e1e1e;
    animation: fadeUp 1s ease forwards;
}

/* CARD FAQ (glass effect) */
.faqItem {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);

    padding: 25px;
    margin-bottom: 20px;

    text-align: left;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    transition: all 0.3s ease;
    cursor: pointer;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

/* animazione a cascata */
.faqItem:nth-child(2) { animation-delay: 0.2s; }
.faqItem:nth-child(3) { animation-delay: 0.4s; }
.faqItem:nth-child(4) { animation-delay: 0.6s; }
.faqItem:nth-child(5) { animation-delay: 0.8s; }

/* HOVER */
.faqItem:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* DOMANDA */
.faqItem h3 {
    font-size: 1.3rem;
    color: #52BC21;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ICONA + */
.faqItem h3::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* RISPOSTA */
.faqItem p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e1e1e;

    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

/* STATO ATTIVO (accordion) */
.faqItem.active p {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

.faqItem.active h3::after {
    content: "–";
    transform: rotate(180deg);
}

/* BOTTONE BACK */
.backBtn {
    display: inline-block;
    margin-top: 50px;

    text-decoration: none;
    color: white;

    background: linear-gradient(135deg, #52BC21, #3a9118);
    padding: 14px 28px;

    border-radius: 12px;

    font-size: 1rem;
    font-weight: 500;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

    transition: all 0.3s ease;
}

.backBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* ANIMAZIONE */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* BODY FAQ */
body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
    color: #fff;
    overflow-x: hidden;
}

/* CONTAINER FAQ */
#faqPage {
    max-width: 900px;
    margin: 120px auto 80px auto; /* spazio top per navbar */
    padding: 20px;
    text-align: center;
}

/* TITOLO */
#faqPage h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 50px;
    letter-spacing: -2px;
    color: #52BC21;
    animation: fadeUp 1s ease forwards;
}

/* CARD FAQ (glass + dark) */
.faqItem {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);

    padding: 25px;
    margin-bottom: 20px;

    text-align: left;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    transition: all 0.3s ease;
    cursor: pointer;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.faqItem:nth-child(2) { animation-delay: 0.2s; }
.faqItem:nth-child(3) { animation-delay: 0.4s; }
.faqItem:nth-child(4) { animation-delay: 0.6s; }
.faqItem:nth-child(5) { animation-delay: 0.8s; }

.faqItem:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.faqItem h3 {
    font-size: 1.3rem;
    color: #52BC21;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faqItem h3::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faqItem p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #eee;

    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.faqItem.active p {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

.faqItem.active h3::after {
    content: "–";
    transform: rotate(180deg);
}

.backBtn {
    display: inline-block;
    margin-top: 50px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #52BC21, #3a9118);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.backBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* NAVBAR BASE */
#navbar {
    width: calc(100% - 40px);
    max-width: 1000px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(25, 25, 25, 0.65); /* semi-dark trasparente */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.navContainer {
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar pubblica: stesso font di index (Plus Jakarta Sans) */
#navbar,
#navbar .navContainer,
#navbar .logo,
#navbar .navLinks li a {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.logo {
    font-weight: 700;
    font-size: 1.45rem;
    color: #52BC21;
    text-decoration: none;
    letter-spacing: 0.04em;
}

/* NAV LINKS */
.navLinks {
    list-style: none;
    display: flex;
    gap: 32px;
}

.navLinks li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 10px 6px;
    position: relative;
    transition: color 0.3s ease;
}

.navLinks li a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #52BC21;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navLinks li a:hover {
    color: #52BC21;
}

.navLinks li a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* HAMBURGER ANIMATION ON TOGGLE */
.navLinks.active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    #navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        background: rgba(25, 25, 25, 0.9);
    }

    .navLinks {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(25, 25, 25, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        gap: 40px;
        transition: right 0.4s ease;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .navLinks li a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }
}