/* landing.css
 *
 * Styles for the landing surface (templates/landing.html).
 *
 * Two sections:
 *   1. Structural — layout, panels, typography, mobile breakpoint.
 *   2. Skins — accent colors, applied via classes like .card-orange
 *      and .card-green added to .authent-card and .landing-wrap.
 */

/* ============================================================
 * 1. STRUCTURAL
 * ============================================================ */

.landing {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 1)
    );
    width: 100%;
}
.landing-wrap {
    /*min-height: calc(100vh - 60px);*/
    display: flex;
    flex-direction: column;
    color: #f4f4f4;
    font-family: "Barlow", sans-serif;
    /*background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 1)
    );*/
    margin-top: 10%;
}

.landing-intro {
    padding: 1.5rem 3rem 1rem 3rem;
    max-height: 10vh;
}

.landing-outro {
    /*padding: 1.5rem 3rem 2rem 3rem;*/
    height: 10vh;
    position: fixed;
    top: 90vh;
    width: 100%;
}

.landing-page {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center; /* Centra orizzontalmente */
    align-items: center; /* Centra verticalmente (se sono su una sola riga) */
    align-content: center;

    box-sizing: border-box;
}

/*.authent-card {
    flex: 1 1 50%;
    min-width: 320px;
    padding: 2.5rem 3rem 2.5rem 6rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}*/

.narrative {
    position: relative;
    padding: 2.5rem;
    flex: 0 0 60%;
    justify-content: center;
    padding-left: 6rem;
    margin: 0 auto;
}

.authent-card.auth {
    padding: 1rem;
    justify-content: center;
    flex: 0 0 40%;
    margin: 0 auto;
}

.brand {
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}

.brand .light {
    font-weight: 200;
}

.pre-title {
    font-size: 1rem;
    letter-spacing: 0.12em;
    margin: 0 0 1.8rem 0;
    opacity: 0.85;
}

.title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.2rem 0;
}

.title .highlight {
    font-weight: 800;
}

.body-text {
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0 0 1.8rem 0;
    opacity: 0.92;
}
p.body-text:first-of-type {
    margin: 0 0 1rem 0;
}

.bullets {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 1.5rem 0;
}

.bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.icon-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 5px;
}

.bullet-text {
    flex: 1;
}
.bullet-title {
    font-weight: 550;
    margin: 0 0 0.2rem 0;
    font-size: 1.15rem;
}
.bullet-subtitle {
    font-size: 0.9rem;
    opacity: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.debug-state {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.7rem;
    opacity: 0.4;
    font-family: monospace;
}
.landing h1 {
    font-size: 3rem;
}

.auth-card-inner {
    max-width: 28rem;
    width: 100%;
    padding: 0 50px 50px 50px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}
.auth-card-inner h1 {
    font-size: 2.5rem;
    margin: 2rem 0 0.5rem 0;
}
.auth-subtitle {
    margin-top: 0.5rem;
    color: var(--dgth-grigio-50);
}
.security-line {
    margin-top: 1.4rem;
    font-size: 0.78rem;
    opacity: 0.55;
    text-align: center;
}

.company-card {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    opacity: 0.45;
    text-align: center;
}

.brand-card {
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}

.brand-card .light {
    font-weight: 200;
}
.landing .stdbar {
    padding-left: 6rem;
    padding-top: 28px;
    padding-bottom: 18px;
    background: rgba(12, 16, 22, 0.7);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    z-index: 999;
}
@media (max-width: 768px) {
    .landing-page {
        flex-direction: column;
    }
    .authent-card {
        flex: 1 1 100%;
        padding: 1.8rem 1.4rem;
    }
    .authent-card.narrative {
        flex: 1 1 100%;
        padding: 1.8rem 1.4rem;
        padding-left: 6rem;
        padding-right: 6rem;
    }
    .authent-card.auth {
        padding: 1rem;
        justify-content: center;
        flex: 0 0 80%;
        margin: 0 auto;
        max-width: 80%;
        min-width: 65%;
    }
    .auth-card-inner {
        padding: 10px 30px 30px 30px;
        min-width: 100%;
    }
    .bullets {
        display: none;
    }
    .title {
        font-size: 1.7rem;
    }
    .site {
        margin-left: 0;
    }
}
@media (max-width: 1068px) {
    .narrative {
        flex: 0 0 100%;
    }
    .landing-wrap {
        margin-top: 70px;
    }
}

@media screen and (max-width: 450px) {
    .authent-card.narrative {
        flex: 1 1 100%;
        padding: 1.8rem 3rem;
    }
    .authent-card.auth {
        flex: 1 1 100%;
        padding: 1.8rem 0rem;
        margin: 0;
        width: 90%;
        margin-bottom: 30px;
    }
    .pre-title {
        display: none;
    }
    .bullets {
        display: none;
    }
    .auth-card-inner {
        padding: 10px 30px 30px 30px;
        max-width: 100%;
    }
    .body-text {
        margin-bottom: 0;
    }
    .title {
        font-size: 2.5rem !important;
    }
    .body-text {
        font-size: 1.3rem !important;
    }
    .landing .stdbar {
        padding-top: 18px !important;
        padding-left: 3rem;
    }
}

/* ============================================================
 * 2. SKINS
 * ============================================================ */

.authent-card.card-orange .pre-title,
.authent-card.card-orange .title .highlight {
    color: #ff7a00;
}

.authent-card.card-orange .icon-type {
    color: #ff7a00;
}
.bullets svg {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.1);
    align-content: center;
    display: flex;
    stroke: var(--dgth-bianco);
}
.authent-card.card-green .pre-title,
.authent-card.card-green .title .highlight {
    color: #1ed760;
}

.authent-card.card-green .icon-type {
    color: #1ed760;
}

/* ============================================================
 * 3. Button
 * ============================================================ */
.btn-primary {
    display: inline-flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1px solid #e85211;
    border-radius: 100px;
    background: #e85211;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    height: 40px;
    white-space: nowrap;
    width: 100%;
}
.btn-secondary {
    display: inline-flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0px 28px;
    border: 1px solid var(--dgth-orange-primary);
    border-radius: 100px;
    background: var(--dgth-nero);
    cursor: pointer;
    font-size: 14px;
    color: var(--dgth-bianco);
    text-decoration: none;
    text-transform: uppercase;
    height: 40px;
    width: 100%;
}
.btn-tertiary {
    display: inline-flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1px solid var(--dgth-grigio-700);
    border-radius: 100px;
    background: var(--dgth-grigio-700);
    cursor: pointer;
    font-size: 14px;
    color: var(--dgth-bianco);
    text-decoration: none;
    text-transform: uppercase;
    height: 40px;
    width: 100%;
}
.auth-forgot a {
    color: var(--dgth-bianco);
}
.auth-actions {
    display: flex;
    flex-flow: column;
    margin-top: 2rem;
    gap: 1rem;
}
