/* EduXbase landing - tema grafico condiviso, stesso stile di iterfacioNET.
   Va caricato DOPO bootstrap. Usato da Default, privacy e terms. */

:root {
    --ex-primary: #1E4FD8;
    --ex-primary-dark: #163CA6;
    --ex-accent: #14B8A6;
    --ex-dark: #0F172A;
    --ex-muted: #64748B;
    --ex-bg: #F7F9FC;
    --ex-border: #E2E8F0;
    --ex-radius: 22px;
    --ex-shadow: 0 1px 2px rgba(15,23,42,.04), 0 20px 50px -12px rgba(15,23,42,.12);
    --ex-shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -8px rgba(15,23,42,.10);
    --ex-grad: linear-gradient(135deg, #1E4FD8 0%, #4F7BFF 45%, #14B8A6 100%);
}

/* ---------- base ---------- */
body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ex-dark);
    /* sfondo di pagina: immagine in alto a destra, larga quanto la pagina, FERMA mentre si scorre
       (la "e" e il mappamondo restano a destra, la parte sinistra e' bianca). Le sezioni sotto sono
       semitrasparenti e sfocate, cosi' i testi restano leggibili sopra l'immagine. */
    background: #fff url('/img/hero-bg.webp') no-repeat right 64px fixed;
    background-size: min(100%, 1920px) auto;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .h1, .h2, .h3 { font-weight: 700; letter-spacing: -.025em; }
h4, h5, h6, .h4, .h5, .h6 { font-weight: 600; letter-spacing: -.01em; }
a { color: var(--ex-primary); }
a:hover { color: var(--ex-primary-dark); }
::selection { background: rgba(30,79,216,.18); }
.text-muted, .text-muted-ex { color: var(--ex-muted) !important; }
[id] { scroll-margin-top: 80px; }

/* ---------- barra in alto: vetro ---------- */
.navbar-ex {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(15,23,42,.06);
    padding: 10px 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; transition: transform .2s ease; }
