:root {
    --primary-color: #1D1540;
    --secondary-color: #E7C74B;
    --tertiary-color: #83CDC2;
    --font-color: #444;
    --bg-color: #fff;
    --color: #444;
    --success-color: #008800;
    --warning-color: #ffcc00;
    --danger-color: #cc0000;
    --bianco: #fff;
    --nero: #000;
    --nero-opaco: rgba(0, 0, 0, .15);
    --icon-color: rgba(0, 0, 0, .3);
    --nero-shadow: rgba(0, 0, 0, .6);
    --discord-color: #7289da;
    --telegram-color: #0088cc;
    --viola-chiaro: rgb(85, 0, 114);
    --viola-scuro: rgb(71, 47, 161);
    --blu: #0027D0;
}

.dark {
    --font-color: #fff;
    --bg-color: #666;
    --color: #fff;
    --icon-color: rgba(255, 255, 255, .3);
}

html {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    font-family: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    padding: calc(var(--bs-gutter-x) * .5) 0px;
    color: var(--color);
    background-color: var(--bg-color);
    width: 100%;
}

* {
    box-sizing: border-box;
}

.header {
    border-bottom: 1px solid var(--secondary-color);
    padding-top: calc(var(--bs-gutter-x) * .5);
    padding-bottom: calc(var(--bs-gutter-x) * .5);
    background-color: var(--bg-color);
}

.custom-sticky {
    top: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--secondary-color);
    z-index: 1020;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
    max-width: 350px;
}

#logo {
    max-width: 75px;
}

.login-icon {
    margin-right: calc(var(--bs-gutter-x) * .5);
}


h1, h2, h3 {
    color: var(--secondary-color);
}

.switch-mode {
    text-align: right;
}

.switch-mode em {
    cursor: pointer;
    font-size: 26px;
    line-height: 75px;
}

.admin {
    background-color: var(--primary-color);
}

.player {
    background-color: var(--secondary-color);
}

.dm {
    background-color: var(--tertiary-color);
}

.page {
    padding-top: calc(var(--bs-gutter-x) * .5);
    padding-bottom: calc(var(--bs-gutter-x) * .5);
}

.small-box {
    border-radius: 0.25rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    display: block;
    margin-bottom: calc(var(--bs-gutter-x) * .5);
    position: relative;
    text-decoration: none;
    color: var(--color);
    min-height: 120px;
}

.small-box h3 {
    font-size: 20px;
    color: var(--color);
}

.small-box.admin h3 {
    color: var(--bianco);
}

.small-box>.inner {
    padding: 10px;
    display: block;
    width: 65%;
}

.small-box .icon {
    color: var(--icon-color);
    z-index: 0;
    display: block;
}

.small-box.admin .icon {
    color: rgba(255, 255, 255, .15);
    z-index: 0;
    display: block;
}

.small-box .icon>em {
    font-size: 90px;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: transform .3s linear, -webkit-transform .3s linear;
}

.small-box .icon>em.fa-solid {
    font-size: 70px;
    top: 20px;
}

.table-slide {
    width: 100% !important;
}

.pointer {
    cursor: pointer;
}

.d-block {
    max-width: 100%;
    width: auto;
}

.testo-rosso {
    color: var(--danger-color);
}

.testo-verde {
    color: var(--success-color);
}

.testo-giallo {
    color: var(--warning-color);
}

/***** ADMIN *****/
.footer {
    padding-top: calc(var(--bs-gutter-x) * .5);
    padding-bottom: calc(var(--bs-gutter-x) * .5);
    border-top: 1px solid var(--secondary-color);
}

#cnt_copy {
    float: left;
}

#license {
    float: right;
}

a {
    color: var(--color);
}

.cursor {
    cursor: pointer;
}

.disclaimer {
    border: 1px solid #ccc;
    color: var(--danger-color);
    text-align: center;
    font-size: 18px;
    border-radius: 10px;
    padding: 20px;
}

.discord {
    background-color: var(--discord-color);
    border-radius: 20px;
}

.svg {
    width: 20px;
    margin-left: 10px;
}

.center-row {
    flex-direction: column;
    justify-content: space-between;
}

.home {
    background: linear-gradient(0deg, var(--viola-chiaro), var(--viola-scuro));
    min-height: 100vh;
    position: relative;
    color: var(--bianco);
}

.home #license a {
    color: var(--bianco);
}

.box-home {
    max-width: 580px;
    background: linear-gradient(0deg, var(--viola-chiaro), var(--viola-scuro));
    box-shadow: 0 0 var(--nero), 0 0 var(--nero), 0 24px 32px 0 var(--nero-opaco);
    width: 100%;
    min-height: calc(100vh - 100px);
    margin: 25px auto;
    border-radius: 25px;
    text-align: center;
}

