/* =========================
x nascondere la descrizione 
========================= */

.site-description {
  display: none;
}

/* =========================
FONTS
========================= */

@font-face {
    font-family: "AlbyFine";
    src: url("/wp-content/themes/abovethatshop/assets/fonts/albyfine.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Albygrosso";
    src: url("/wp-content/themes/abovethatshop/assets/fonts/albygrosso.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Albysupergrosso";
    src: url("/wp-content/themes/abovethatshop/assets/fonts/albysupergrosso.woff2") format("woff2");
    font-display: swap;
}

/* =========================
GLOBAL
========================= */

html,
body {
    margin: 0;
    padding: 0;
    background: #111;
}

body,
.content,
.menu-button,
.overlay-menu a,
.theme-button,
.close-menu,
#contact-form input,
#contact-form textarea,
#contact-form button {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

.site-title,
.site-description {
    font-family: Georgia, "Times New Roman", serif;
}

/* =========================
VIEWPORT + BOOK
========================= */

.viewport {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.book {
    width: 680px;
    min-height: 100vh;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: background .3s ease;
}

body.dark .book {
    background: #111;
}

/* =========================
HEADER
========================= */

.site-header {
    position: absolute;
    top: 20px;
    left: 20px;
}

.site-title {
    margin: 0;
    font-size: 14px;
    color: #111;
}

.site-description {
    margin-top: 2px;
    font-size: 14px;
    color: #111;
}

body.dark .site-title {
    color: #fff;
}

/* =========================
BUTTONS
========================= */

.menu-button,
.theme-button {
    position: absolute;
    font-size: 14px;
    color: #111;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-button {
    top: 20px;
    right: 20px;
}

.theme-button {
    bottom: 20px;
    right: 20px;
}

body.dark .menu-button,
body.dark .theme-button {
    color: #fff;
}

/* =========================
PAGE
========================= */

.page {
    padding: 140px 0;
}

.spread {
    display: flex;
    justify-content: center;
}

.page-inner {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    text-align: justify;
    hyphens: auto;
}

.title {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 40px;
}

/* =========================
CONTENT
========================= */

.content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.35;
    color: rgba(0,0,0,.75);
    text-rendering: optimizeLegibility;
}

.content p {
    margin: 0 0 .25em;
}

body.dark .content {
    color: rgba(255,255,255,.75);
}

body.dark h1 {
    color: #fff;
}

/* =========================
COLUMN LAYOUTS
========================= */

.content-single {
    column-count: 1;
}

.content-double {
    column-count: 2;
    column-gap: 40px;
    column-rule: 1px solid rgba(0,0,0,.08);
}

.content-triple {
    column-count: 3;
    column-gap: 32px;
    column-rule: 1px solid rgba(0,0,0,.08);
}

body.dark .content-double,
body.dark .content-triple {
    column-rule: 1px solid rgba(255,255,255,.08);
}

/* =========================
GRID
========================= */

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.content-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}


/* =========================
CONTENT FLEX
========================= */

.content-flex {
    display: flex;
}

/* colonne = identiche a column-count */
.content-flex > div {
    flex: 1;
    min-width: 0;
    padding: 0 20px; /* metà del gap */
}

/* linea perfettamente equivalente a column-rule */
.content-flex {
    position: relative;
}

.content-flex::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(0,0,0,.08);
    transform: translateX(-0.5px);
    pointer-events: none;
}

body.dark .content-flex::before {
    background: rgba(255,255,255,.08);
}
@media (max-width: 768px) {
    .content-flex {
        flex-direction: column;
    }

    .content-flex > div {
        padding: 0;
    }

    .content-flex::before {
        display: none;
    }

    .content-flex > div:first-child {
        border-bottom: 1px solid rgba(0,0,0,.08);
        padding-bottom: 20px;
    }

    body.dark .content-flex > div:first-child {
        border-bottom-color: rgba(255,255,255,.08);
    }
}

/* =========================
VERTICAL TEXT
========================= */

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.vertical-up {
    display: inline-block;
    transform: rotate(180deg);
}

/* =========================
OVERLAY MENU
========================= */

.overlay-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: #c0cbdb !important;
    padding: 40px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 9999;
}

.overlay-menu.active {
    transform: translateX(0);
}

.close-menu {
    font-size: 14px;
    color: #111;
    cursor: pointer;
    margin-bottom: 80px;
	margin-top: -20px; /* sposta verso l'alto */
}

.close-menu:hover {
    opacity: .5;
}

.overlay-menu a {
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
    color: #111;
    text-decoration: none;
}

@media (max-width: 700px) {

    .overlay-menu {
        width: 65vw;   /* si adatta allo schermo */
        max-width: 200px;
        padding: 24px;
		margin-top: 10px; /* sposta verso l'alto */

    }

}

/* =========================
CONTACT FORM
========================= */

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    box-sizing: border-box;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;

    padding: 10px 0;

    border: none;
    border-bottom: 1px solid rgba(0,0,0,.25);

    background: transparent;
    color: #111;

    outline: none;

    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;

    /* FIX invisibile Safari/Chrome */
    will-change: border-color;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(0,0,0,.5);
}

#contact-form textarea {
    min-height: 120px;
    resize: none;
}

#contact-form button {
    margin-top: 20px;
    padding: 12px 22px;
    background: #111 !important;
    color: #fff !important;
    border: 0 !important;
    cursor: pointer;
    min-width: 120px;
    transition: opacity .2s ease;
}

#contact-form button:hover {
    opacity: .8;
}

/* =========================
DARK MODE
========================= */

body.dark #contact-form input,
body.dark #contact-form textarea {
    color: #fff !important;
    background: transparent !important;

    border-bottom: 1px solid #fff !important;

    -webkit-text-fill-color: #fff;

    /* FIX Safari rendering bug */
    transform: translateZ(0);
}

body.dark #contact-form input::placeholder,
body.dark #contact-form textarea::placeholder {
    color: rgba(255,255,255,.6);
}

body.dark #contact-form button {
    background: #fff !important;
    color: #111 !important;
}
/* =========================
FOOTER
========================= */

.site-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #111;
    text-align: center;
}

body.dark .site-footer {
    color: #fff;
}

/* =========================
COOKIE NOTICE
========================= */

.cookie-notice {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    max-width: 420px;
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.08);
    font-size: 12px;
    line-height: 1.35;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.cookie-close {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    opacity: .7;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width:700px) {

    .content-double,
    .content-triple {
        column-count: 1;
    }

    .overlay-menu {
        width: 220px;
        padding: 24px;
    }

    .overlay-menu a {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .cookie-notice {
        width: calc(100% - 24px);
        max-width: none;
        bottom: 12px;
        padding: 10px 12px;
    }
}

/* =========================
SITE DESCRIPTION BREAK
========================= */

.site-description .second-part::before {
    content: " ";
}

@media (max-width:768px) {

    .site-description .second-part {
        display: block;
    }

    .site-description .second-part::before {
        content: "";
    }
}

/* =========================
per forzare il font del contentuto
========================= */

.content {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
per togliere i puntini e regolare lo stile del menu
========================= */

.overlay-menu *::before,
.overlay-menu *::after {
    content: none !important;
}

.overlay-menu li,
.overlay-menu ul {
    list-style: none !important;
}

.overlay-menu a {
    display: block;
    background: transparent !important;
}

/* =========================
per allineamento voci menu
========================= */

.overlay-menu {
    text-align: left;
}

.overlay-menu ul {
    padding-left: 0;
    margin-left: 0;
}

.overlay-menu a {
    text-align: left;
}

