/* StudWars — stile del sito: mattoncini in una galassia lontana. Colori e caratteri in variabili: si cambiano qui. */
@import url("/fonts/fonts.css");

:root {
    /* foto della home e dei titoli: WebP (più leggera) dove il browser la legge, altrimenti JPEG */
    --cover: url("/img/brand/copertina.jpg");
    --bg: #05070f;
    --bg-2: #0a0e1c;
    --surface: #0f1528;
    --surface-2: #161e38;
    --line: #232c4a;
    --text: #eef1f8;
    --muted: #9aa4c2;
    /* colori dei mattoncini */
    --yellow: #ffcf00;
    --yellow-dark: #b89400;
    --red: #d01012;
    --blue: #0055bf;
    --green: #237841;
    --grey: #a0a5a9;
    /* spade laser */
    --saber-green: #4dff4d;
    --saber-blue: #3fa9ff;
    --saber-red: #ff3b30;
    --crawl: #4bd5ee;
    --radius: 12px;
    --shadow: 0 14px 40px rgba(0, 0, 0, .5);
    --display: "Orbitron", "Segoe UI", system-ui, sans-serif;
    --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: dark;
}
@supports (background-image: image-set(url("/img/brand/copertina.webp") type("image/webp"))) {
    :root { --cover: image-set(url("/img/brand/copertina.webp") type("image/webp"), url("/img/brand/copertina.jpg") type("image/jpeg")); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

/* --- cielo stellato: tre strati di stelle + nebulose, fermi mentre la pagina scorre --- */
body::before, body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
    background-image:
        radial-gradient(1px 1px at 23px 41px, #fff 50%, transparent 100%),
        radial-gradient(1px 1px at 141px 113px, rgba(255, 255, 255, .8) 50%, transparent 100%),
        radial-gradient(1px 1px at 87px 197px, rgba(255, 255, 255, .6) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 210px 77px, #fff 50%, transparent 100%),
        radial-gradient(1px 1px at 301px 233px, rgba(255, 255, 255, .7) 50%, transparent 100%),
        radial-gradient(1px 1px at 377px 29px, rgba(255, 255, 255, .5) 50%, transparent 100%),
        radial-gradient(ellipse 60% 45% at 85% 5%, rgba(63, 169, 255, .10), transparent 70%),
        radial-gradient(ellipse 55% 40% at 5% 95%, rgba(208, 16, 18, .08), transparent 70%);
    background-size: 400px 260px, 400px 260px, 400px 260px, 400px 260px, 400px 260px, 400px 260px, 100% 100%, 100% 100%;
}
body::after {
    background-image:
        radial-gradient(1.5px 1.5px at 60px 150px, #fff 50%, transparent 100%),
        radial-gradient(1px 1px at 250px 20px, #cfe6ff 50%, transparent 100%),
        radial-gradient(2px 2px at 420px 300px, rgba(255, 255, 255, .9) 40%, transparent 100%),
        radial-gradient(1px 1px at 520px 110px, #fff 50%, transparent 100%);
    background-size: 600px 400px;
    animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    body::after { animation: none; }
    html { scroll-behavior: auto; }
}

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; }
h1 { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* spada laser: barra luminosa sotto i titoli e come separatore */
.saber, .title::after {
    display: block; height: 4px; width: 110px; border-radius: 4px; background: #fff;
    box-shadow: 0 0 4px 1px var(--glow, var(--saber-blue)), 0 0 14px 3px var(--glow, var(--saber-blue));
}
.title::after { content: ""; margin-top: 14px; }
.title.center { text-align: center; }
.title.center::after { margin-left: auto; margin-right: auto; }
.glow-green { --glow: var(--saber-green); }
.glow-blue { --glow: var(--saber-blue); }
.glow-red { --glow: var(--saber-red); }

/* --- barra in alto --- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5, 7, 15, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: 1.15rem; }
.brand-name b { color: var(--yellow); font-weight: 800; }
.brand.small .brand-name { font-size: .95rem; }
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 0 6px rgba(255, 207, 0, .25)); }
.brand.small .brand-logo { height: 30px; }
.avatar {
    border-radius: 50%; object-fit: cover; flex: none;
    border: 2px solid var(--saber-green);
    box-shadow: 0 0 10px rgba(77, 255, 77, .55);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav > a {
    position: relative; color: var(--muted); padding: 10px 14px;
    font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.nav > a:hover { color: var(--text); text-decoration: none; }
.nav > a.active { color: var(--text); }
.nav > a.active::after, .nav > a:hover::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: #fff;
    box-shadow: 0 0 4px 1px var(--saber-blue), 0 0 10px 2px var(--saber-blue);
}
.nav > a:hover:not(.active)::after { opacity: .5; }
.lang { position: relative; margin-left: 10px; }
.lang summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
    padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
    font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .1em;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); border-color: #3a4672; }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: var(--shadow);
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: .95rem; }
.lang-menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a.active { color: var(--yellow); }
.menu-btn { display: none; }

@media (max-width: 820px) {
    .menu-btn {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        margin-left: auto; width: 44px; height: 44px; padding: 11px;
        background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
    }
    .menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 68px;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    }
    .nav.open { display: flex; }
    .nav > a { padding: 14px 12px; font-size: .8rem; }
    .nav > a.active::after, .nav > a:hover::after { left: 12px; right: auto; width: 60px; }
    .lang { margin: 8px 0 0; }
    .lang-menu { position: static; margin-top: 6px; box-shadow: none; }
}

/* --- bottoni a mattoncino: gli stud sopra sono una fila di rettangolini arrotondati --- */
.btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 6px; cursor: pointer;
    font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
    border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary, .btn-dark { margin-top: 6px; }
.btn-primary::before, .btn-dark::before {
    content: ""; position: absolute; left: 12px; right: 12px; top: -6px; height: 6px;
    background: repeating-linear-gradient(90deg, var(--stud) 0 16px, transparent 16px 28px);
    border-radius: 3px 3px 0 0;
}
.btn-primary { --stud: var(--yellow); background: var(--yellow); color: #141000; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 6px 18px rgba(255, 207, 0, .18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 10px 26px rgba(255, 207, 0, .32); }
.btn-dark { --stud: #15161a; background: #15161a; color: var(--yellow); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .4); }
.btn-dark:hover { transform: translateY(-2px); background: #22242b; --stud: #22242b; }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { border-color: var(--saber-blue); box-shadow: 0 0 0 1px var(--saber-blue), 0 0 18px rgba(63, 169, 255, .35); }
.btn-small { padding: 8px 12px; font-size: .68rem; }
.btn-danger { background: transparent; color: #ff8a78; border-color: #5a2a2a; }
.btn-danger:hover { background: #2a1416; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: flex-end; }

/* --- hero --- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero > .wrap { position: relative; }
.crawl-intro {
    color: var(--crawl); font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 18px; letter-spacing: .01em;
}
.eyebrow {
    color: var(--yellow); font-family: var(--display); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; margin-bottom: 14px;
}
.hero h1 b { color: var(--yellow); }
.hero p.lead { font-size: 1.2rem; color: #c6cde2; max-width: 620px; }
.hero.small { padding: 64px 0 40px; }
.hero.small .lead { margin-bottom: 0; }
/* hero con la foto dell'esposizione */
.hero-photo {
    min-height: min(82vh, 760px); display: flex; align-items: center;
    background:
        linear-gradient(180deg, rgba(5, 7, 15, .85) 0%, rgba(5, 7, 15, 0) 35%),
        linear-gradient(90deg, rgba(5, 7, 15, .96) 0%, rgba(5, 7, 15, .82) 40%, rgba(5, 7, 15, .35) 75%, rgba(5, 7, 15, .2) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 15, 0) 28%),
        var(--cover) 60% center / cover no-repeat;
}
/* pagina Stud Sculpt: titolo e sotto lo screenshot dell'editor */
.hero-sculpt { padding-bottom: 24px; }
.hero-sculpt h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.hero-sculpt h1 b { color: var(--yellow); }
.hero-photo.dim {
    min-height: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 15, .97) 0%, rgba(5, 7, 15, .88) 55%, rgba(5, 7, 15, .6) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 15, 0) 40%),
        var(--cover) center 55% / cover no-repeat;
}
@media (max-width: 700px) {
    .hero-photo { min-height: 0; background-position: 0 0, 0 0, 70% center; }
    .hero-photo, .hero-photo.dim {
        background-image:
            linear-gradient(0deg, rgba(5, 7, 15, .92), rgba(5, 7, 15, .82)),
            linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 15, 0) 28%),
            var(--cover);
    }}
.hero-title { margin: 0 0 22px; line-height: 0; }
/* motto sotto il logo, giallo come le scritte di apertura */
.hero-motto {
    margin: 0; width: min(520px, 100%); text-align: center; font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    font-size: clamp(.85rem, 1.8vw, 1.05rem); color: var(--yellow); text-shadow: 0 0 12px rgba(255, 207, 0, .45), 0 2px 8px rgba(0, 0, 0, .8);
}
/* logo StudWars (lettere nere con bordo giallo, sfondo trasparente) con un alone giallo leggero */
.hero-logo { width: min(520px, 100%); height: auto; filter: drop-shadow(0 0 18px rgba(255, 207, 0, .28)) drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }

/* --- sezioni e card --- */
.section { padding: 72px 0; }
.section + .section { padding-top: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head > a { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
    position: relative; background: linear-gradient(180deg, rgba(22, 30, 56, .9), rgba(15, 21, 40, .9));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: #3a4672; box-shadow: var(--shadow); }
.feature-card { display: flex; flex-direction: column; gap: 12px; }
.feature-card .icon {
    width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; font-size: 1.3rem;
    color: #141000; background: var(--yellow); position: relative; margin-top: 5px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
/* due stud sopra l'icona: è un mattoncino 1x2 */
.feature-card .icon::before {
    content: ""; position: absolute; top: -5px; left: 9px; right: 9px; height: 5px;
    background: repeating-linear-gradient(90deg, var(--yellow) 0 12px, transparent 12px 18px); border-radius: 3px 3px 0 0;
}
/* schermata della funzione in cima al box, a tutta larghezza; il mattoncino-icona ci si appoggia sopra */
.feature-shot {
    display: block; margin: -26px -26px 0; aspect-ratio: 3 / 2; overflow: hidden; background: #e9edf3;
    border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line);
}
.feature-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feature-shot:hover img { transform: scale(1.04); }
.feature-shot + .icon { margin-top: -36px; z-index: 1; }
.grid > .feature-card:nth-child(4n+2) .icon { background: var(--red); color: #fff; }
.grid > .feature-card:nth-child(4n+2) .icon::before { background: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 18px); }
.grid > .feature-card:nth-child(4n+3) .icon { background: var(--blue); color: #fff; }
.grid > .feature-card:nth-child(4n+3) .icon::before { background: repeating-linear-gradient(90deg, var(--blue) 0 12px, transparent 12px 18px); }
.grid > .feature-card:nth-child(4n+4) .icon { background: var(--green); color: #fff; }
.grid > .feature-card:nth-child(4n+4) .icon::before { background: repeating-linear-gradient(90deg, var(--green) 0 12px, transparent 12px 18px); }
.split { display: grid; gap: 48px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-family: var(--display); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    background: rgba(255, 207, 0, .1); border: 1px solid rgba(255, 207, 0, .4); color: var(--yellow);
}

/* avviso "presto disponibile" (Stud Sculpt, finché non c'è il download) con una luce che pulsa */
.coming-soon {
    display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 10px 16px; border-radius: 10px;
    background: rgba(255, 207, 0, .08); border: 1px solid rgba(255, 207, 0, .35); color: var(--yellow); font-weight: 600;
}
.coming-soon .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--yellow); } }
@media (prefers-reduced-motion: reduce) { .coming-soon .dot { animation: none; } }

/* sotto i pulsanti di download: sistemi, dimensioni, versione e l'avviso di Windows */
.download-info { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.download-info b { color: var(--text); font-weight: 600; }
.download-note { margin: 10px 0 0; color: #68739a; font-size: .8rem; max-width: 560px; }

/* presentazione con Yoda */
.about { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.about .avatar { width: 150px; height: 150px; border-width: 3px; box-shadow: 0 0 22px rgba(77, 255, 77, .45); }
.about h2 { margin-bottom: .35em; }
.about-quote {
    margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--saber-green);
    font-style: italic; font-weight: 600; color: var(--text);
}
@media (max-width: 600px) {
    .about { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 20px; }
    .about .title::after { margin-left: auto; margin-right: auto; }
    .about-quote { border-left: 0; padding: 0; }
}

/* --- foto e video --- */
.thumb-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.thumb {
    position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--surface);
    border: 1px solid var(--line); aspect-ratio: 4 / 3;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.thumb:hover img, .video a:hover .thumb img { transform: scale(1.05); }
.thumb.square { aspect-ratio: 1 / 1; }
.ig-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* i post sono quadrati con la foto orizzontale e bande bianche sopra e sotto: il 4:3 le taglia via */
.ig-grid .thumb.square { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
a.thumb:hover { border-color: var(--yellow); }
.thumb .cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82)); color: #fff; font-size: .9rem; font-weight: 600;
}
.video .thumb { aspect-ratio: 16 / 9; }
.video .play {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 40px; border-radius: 10px;
    background: rgba(208, 16, 18, .92); display: grid; place-items: center; transition: transform .2s ease;
}
.video .play::after { content: ""; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.video a:hover .play { transform: scale(1.1); }
.video h3 { font-size: 1rem; font-weight: 600; margin: 12px 0 2px; color: var(--text); }
.video a:hover { text-decoration: none; }
.video a:hover h3 { color: var(--yellow); }
.album { margin-bottom: 56px; scroll-margin-top: 90px; }
/* copertine degli album nella pagina Collezione */
.album-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.album-card {
    display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; color: inherit;
    background: var(--surface); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.album-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--yellow); box-shadow: var(--shadow); }
.album-card .thumb { border: 0; border-radius: 0; }
.album-card:hover .thumb img { transform: scale(1.05); }
.album-card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; font-size: .9rem; }
.album-card-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.album h2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.empty {
    border: 1px dashed var(--line); border-radius: var(--radius); padding: 44px 24px; text-align: center; color: var(--muted);
    background: rgba(15, 21, 40, .5);
}

/* --- visore foto --- */
.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(2, 3, 8, .95);
    display: none; align-items: center; justify-content: center; padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: var(--muted); margin-top: 10px; }
.lightbox button {
    position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --- card dei social (home e contatti): icone ufficiali, filo colorato in alto --- */
.socials { margin-top: 8px; }
.social-card { display: flex; align-items: center; gap: 22px; overflow: hidden; }
.social-card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent);
}
.social-card.ig { --accent: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); --glow: rgba(214, 41, 118, .25); }
.social-card.yt { --accent: #ff0000; --glow: rgba(255, 0, 0, .22); }
.social-card.mail { --accent: #19a0ff; --glow: rgba(25, 160, 255, .22); }
a.social-card:hover { box-shadow: var(--shadow), 0 0 44px var(--glow); }
.social-icon { flex: none; width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .2s ease; }
a.social-card:hover .social-icon { transform: scale(1.06) rotate(-3deg); }
.social-body { min-width: 0; }
.social-body h3 { margin-bottom: .2em; }
.social-body .handle { font-weight: 500; color: var(--muted); font-size: .95rem; margin-left: 6px; }
.social-body p { margin: 0 0 10px; overflow-wrap: anywhere; }
.social-cta { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--yellow); }
.grid-3.socials .social-card { flex-direction: column; align-items: flex-start; }

/* --- Stud Sculpt --- */
.app-shot {
    border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
    box-shadow: var(--shadow), 0 0 0 1px rgba(63, 169, 255, .08), 0 0 60px rgba(63, 169, 255, .10);
    background: linear-gradient(135deg, #1a2346, #0f1530); aspect-ratio: 16 / 10; display: grid; place-items: center;
}
.app-shot img { width: 100%; height: 100%; object-fit: cover; }
/* screenshot dentro una finestra del programma */
.app-window {
    display: block; margin-top: 48px; border-radius: 12px; overflow: hidden; background: #e9edf3;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: var(--shadow), 0 0 0 1px rgba(63, 169, 255, .1), 0 0 70px rgba(63, 169, 255, .14);
    transition: transform .3s ease, box-shadow .3s ease;
}
.app-window:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 0 0 1px rgba(63, 169, 255, .3), 0 0 80px rgba(63, 169, 255, .25); }
.app-window-bar { display: flex; gap: 7px; padding: 10px 14px; background: #1b2238; }
.app-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4566; }
.app-window-bar i:first-child { background: var(--saber-red); }
.app-window-bar i:nth-child(2) { background: var(--yellow); }
.app-window-bar i:last-child { background: var(--saber-green); }
.app-window img { width: 100%; height: auto; }
/* prima/dopo: modello 3D → mattoncini */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: inherit; }
.compare:hover { text-decoration: none; }
.compare figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #e9edf3; }
.compare img { width: 100%; height: auto; transition: transform .4s ease; }
.compare:hover img { transform: scale(1.03); }
.compare figcaption {
    position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 6px;
    background: rgba(5, 7, 15, .85); color: var(--text); font-family: var(--display); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
}
.compare figure:last-child figcaption { background: var(--yellow); color: #141000; }
.compare-arrow { font-size: 1.6rem; color: var(--yellow); text-shadow: 0 0 12px rgba(255, 207, 0, .5); }
.shot { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #e9edf3; align-self: center; }
.shot img { width: 100%; height: auto; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.03); }
.shot .cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; font-size: .9rem; font-weight: 600;
}
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps .card { padding-top: 64px; }
.steps .card::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 20px; left: 26px; width: 32px; height: 32px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--yellow); color: var(--yellow);
    font-family: var(--display); font-weight: 800; display: grid; place-items: center; font-size: .85rem;
}
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--saber-green); font-weight: 800; text-shadow: 0 0 8px rgba(77, 255, 77, .6); }
.check-list.limits li::before { content: "–"; color: var(--muted); text-shadow: none; }