.logo-box-home {
    max-width: 100px;
    margin: 20px auto;
    display: block;
    border-radius: 50%;
}

.text-box-home {
    color: var(--bianco);
    font-weight: bold;
}

.preorder-box-home, .link-box-home {
    padding: 10px;
    background-color: var(--bianco);
    border-radius: 10px;
    display: block;
    text-decoration: none;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.preorder-img-box-home {
    float: left;
    width: 50px;
    border-radius: 5px;
}

.preorder-title-box-home, .link-title-box-home {
    float: right;
    width: calc(100% - 60px);
    display: block;
    color: var(--blu);
    font-weight: bold;
    text-align: center;
}

.link-title-box-home {
    float: none;
    width: 100%;
}

.clear{
    display: block;
    height: 0;
    clear: both
}

.biglink-box-home {
    background-color: var(--bianco);
    border-radius: 10px;
    display: block;
    text-decoration: none;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.biglink-img-box-home {
    width: 100%;
    display: block;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.biglink-title-box-home {
    display: block;
    color: var(--blu);
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.icone-box-home {
    text-decoration: none;
    margin-bottom: 20px;
}

.icona-box-home {
    text-decoration: none;
    margin: 0 5px;
    color: var(--bianco);
}

.icona-box-home em {
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
    cursor: pointer;
}

.icona-box-home em:hover {
    transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(107.5%) scaleY(107.5%);
}

.cookie-disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: var(--nero);
    z-index: 2;
}

.dice-result {
    position: relative;
    min-height: 100%;
}

.dice-alert {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px 20px;
    background: var(--nero-shadow);
    color: var(--bianco);
    font-size: 24px;
    border-radius: 8px;
}

canvas.webgl-dice {
    position: absolute !important;
    top: 250px;
    left: 0;
    width: 100% !important;
    height: calc(100vh - 298px) !important;
    z-index: 1;
    pointer-events: none;
    background-color: transparent !important;
}

.dice-result {
    position: relative;
    z-index: 10;
    text-align: center;
    min-height: calc(100vh - 229px);
}

.dice-alert {
    font-size: 2rem;
    font-weight: bold;
    color: var(--bianco);
    text-shadow: 0 0 10px var(--nero);
}

/* ═══════════════════════════════════════════════════
   DADI – Pannello selezione
═══════════════════════════════════════════════════ */
.dice-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 14px 0 8px;
}

.btn-dado {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    min-width: 82px;
    transition: background .18s, border-color .18s, transform .15s, box-shadow .18s;
    font-family: inherit;
    user-select: none;
}

.btn-dado:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-dado.selected {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 0 18px rgba(231, 199, 75, 0.55);
    transform: translateY(-3px);
}

.dado-icon {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
}

.dado-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .85;
}

/* Dualità */
.duality-icon {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.hope-d {
    color: #c084fc;
    font-size: 1.4rem;
    font-weight: 800;
}

.fear-d {
    color: #fbbf24;
    font-size: 1.4rem;
    font-weight: 800;
}

.btn-dado.selected .hope-d { color: #7e22ce; }
.btn-dado.selected .fear-d { color: #92400e; }

/* Quantità */
.dado-qty {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 5px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 1px 6px 2px;
    transition: background .12s;
}

.qty-btn:hover { background: rgba(255, 255, 255, 0.3); }

.btn-dado.selected .qty-btn {
    background: rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0.2);
    color: var(--primary-color);
}

.qty-input {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    width: 34px;
    padding: 2px 2px;
}

.btn-dado.selected .qty-input {
    background: rgba(0,0,0,0.15);
    color: var(--primary-color);
    border-color: rgba(0,0,0,0.2);
}

/* Canvas 3D */
.dice-canvas-wrap {
    position: relative;
    height: calc(100vh - 550px);
    min-height: 320px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 12px;
}

.dice-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
}

/* Area risultati */
.dice-results-area {
    text-align: center;
    min-height: 90px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dice-hint,
.dice-rolling-msg {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    font-style: italic;
}

.dice-rolling-msg { color: var(--secondary-color); font-style: normal; font-size: 1.1rem; }

/* Box risultato singolo */
.dice-result-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.38);
    border: 2px solid var(--secondary-color);
    border-radius: 18px;
    padding: 14px 30px;
    min-width: 110px;
    transition: border-color .2s;
}

.res-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.res-value {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
}

.res-detail {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 3px;
}

.res-note {
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 3px;
}

.res-crit { border-color: #22c55e; }
.res-crit .res-value,
.res-crit .res-note  { color: #22c55e; }

.res-fail { border-color: #ef4444; }
.res-fail .res-value,
.res-fail .res-note  { color: #ef4444; }

/* Dualità */
.dice-result-duality {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.res-hope {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
}
.res-hope .res-value { color: #c084fc; }

.res-fear {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}
.res-fear .res-value { color: #fcd34d; }

.badge-hope-win {
    background-color: #7c3aed !important;
    color: #fff;
    font-size: 1rem;
    padding: 7px 22px;
    border-radius: 999px;
}

.badge-fear-win {
    background-color: #b45309 !important;
    color: #fff;
    font-size: 1rem;
    padding: 7px 22px;
    border-radius: 999px;
}

.badge-crit-win {
    background-color: #22c55e !important;
    color: #fff;
    font-size: 1rem;
    padding: 7px 22px;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

/* ─── RIGA VANTAGGIO / SVANTAGGIO ─── */
.advantage-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 4px;
    flex-wrap: wrap;
}

.adv-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-adv {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.75);
    border-radius: 999px;
    padding: 5px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.btn-adv:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

.btn-adv.selected {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #1D1540;
}

@media all and (max-width: 1700px) {
    .footer {
        text-align: center;
    }

    #cnt_copy {
        float: none;
        margin-bottom: 10px;
    }

    #license {
        float: none;
    }
}

/* ═══════════════════════════════════════════════════
   SITO PUBBLICO – Layout pagine (home, contenuti)
═══════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

body.site {
    background-color: var(--bianco);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

body.site main {
    flex: 1 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 10px 18px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* ── Header / Navbar ───────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--primary-color);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .18);
    z-index: 1030;
}

/* Padding statico (nessun JS) pari all'altezza reale dell'header alle due
   soglie di layout, misurata via browser headless. */
#contenuto-principale {
    padding-top: 83px;
}

@media all and (max-width: 991.98px) {
    #contenuto-principale {
        padding-top: 66px;
    }
}

.site-header .navbar {
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--bianco);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: .01em;
}

.navbar-logo {
    height: 1.7em;
    width: auto;
    display: block;
}

.site-header .navbar-brand small {
    display: block;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .35em;
    color: var(--secondary-color);
    margin-top: -2px;
}

.brand-accent {
    color: var(--secondary-color);
}

.site-header .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
    padding: .5rem .25rem;
    margin: 0 .65rem;
    transition: color .2s ease;
}

.site-header .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width .25s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--bianco);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
    width: 100%;
}

