/* Miglioramento: colonna 3 menu sempre dentro, box col-3 non troppo larghi con focus, padding e overflow gestiti, altezza uniforme verticale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}
[data-nav="menu1"] {
    background-image: url("../assets/img/Adizero.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 1px 4px #000;
    /* fallback colore se l'immagine non si carica */
    background-color: #222;
}

.container {
    display: grid;
    grid-template-columns: 10% 2fr 10%;
    height: 100vh;
    width: 100vw;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
}

.box-wrapper {
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.col-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    height: 100%;
}

.col-2 {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 18px;
    height: 100%;
}

.col-2 .row-a {
    flex: 1 1 0;
    display: flex;
    align-items: stretch;
}

.col-2 .row-b {
    flex: 1 1 0;
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.col-3 {
    display: grid;
    grid-template-rows: repeat(15, 1fr);
    gap: 12px;
    height: 100%;
    overflow-y: auto;
    padding: 1px 10px;
}

.col-3 .box-wrapper {
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.col-3 .box {
    max-width: 98%;
    margin: 0 auto;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    padding: 10px 14px;
    border: 2px solid transparent;
    outline: 3px solid transparent;
    outline-offset: 0px;
    box-sizing: border-box;
    background-clip: padding-box;
    transition: background-color 0.3s, border-color 0.2s, outline-color 0.2s, filter 0.2s, transform 0.15s;
    width: 100%;
    min-height: 0;
    max-width: 100%;
}

.box:focus, .box.focused {
    border-color: #888;
    outline: 3px solid #333;
    outline-offset: 2px;
    filter: brightness(95%);
    transform: scale(1.02);
    z-index: 2;
}

.box:active {
    filter: brightness(90%);
}

/* Colori pastello */
.pastel1 { background-color: #ffd1dc; }
.pastel2 { background-color: #c1f0f6; }
.pastel3 { background-color: #d5f4e6; }
.pastel4 { background-color: #fef3bd; }
.pastel5 { background-color: #e2c2f9; }
.pastel6 { background-color: #ffdfba; }
.pastel7 { background-color: #bae1ff; }
.pastel8 { background-color: #baffc9; }
.pastel9 { background-color: #ffffba; }
.pastel10 { background-color: #ffb3ba; }

#offcanvas-overlay {
    pointer-events: none;
}
#offcanvas.open ~ #offcanvas-overlay {
    pointer-events: auto;
}
#offcanvas, #offcanvas * {
    pointer-events: auto;
}
#offcanvas, #offcanvas * {
    cursor: auto !important;
}

