/*

Copyright (C) 2026 Anotherweb.it - www.anotherweb.it 
È vietata la copia, la pubblicazione, la riproduzione e la redistribuzione dei contenuti in qualsiasi modo o forma

*/

*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: var(--primario);
    color: #171717;
}

/* --- SCROLL --- */

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

/* Firefox */
@supports (-moz-appearance:none) {

    *,
    *::before,
    *::after {
        scrollbar-color: var(--primario) transparent;
        scrollbar-width: thin;
        scrollbar-width: 5px;
    }
}

::-webkit-scrollbar-track {
    background: transparent;
    padding: 1px;
}

::-webkit-scrollbar-thumb {
    background: var(--primario);
    border-radius: 5px;
    transition: var(--t);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondario);
}

:root {
    --primario: #E26022;
    --secondario: #b43b03;
    --font: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    --sfondo: #f5f5f5;
    --testo: #171717;
    --input: #eeeeee;
    --bordo: #747474bc;

    --blue: #122ab4;
    --black: #171717;
    --green: #238d4a;
    --red: #bf1616;
    --red-hover: #7d0b0b;

    --t: all 100ms ease-in-out;
    --radius: 8px;
    --opacity: 0.25;

    --form-box: rgba(255, 255, 255, var(--opacity));
}

html[data-theme='light'] {
    --sfondo: #f5f5f5;
    --testo: #171717;
    --input: #eeeeee;
    --opacity: 0.25;
    --form-box: rgba(255, 255, 255, var(--opacity));
}

@media (prefers-color-scheme: light) {
    :root {
        --sfondo: #f5f5f5;
        --testo: #171717;
        --input: #eeeeee;
        --opacity: 0.25;
        --form-box: rgba(255, 255, 255, var(--opacity));
    }
}


html[data-theme='dark'] {
    --sfondo: #0c0c0c;
    --testo: #ebebeb;
    --input: #0e0e0e;
    color-scheme: dark;
    --opacity: 0.2;
    --form-box: rgba(0, 0, 0, var(--opacity));
}

@media (prefers-color-scheme: dark) {
    :root {
        --sfondo: #0c0c0c;
        --testo: #ebebeb;
        --input: #0e0e0e;
        --opacity: 0.2;
        --form-box: rgba(0, 0, 0, var(--opacity));
    }

    html {
        color-scheme: dark;
    }
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--primario);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    color: var(--testo);
    background-color: var(--sfondo);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 15px;
}

body,
button,
input,
textarea,
select,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
}



/* --- HEADER --- */

header {
    background-color: transparent;
    padding: 0rem;
    z-index: 2;
    display: flex;
    align-items: center;
    margin: 0;
    user-select: none;
    overflow: hidden;
}

header .container,
header .left,
header .right,
header .menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

header svg {
    width: 63px;
}

header .menu {
    list-style-type: none;
    margin-left: 20px;

}

header .menu>a {
    width: 50px;
    height: 50px;
    color: var(--testo);
    text-decoration: none;
    transition: var(--t);
    text-align: center;
}

header .menu > a button span,
header .menu > a button {
    font-weight: 400 !important;
    transition: var(--t)
}

header .menu > a button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--testo);
}

header .menu > a:hover,
header .menu > a:hover button span {
    font-weight: bold !important;
}

header .menu li,
header .menu button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    margin: 2px;
    position: relative;
    transition: var(--t);
}

header .menu li i,
header .menu button i {
    width: 20px;
    height: 20px;
    font-size: 16px;
    transition: var(--t);
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header .menu > a:hover li i,
header .menu > a:hover button i {
    margin-top: -15px;
}

header .menu li span,
header .menu button span {
    opacity: 0;
    position: absolute;
    font-size: 12px;
    text-align: center;
    bottom: 0;
    inset-inline-start: 50%;
    top: 50%;
    display: block;
    transform: translateX(-50%);
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    letter-spacing: -0.5px;
}

header .menu > a:hover li span,
header .menu > a:hover button span {
    overflow: visible;
    opacity: 1;
}

header .menu > a li.active::before {
    content: " ";
    position: absolute;
    pointer-events: none;
    background-color: var(--testo);
    transform: translateX(-50%);
    width: 10px;
    height: 5px;
    border-radius: 3px;
    inset-inline-start: 50%;
    bottom: 8px;
    display: block;
    transition: var(--t);
    opacity: 1;
}

header .menu > a:hover li.active::before {
    opacity: 0;
}

@media only screen and (max-width: 464px) {
    .menu .hide.mail {
        display: none;
    }
}

@media only screen and (max-width: 400px) {
    .menu .hide {
        display: none;
    }
}

#middle {
    flex-grow: 2;
    display: flex;
    flex-direction: column;
}

.container {
    width: 93%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-content {
    width: calc(100% - 12px);
    margin: 0 auto;
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    min-height: 100%;
    flex-grow: 1;
    background-color: var(--sfondo);
    border: 1px solid var(--bordo);
    display: flex;
    flex-direction: column;
}

.page-content > iframe {
    min-height: 100%;
    height: max-content;
    flex-grow: 2;
}

/* --- ALERTIFY --- */

.alertify-notifier .ajs-message {
    color: var(--testo) !important;
    border-radius: var(--radius) !important;
    padding: 14px 15px !important;
    background-color: var(--sfondo) !important;
    border: 1px solid var(--bordo);
    border-left: 6px solid green;
    top: 40px !important;
    cursor: pointer;
}

.alertify-notifier .ajs-message.ajs-error {
    border-left-color: darkred !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: var(--opacity);
}


/* --- FOOTER --- */

footer {
    text-align: center;
    padding: 12px;
    padding-bottom: 6px;
    user-select: none;
    font-size: 14px;
    line-height: 1.6;
}

footer span {
    border-left: 1px solid #71798e !important;
    padding-left: 0.5rem !important;
    margin-left: 0.5rem !important;
}

footer .copyright {
    margin-bottom: 6px;
}