@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');
.regolamento-page {
    width: 100%;
    min-height: calc(100vh - 90px);
    padding: 50px 20px 60px;
    display: flex;
    justify-content: center;
    position: relative;
}
.regolamento-page::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events:none;
    opacity:0.6;
}
.regolamento-container {
    max-width: 900px;
    width: 100%;
    position:relative;
}
.regolamento-header {
    text-align: center;
    margin-bottom: 38px;
    position:relative;
}
.hero-eyebrow{
    display:inline-block;
    font-family:'Caveat',cursive;
    font-size:1.35rem;
    font-weight:700;
    color:#ff8a8a;
    transform:rotate(-0.8deg);
    margin-bottom:8px;
}
.regolamento-header h1 {
    font-size: 2.05rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height:1.05;
    position:relative;
    display:inline-block;
}
.regolamento-header h1 .scribble{
    position:absolute;
    left:-8px; right:-8px; bottom:-12px; height:16px; pointer-events:none; opacity:0.9;
}
.regolamento-header h1 .scribble path{
    stroke:#e60000; stroke-width:2.2; stroke-linecap:round; fill:none;
    stroke-dasharray:280; stroke-dashoffset:280; animation:scribble 1.1s ease 0.8s forwards;
}
@keyframes scribble{to{stroke-dashoffset:0}}
.header-meta{
    display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:18px;
}
.header-pill{
    display:inline-flex; align-items:center; gap:6px;
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07);
    padding:6px 12px; border-radius:999px; font-size:0.72rem; font-weight:700; color:#9aa0a6; letter-spacing:0.3px;
}
.header-pill strong{color:#ffd1d1}
.header-pill.red{ background:rgba(128,12,12,0.14); border-color:rgba(255,46,46,0.18); color:#ffcccc}
.premessa {
    font-size: 0.92rem;
    color: #b0b0c0;
    line-height: 1.7;
    max-width: 800px;
    margin: 22px auto 0;
    padding: 18px 22px;
    background: rgba(128, 12, 12, 0.07);
    border-left: 3px solid #800c0c;
    border-radius: 0 12px 12px 0;
    text-align: left;
    position:relative;
}
.premessa::after{
    content:"— letto e approvato dalla community";
    position:absolute;
    bottom:-18px; right:12px;
    font-family:'Caveat',cursive; font-size:0.92rem; color:#ff8a8a; transform:rotate(-0.6deg);
}
.toc{
    display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:28px;
}
.toc a{
    display:inline-flex; align-items:center; gap:6px;
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07);
    padding:8px 14px; border-radius:999px; color:#c9c2b8; text-decoration:none; font-size:0.78rem; font-weight:700;
    transition:all 0.2s;
}
.toc a:hover{ background:rgba(255,46,46,0.10); border-color:rgba(255,46,46,0.22); color:#fff; transform:translateY(-1px)}
.toc a span{width:18px;height:18px;border-radius:50%;background:#800c0c;color:#fff;display:grid;place-items:center;font-size:0.7rem;font-weight:900}
.sezione {
    margin-bottom: 42px;
    position:relative;
}
.sezione-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(128, 12, 12, 0.28);
    position:relative;
}
.sezione-header::after{
    content:""; position:absolute; bottom:-2px; left:0; width:52px; height:2px; background:#e74c3c; border-radius:2px;
}
.sezione-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #800c0c;
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow:0 4px 12px rgba(128,12,12,0.35);
    transform:rotate(-2deg);
}
.sezione:nth-child(even) .sezione-numero{ transform:rotate(1.5deg); background:#a00e0e}
.sezione-header h2 {
    font-size: 1.42rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}
.sezione-header p.hand{
    margin-left:auto; font-family:'Caveat',cursive; color:#ff8a8a; font-size:0.95rem; font-weight:700; transform:rotate(-0.5deg);
}
.regola {
    background: #110505;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.25s ease;
    position:relative;
    overflow:hidden;
}
.regola::after{
    content:""; position:absolute; inset:0;
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events:none; opacity:0.5;
}
.regola:nth-child(odd){ border-radius:12px 14px 11px 13px; transform:rotate(-0.08deg)}
.regola:nth-child(even){ border-radius:13px 11px 14px 12px; transform:rotate(0.08deg)}
.regola:hover {
    border-color: rgba(128, 12, 12, 0.28);
    background: #170707;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    transform:translateY(-1px) rotate(0deg);
}
.regola-content {
    flex: 1;
    position:relative; z-index:1;
}
.regola-content h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing:-0.2px;
}
.regola-content p {
    font-size: 0.88rem;
    color: #a0a0a0;
    line-height: 1.6;
}
.regola-content ul {
    list-style: none;
    padding: 0;
    margin-top: 6px;
}
.regola-content ul li {
    font-size: 0.86rem;
    color: #a0a0a0;
    line-height: 1.65;
    padding-left: 18px;
    position: relative;
}
.regola-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #800c0c;
    font-weight: 700;
}
.regola-content ul li strong {
    color: #ff6b6b;
}
.hand-inline{font-family:'Caveat',cursive; color:#ff8a8a; font-weight:700; font-size:0.92rem; margin-left:6px}
.sanzione {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    min-width: 135px;
    max-width: 200px;
    letter-spacing: 0.2px;
    position:relative; z-index:1;
    border-width:1px; border-style:solid;
}
.sanzione.mute {
    background: rgba(255, 165, 0, 0.10);
    border-color: rgba(255, 165, 0, 0.28);
    color: #ffb84d;
}
.sanzione.ban {
    background: rgba(230, 0, 0, 0.10);
    border-color: rgba(230, 0, 0, 0.26);
    color: #ff6b6b;
}
.sanzione.permanente {
    background: rgba(128, 0, 0, 0.16);
    border-color: rgba(255, 0, 0, 0.32);
    color: #ff7a7a;
}
/* footer centralizzato in global.css */

@media (max-width: 768px) {
    .regolamento-page {
        padding: 36px 15px 40px;
    }
    .regolamento-header h1 {
        font-size: 1.45rem;
    }
    .header-meta{ gap:6px}
    .premessa {
        font-size: 0.84rem;
        padding: 14px 16px;
    }
    .premessa::after{ display:none}
    .sezione-header h2 {
        font-size: 1.18rem;
    }
    .sezione-header p.hand{ display:none}
    .regola {
        flex-direction: column;
        gap: 10px;
        padding: 16px 16px;
        transform:none !important;
    }
    .sanzione {
        align-self: flex-start;
        min-width: auto;
        max-width: 100%;
        width: auto;
        font-size: 0.76rem;
    }
    .regola-content h3 {
        font-size: 0.95rem;
    }
    .regola-content p,
    .regola-content ul li {
        font-size: 0.83rem;
    }
    .toc{ gap:6px}
    .toc a{ padding:6px 10px; font-size:0.74rem}
}