.site-header .navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
}

.site-header .navbar-toggler-icon {
    filter: invert(1);
}

@media all and (max-width: 991.98px) {
    .site-header .navbar {
        padding-top: .5rem;
        padding-bottom: .5rem;
    }

    .site-header .navbar-brand {
        font-size: 1.15rem;
    }

    .site-header .navbar-brand small {
        font-size: .55rem;
        letter-spacing: .25em;
        margin-top: -1px;
    }

    .site-header .navbar-toggler {
        padding: .25rem .5rem;
        font-size: .95rem;
    }

    .site-header .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background: var(--primary-color);
        box-shadow: 0 14px 24px rgba(0, 0, 0, .25);
        padding: .75rem 1rem 1rem;
    }

    .site-header .nav-item {
        margin-bottom: .35rem;
    }

    .site-header .btn-nav-cta {
        display: inline-block;
        margin: .75rem 0 .25rem;
    }
}

.btn-nav-cta {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    font-weight: 700;
    border-radius: 999px;
    padding: .4rem 1.2rem;
    margin-left: .5rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-nav-cta:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(231, 199, 75, .4);
}

/* ── Hero (home) ───────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--viola-scuro), var(--viola-chiaro));
    color: var(--bianco);
    padding: 6.5rem 0 5.5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    margin-bottom: 1rem;
}

.hero h1 {
    color: var(--bianco);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.4rem;
}

.hero .text-accent {
    color: var(--secondary-color);
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 2.2rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary,
.btn-hero-outline {
    display: inline-block;
    padding: .8rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-hero-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-hero-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(231, 199, 75, .4);
}

.btn-hero-outline {
    background: transparent;
    color: var(--bianco);
    border: 2px solid rgba(255, 255, 255, .5);
}

.btn-hero-outline:hover {
    border-color: var(--bianco);
    transform: translateY(-3px);
}

.hero-dice {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    background: rgba(231, 199, 75, .12);
    border: 2px solid rgba(231, 199, 75, .35);
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.8rem;
    z-index: 1;
    animation: float-dice 7s ease-in-out infinite;
}

.hero-dice-1 {
    top: 12%;
    right: 8%;
}

.hero-dice-2 {
    bottom: 8%;
    right: 22%;
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
    animation-duration: 9s;
    animation-delay: 1.2s;
    opacity: .8;
}

@keyframes float-dice {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(8deg);
    }
}

/* ── Cards di collegamento (home) ─────────────────── */
.section-cards {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.feature-card {
    display: block;
    height: 100%;
    padding: 2.2rem 1.8rem;
    background: var(--bianco);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    text-decoration: none;
    color: var(--font-color);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(29, 21, 64, .14);
    border-color: var(--secondary-color);
}

.feature-icon {
    display: inline-block;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: .6rem;
}

.feature-card p {
    color: var(--font-color);
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--viola-scuro);
    font-weight: 700;
}

