﻿/* ===== Pagina "La nostra idea" — Netinfood ===== */

.idea {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: rgba(15, 23, 42, .12);
    --surface: rgba(15, 23, 42, .04);
    --surface2: rgba(15, 23, 42, .025);
    --accent: #3FB44C;
    background: var(--bg);
    color: var(--text);
}

.idea__wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* HERO */
.idea__hero {
    max-width: 78ch;
    padding-block: 20px;
}

.idea__eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .25px;
    margin: 0 0 16px;
    background: rgba(63,180,76,.08);
}

.idea__title {
    margin: 0 0 12px;
    font-size: clamp(29px, 3.0vw, 39px);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.idea__subtitle {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

/* SEZIONI */
.idea__section {
    margin-top: 34px;
}

.idea__sectionHead {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.idea__h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.idea__hint {
    margin: 0;
    color: var(--muted);
}

/* GRID BOX */
.idea__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.idea__card {
    grid-column: span 4;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface2);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    min-height: 180px;
}

    .idea__card:hover {
        transform: translateY(-4px);
        background: var(--surface);
        border-color: rgba(63,180,76,.45);
    }

.idea__h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.idea__text {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* TAG */
.idea__tags {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .idea__tags li {
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid rgba(63,180,76,.45);
        color: var(--accent);
        font-size: 13px;
        background: rgba(63,180,76,.12);
    }

/* OBIETTIVI */
.idea__goals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.idea__goal {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    /*background: var(--surface2);*/
    background: linear-gradient( 180deg, rgba(63,180,76,.18), rgba(255,255,255,.04) );
    border-color: rgba(63,180,76,.55);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

    .idea__goal:hover {
        transform: translateY(-3px);
        background: var(--surface);
        border-color: rgba(63,180,76,.45);
    }

.idea__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 18px;
    border: 1px solid rgba(63,180,76,.45);
    background: rgba(63,180,76,.12);
    flex: 0 0 auto;
}

/* PERCHE'*/
.idea__why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.idea__whyCard {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface2);
}
    .idea__whyCard:hover {
        transform: translateY(-4px);
        background: var(--surface);
        border-color: rgba(63,180,76,.45);
    }

.idea__ctaFinal {
    position: relative;
    margin-top: 73px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(63,180,76,.35);
    background: linear-gradient(180deg, rgba(63,180,76,.10), rgba(15,23,42,.015));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
    .idea__ctaFinal::before {
        content: "";
        position: absolute;
        top: -32px;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(15,23,42,.10);
    }

.idea__ctaBtns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.idea__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.idea__btn--primary {
    border-color: rgba(63,180,76,.45);
    background: rgba(63,180,76,.14);
    color: var(--text);
}

    .idea__btn--primary:hover {
        background: rgba(63,180,76,.20);
    }

.packages-popUp-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    /*position: absolute;*/
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(5px);
}

.packages-popUp {
    width: 80%;
    max-width: 1000px;
    height: 70vh;
    max-height: 1000px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    padding: 35px;
    background: #1e1e1e;
    border-radius: 15px;
    box-sizing: border-box;
}
    .packages-popUp iframe {
        flex: 1; /* riempie lo spazio verticale */
        width: 100%;
        border: 0;
    }

.modal-close-btn {
    position: absolute;
    top: -25px;
    right: -35px;
    cursor: pointer;
    filter: brightness(0) invert(0.7);
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .idea__card {
        grid-column: span 6;
    }
}

@media (max-width: 600px) {

    .idea__card {
        grid-column: span 12;
    }

    .idea__goals {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .idea__why {
        grid-template-columns: 1fr;
    }
}