.brand:hover img { transform: scale(1.03); }
.lang-toggle .btn { font-weight: 600; font-size: .8rem; padding: .25rem .7rem; border-radius: 99px; }
.lang-toggle .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.lang-toggle .btn:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.lang-toggle .btn.active { background: var(--ex-primary); color: #fff; border-color: var(--ex-primary); }

/* ---------- pulsanti ---------- */
.btn { font-weight: 600; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-sm { border-radius: 10px; }
.btn-primary, .btn-ex {
    background: var(--ex-grad); background-size: 140% 100%; border: 0; color: #fff;
    box-shadow: 0 8px 20px -6px rgba(30,79,216,.45);
}
.btn-primary:hover, .btn-primary:focus, .btn-ex:hover, .btn-ex:focus {
    background: var(--ex-grad); background-position: 100% 0; background-size: 140% 100%; color: #fff;
    transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(30,79,216,.5);
}
.btn-outline-primary, .btn-outline-secondary { background: #fff; border-color: var(--ex-border); }
.btn-outline-primary { color: var(--ex-primary); }
.btn-outline-primary:hover { background: rgba(30,79,216,.08); color: var(--ex-primary); border-color: rgba(30,79,216,.3); }
.btn-outline-secondary { color: var(--ex-dark); }
.btn-outline-secondary:hover { background: #F1F5F9; color: var(--ex-dark); border-color: #CBD5E1; }
.btn-round { border-radius: 99px; padding: 13px 28px; font-size: 17px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 56px; background: transparent; }
/* card centrata, con bordo e ombra; leggermente trasparente cosi' l'immagine di sfondo si intravede */
.hero-content {
    max-width: 960px; margin: 0 auto; padding: 48px 56px;
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 28px;
    box-shadow: var(--ex-shadow);
}
.hero-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.07;
    max-width: 900px; margin: 0 auto;
}
.hero-subtitle { max-width: 680px; margin: 16px auto 0; color: var(--ex-muted); font-size: 19px; font-weight: 400; line-height: 1.5; }
.ex-eyebrow {
    display: inline-block; margin-bottom: 18px; padding: 6px 14px 6px 8px;
    font-size: 13px; font-weight: 600; color: var(--ex-primary);
    background: #fff; border: 1px solid rgba(30,79,216,.12); border-radius: 99px;
    box-shadow: var(--ex-shadow-sm);
}
.ex-eyebrow .chip {
    display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 99px;
    color: #fff; font-size: 11px; letter-spacing: .04em; background: var(--ex-grad);
}
.hero-logo { height: 96px; width: auto; margin-bottom: 18px; }
@media (max-width: 991.98px) {
    /* su schermi stretti il testo occupa tutta la larghezza: l'immagine resta in basso a destra, schiarita */
    body {
        background-image: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url('/img/hero-bg.webp');
        background-repeat: no-repeat;
        background-position: center, right 64px;
        background-size: auto, 140% auto;
        background-attachment: fixed, fixed;
    }
}
@media (max-width: 767.98px) {
    .hero { padding: 28px 0 28px; }
    .hero-content { padding: 28px 20px; border-radius: 22px; }
    .hero-logo { height: 76px; }
    .brand img { height: 38px; }
}

/* ---------- sezioni e card ---------- */
.section-light, .section-white, section.bg-soft {
    background: rgba(255,255,255,.86);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.section-light { padding: 56px 0; border-top: 1px solid rgba(15,23,42,.04); border-bottom: 1px solid rgba(15,23,42,.04); }
.section-white { padding: 64px 0; }
.section-title { font-weight: 800; letter-spacing: -.025em; }
.card-custom {
    border: 1px solid rgba(15,23,42,.06); border-radius: var(--ex-radius);
    padding: 28px; box-shadow: var(--ex-shadow-sm); height: 100%; background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card-custom:hover { transform: translateY(-4px); box-shadow: var(--ex-shadow); }
.feature-list li { margin-bottom: .45rem; display: flex; align-items: baseline; }
.fa-solid.text-primary { color: var(--ex-primary) !important; }

/* ---------- FAQ ---------- */
.accordion-item { border-color: var(--ex-border); }
.accordion-item:first-of-type { border-top-left-radius: 16px; border-top-right-radius: 16px; }
.accordion-item:last-of-type { border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
.accordion-button:not(.collapsed) { background-color: rgba(30,79,216,.07); color: var(--ex-primary); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(79,123,255,.15); }

/* ---------- form ---------- */
section.bg-soft { padding: 5rem 0; }
.signup { background: #fff; border-radius: 28px; box-shadow: var(--ex-shadow); padding: 2.25rem; border: 1px solid rgba(15,23,42,.05); }
.form-control, .form-select {
    min-height: 48px; border-radius: 14px; border-color: var(--ex-border);
    background-color: #fff; font-size: 15.5px; box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus { border-color: #4F7BFF; box-shadow: 0 0 0 4px rgba(79,123,255,.15); }
.form-control::placeholder { color: #94A3B8; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 575.98px) { .signup { padding: 1.4rem; border-radius: 22px; } }

/* ---------- pagine legali ---------- */
.legal { max-width: 860px; margin: 2rem auto 3rem; background: #fff; border-radius: var(--ex-radius); padding: 2.25rem; box-shadow: var(--ex-shadow); border: 1px solid rgba(15,23,42,.05); line-height: 1.65; }
.draft { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; border-radius: 14px; padding: .75rem 1rem; font-weight: 600; }
@media (max-width: 575.98px) { .legal { padding: 1.25rem; margin: 1rem; } }

/* ---------- footer ---------- */
footer { background: var(--ex-dark); color: #CBD5E1; padding: 2.25rem 0; font-size: .9rem; }
footer a { color: #CBD5E1; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-brand img { height: 34px; width: auto; background: #fff; border-radius: 10px; padding: 4px 8px; }