/* ── Pagine di contenuto ───────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--viola-scuro), var(--viola-chiaro));
    color: var(--bianco);
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}

.page-eyebrow {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    margin-bottom: .8rem;
}

.page-hero h1 {
    color: var(--bianco);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0;
}

.page-hero-note {
    color: rgba(255, 255, 255, .85);
    margin: 1rem 0 0;
}

.page-body {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.content-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--font-color);
}

.content-text p {
    margin-bottom: 1.4rem;
}

.content-text h2 {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 2.4rem 0 1rem;
}

.content-text h2:first-child {
    margin-top: 0;
}

.content-text ul,
.content-text ol.lettered-list {
    margin: 0 0 1.4rem;
    padding-left: 1.6rem;
}

.content-text ul li,
.content-text ol.lettered-list li {
    margin-bottom: .5rem;
}

.content-text ol.lettered-list {
    list-style-type: lower-alpha;
}

.lead-paragraph {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.highlight-paragraph {
    position: relative;
    padding-left: 1.2rem;
    border-left: 4px solid var(--secondary-color);
    font-weight: 700;
    color: var(--viola-scuro);
    font-size: 1.15rem;
}

.highlight-paragraph.highlight-quiet {
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--font-color);
}

.mission-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.mission-list li {
    position: relative;
    padding: .5rem 0 .5rem 2rem;
    margin-bottom: .4rem;
    border-bottom: 1px dashed rgba(0, 0, 0, .08);
}

.mission-list li::before {
    content: "🎲";
    position: absolute;
    left: 0;
    top: .5rem;
    font-size: .95rem;
}

.mission-list li:last-child {
    border-bottom: none;
}

/* ── Direttivo ─────────────────────────────────────── */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    max-width: 980px;
    margin: 0 auto;
}

.board-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.8rem 1.5rem;
    background: var(--bianco);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    transition-delay: var(--delay, 0s);
}

.board-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 14px 28px rgba(29, 21, 64, .12);
}

.board-role {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: var(--primary-color);
    border-radius: 999px;
    padding: .3rem .9rem;
    align-self: center;
}

.board-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ── Call to action "Vuoi associarti?" ─────────────── */
.join-cta {
    background: linear-gradient(135deg, var(--viola-scuro), var(--viola-chiaro));
    color: var(--bianco);
    padding: 4rem 0;
    text-align: center;
}

.join-cta h2 {
    color: var(--bianco);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: .8rem;
}

.join-cta p {
    color: rgba(255, 255, 255, .85);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

/* ── Footer sito pubblico ──────────────────────────── */
.site-footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, .85);
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-logo {
    color: var(--bianco);
    font-weight: 800;
    font-size: 1.25rem;
}

.footer-logo small {
    display: block;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .35em;
    color: var(--secondary-color);
}

.footer-tagline {
    margin-top: .6rem;
    color: rgba(255, 255, 255, .65);
    max-width: 320px;
}

.footer-links-title {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .1em;
    margin-bottom: .7rem;
}

.footer-links a,
.footer-contacts a {
    display: block;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    margin-bottom: .5rem;
    transition: color .2s ease;
}

.footer-links a:hover,
.footer-contacts a:hover {
    color: var(--secondary-color);
}

.footer-legal {
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, .5);
    font-size: .78rem;
    line-height: 1.6;
    text-align: center;
}

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .4rem 1.2rem;
    text-align: center;
    color: rgba(255, 255, 255, .6);
    font-size: .9rem;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-bottom-link:hover {
    color: var(--secondary-color);
}

@media all and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .hero {
        padding: 2.75rem 0 2.25rem;
    }

    .hero-lead {
        margin-bottom: 1.6rem;
    }

    .section-cards {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .page-hero {
        padding: 2.25rem 0 1.75rem;
    }

    .page-body {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .join-cta {
        padding: 2.75rem 0;
    }
}

/* ── Animazioni al reveal (scroll) ─────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-dice {
        animation: none;
    }
}