/* --- testo lungo (privacy) --- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.05rem; margin-top: 2em; color: var(--yellow); }

/* --- piè di pagina con la fila di mattoncini colorati --- */
.brick-row {
    height: 22px; margin-top: 64px;
    background: url("/img/brick-row.svg") 0 0 / auto 22px repeat-x;
    filter: drop-shadow(0 -2px 8px rgba(0, 0, 0, .5));
}
.footer { background: var(--bg-2); padding: 40px 0 32px; font-size: .92rem; }
.footer-in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.footer p { margin: 10px 0 0; }
.social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.social a { color: var(--muted); font-weight: 600; }
.social a:hover { color: var(--text); }
.disclaimer { flex-basis: 100%; color: #68739a; font-size: .8rem; }
.legal-note { margin: 18px 0 0; color: #68739a; font-size: .8rem; }

/* --- banner dei cookie (solo con Analytics:GoogleId): barra sottile in fondo, "Accetta" e "Rifiuta" uguali, la X vale come rifiuto --- */
.consent {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; padding: 10px 0;
    background: rgba(10, 14, 28, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .45);
}
.consent[hidden] { display: none; }
.consent::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
    background: var(--saber-blue); box-shadow: 0 0 8px var(--saber-blue);
}
.consent-in { display: flex; align-items: center; gap: 10px 18px; }
.consent p { margin: 0; flex: 1; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.consent-title { color: var(--yellow); font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.consent-btns { display: flex; gap: 8px; flex-shrink: 0; }
.consent-btns .btn { margin-top: 4px; padding: 6px 14px; font-size: .64rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.consent-btns .btn::before { left: 8px; right: 8px; top: -4px; height: 4px; background: repeating-linear-gradient(90deg, var(--stud) 0 10px, transparent 10px 18px); }
.consent-x {
    flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.consent-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
@media (max-width: 700px) {
    .consent-in { flex-wrap: wrap; position: relative; }
    .consent p { flex-basis: 100%; padding-right: 28px; font-size: .76rem; }
    .consent-btns { flex: 1; }
    .consent-btns .btn { flex: 1; justify-content: center; }
    .consent-x { position: absolute; top: -4px; right: 8px; }
}
.link-btn { font: inherit; color: var(--yellow); background: none; border: 0; padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* --- area admin --- */
.admin-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar .topbar-in { height: 56px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
.form { display: grid; gap: 16px; max-width: 520px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea, .search input {
    font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line);
    border-radius: 8px; padding: 10px 12px; width: 100%;
}
.form input:focus, .form textarea:focus, .search input:focus { outline: 2px solid var(--saber-blue); outline-offset: 1px; }
.search { display: flex; gap: 8px; max-width: 480px; }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; border: 1px solid; }
.alert-warn { background: #2a2210; border-color: #6b5513; color: #ffe08a; }
.alert-ok { background: #0f2a1d; border-color: #1f6b45; color: #9be7bf; }
.alert-err { background: #2a1416; border-color: #6b2a2a; color: #ffb3a8; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-ok { background: #0f2a1d; color: #6fdca4; }
.pill-off { background: #2a1416; color: #ff8a78; }
.pill-grey { background: var(--surface-2); color: var(--muted); }
.copy-box textarea { width: 100%; min-height: 160px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
