/* =========================================================
   WRITEON - COMMON
   Regole condivise da tutto il sito
   ========================================================= */


/* ---------- BASE ---------- */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fa;
    color: #161616;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ---------- HEADER ---------- */

.site-header {
    height: 86px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;

    display: flex;
    align-items: center;

    padding: 0 28px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    display: block;
    height: 58px;
    width: auto;
}


/* ---------- MAIN ---------- */

.site-main {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 40px 28px;
}


/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 24px;

    border: 0;
    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(
        90deg,
        #0b7cff,
        #43b8ff
    );
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 140, 255, 0.22);
}

.btn-primary:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #17324d;
    border: 1px solid #8fcfff;
}

/* ---------- CARDS ---------- */

.card {
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 12px;
}


/* ---------- UTILITIES ---------- */

.muted {
    color: #666666;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    .site-header {
        height: 72px;
        padding: 0 18px;
    }

    .site-logo img {
        height: 48px;
    }

    .site-main {
        padding: 28px 18px;
    }

}



/* ---------- FOOTER ---------- */

.site-footer {
    padding: 28px;
    text-align: center;

    font-size: 13px;
    color: #888;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.site-header {
    height: 86px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;
}

.site-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-user-alias {
    font-weight: 700;
}

.site-user-id {
    padding: 4px 9px;

    border: 1px solid #9fd2ff;
    border-radius: 999px;

    background: #f3f9ff;
    color: #168cff;

    font-size: 12px;
    font-weight: 700;
}

.site-user-link {
    font-size: 13px;
    font-weight: 700;
    color: #444;
}


@media (max-width: 700px) {

    .site-user-id {
        display: none;
    }

    .site-user-link {
        font-size: 12px;
    }

}


.site-user {
    margin-left: auto;
}


/* ---------- USER MENU ---------- */

.user-menu {
    position: relative;
}

.user-menu summary {
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    user-select: none;
}

.user-menu-arrow {
    color: #168cff;
    font-size: 12px;
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;

    min-width: 180px;

    padding: 10px;

    background: #fff;

    border: 1px solid #dedede;
    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);

    z-index: 100;
}

.user-menu-id {
    padding: 8px 10px 10px;

    color: #168cff;
    font-size: 12px;
    font-weight: 700;

    border-bottom: 1px solid #eee;

    margin-bottom: 6px;
}

.user-menu-panel a {
    display: block;

    padding: 10px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;
}

.user-menu-panel a:hover {
    background: #f3f9ff;
    color: #168cff;
}


.user-menu-language {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.language-current {
    color: #168cff;
    font-size: 12px;
}

.header-book {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
}



.guest-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.guest-language {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}
