* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

:root {
    --gjs-t-color-primary: #0f172a;
    --gjs-t-color-secondary: #475569;
    --gjs-t-color-accent: #0ea5e9;
    --gjs-t-color-success: #10b981;
    --gjs-t-color-warning: #f59e0b;
    --gjs-t-color-error: #ef4444;
}

html {
    scroll-behavior: smooth;
}

.gjs-t-body {
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.6;
}

.gjs-t-h1 {
    color: #0f172a;
    font-size: 56px;
    line-height: 1.1;
}

.gjs-t-h2 {
    color: #0f172a;
    font-size: 28px;
    line-height: 1.3;
}

.gjs-t-button {
    background-color: #0f172a;
    color: #ffffff;
    border-radius: 9999px;
}

.gjs-t-link {
    color: #0f172a;
    text-decoration: none;
}

.gjs-t-border {
    border-radius: 12px;
    border-color: #e5e7eb;
}

*,
::before,
::after {
    box-sizing: border-box;
    undefined: undefined;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html,
:host {
    line-height: 1.5;
    undefined: undefined;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    undefined: undefined;
    line-height: inherit;
}

hr {
    height: 0;
    undefined: undefined;
    color: inherit;
    border-top-width: 1px;
}

abbr:where([title]) {
    text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    undefined: undefined;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    undefined: undefined;
    border-color: inherit;
    border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    undefined: undefined;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button,
select {
    text-transform: none;
}

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
    -webkit-appearance: button;
    undefined: undefined;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield;
    undefined: undefined;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    undefined: undefined;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

ol,
ul,
menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

dialog {
    padding: 0;
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    undefined: undefined;
    color: #9ca3af;
}

button,
[role="button"] {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    undefined: undefined;
    vertical-align: middle;
}

img,
video {
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none;
}

.body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.body *::selection {
    background-color: rgb(186 230 253 / 0.5);
    color: rgb(15 23 42 / 1);
}

.body *::selection:hover {
    color: rgb(15 23 42 / 1);
}

.body *::selection::selection {
    color: rgb(15 23 42 / 1);
}

.body::selection {
    background-color: rgb(186 230 253 / 0.5);
}

.body::selection::selection {
    color: rgb(15 23 42 / 1);
}

.header {
    width: 100%;
    background-color: rgb(255 255 255 / 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0px;
    z-index: 40;
    border-bottom-width: 1px;
    border-color: rgb(226 232 240 / 1);
}

.header-container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    height: 2rem;
    width: 2rem;
    border-radius: 9999px;
    background-color: rgb(15 23 42 / 1);
    color: rgb(255 255 255 / 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.brand-name {
    font-weight: 600;
    letter-spacing: -0.025em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(51 65 85 / 1);
    border-radius: 0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.nav-link:hover {
    color: rgb(15 23 42 / 1);
}

.nav-link:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000;
}

.nav-link:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
}

.main-content {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-bottom-width: 1px;
    border-color: rgb(226 232 240 / 1);
}

.hero-container {
    max-width: 59rem;
}

.hero-title {
    font-weight: 500;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    margin-top: 1.5rem;
    color: rgb(71 85 105 / 1);
    font-size: 1rem;
    line-height: 1.625;
    max-width: 42rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.primary-button:hover {
    background-color: rgb(30 41 59 / 1);
}

.primary-button:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000;
}

.primary-button:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
}

.icon-arrow-right {
    display: inline-block;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(51 65 85 / 1);
    border-radius: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.secondary-link:hover {
    color: rgb(15 23 42 / 1);
}

.secondary-link:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000;
}

.secondary-link:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
}

.gallery-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.gallery-title {
    font-weight: 600;
    letter-spacing: -0.025em;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-arrow-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.gallery-arrow-left:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.gallery-arrow-left:hover {
    background-color: rgb(255 255 255 / 1);
}

.gallery-arrow-left:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(226 232 240 / 1), 0 0 #0000;
}

.gallery-arrow-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.gallery-arrow-right:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.gallery-arrow-right:hover {
    background-color: rgb(255 255 255 / 1);
}

.gallery-arrow-right:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(226 232 240 / 1), 0 0 #0000;
}

.gallery-wrapper {
    position: relative;
}

.gallery-scroller {
    overflow-x: auto;
    scroll-behavior: smooth;
}

.gallery-list {
    display: flex;
    gap: 1.5rem;
    padding-right: 0.5rem;
    /*scroll-snap-type: x mandatory;*/
}

.artwork-item {
    min-width: 360px;
    /*scroll-snap-align: start;*/
}

.gallery-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    will-change: transform;
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
}



.artwork-button {
    width: 360px;
    aspect-ratio: 3/2;
    background-color: rgb(255 255 255 / 1);
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    overflow: hidden;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.artwork-button:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.artwork-button:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(226 232 240 / 1), 0 0 #0000;
}

.artwork-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.artwork-caption {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    padding-top: 0.5rem;
}

.artwork-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(51 65 85 / 1);
}

.artwork-meta {
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgb(100 116 139 / 1);
}

.gradient-left {
    pointer-events: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    width: 6rem;
    background-image: linear-gradient(to right, #f8fafc, rgb(248 250 252 / 0));
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.gradient-right {
    pointer-events: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    width: 6rem;
    background-image: linear-gradient(to left, #f8fafc, rgb(248 250 252 / 0));
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.footer {
    border-top-width: 1px;
    border-color: rgb(226 232 240 / 1);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(100 116 139 / 1);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(71 85 105 / 1);
    border-radius: 0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.footer-link:hover {
    color: rgb(15 23 42 / 1);
}

.footer-link:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000;
}

.footer-link:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
}

.lightbox-overlay {
    position: fixed;
    inset: 0px;
    background-color: rgb(0 0 0 / 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 50;
}

.lightbox-container {
    position: relative;
    max-width: 64rem;
    width: 100%;
    background-color: rgb(255 255 255 / 1);
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    background-color: rgb(255 255 255 / 0.8);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.lightbox-close:hover {
    background-color: rgb(255 255 255 / 1);
}

.lightbox-close:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(226 232 240 / 1), 0 0 #0000;
}

.lightbox-media {
    aspect-ratio: 3/2;
    background-color: rgb(241 245 249 / 1);
}

.lightbox-image {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-top-width: 1px;
    border-color: rgb(226 232 240 / 1);
}

.lightbox-caption {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(71 85 105 / 1);
}

.lightbox-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lightbox-prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.lightbox-prev:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.lightbox-prev:hover {
    background-color: rgb(255 255 255 / 1);
}

.lightbox-prev:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(226 232 240 / 1), 0 0 #0000;
}

.lightbox-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.lightbox-next:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5), 0 0 #0000;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.lightbox-next:hover {
    background-color: rgb(255 255 255 / 1);
}

.lightbox-next:focus-visible:focus-visible {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(226 232 240 / 1), 0 0 #0000;
}

#ihcd1 {
    font-family: 'Inter', system-ui;
}

#iqhw3 {
    font-family: 'Playfair Display', serif;
}

#i0yto {
    font-family: 'Inter', system-ui;
}

#ikdbb {
    font-family: 'Inter', system-ui;
}

#galleryScroller {
    scrollbar-width: none;
}

@media (max-width: 992px) {
    .gjs-t-h1 {
        font-size: 40px;
    }

    .header-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .primary-nav {
        gap: 1.5rem;
    }

    .main-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .gallery-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .gallery-list {
        gap: 1.25rem;
    }

    .footer-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gjs-t-h1 {
        font-size: 32px;
    }

    .header-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .primary-nav {
        gap: 1rem;
    }

    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .gallery-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .gallery-list {
        gap: 1rem;
    }

    .artwork-item {
        min-width: 260px;
    }

    .artwork-button {
        width: 260px;
    }

    .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Language switch spacing */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 16px; /* spazio tra ENG e ITA */
}

.lang-btn {
    padding: 0 6px; /* micro respiro sui lati */
}

.lang-switch .lang-btn {
    font-size: 1.05rem;   /* ~16.8px */
    font-weight: 500;
    letter-spacing: 0.1em;
}



/* Effetto hover elegante sui testi interattivi */
.nav-link,
.lang-btn,
.footer-link,
.secondary-link {
  position: relative;
}

.nav-link::after,
.lang-btn::after,
.footer-link::after,
.secondary-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.lang-btn:hover::after,
.footer-link:hover::after,
.secondary-link:hover::after {
  transform: scaleX(1);
}

/* === MENU PRINCIPALE: dimensioni più leggibili === */
.primary-nav .nav-link {
    font-size: 1.1rem;        /* ≈ 17.5px */
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Spaziatura verticale tra le sezioni della bio */
.bio-title {
  margin-bottom: 3rem; /* più respiro sotto "Biografia" */
}

.bio-section {
  padding: 4rem 0;
}

.bio-subtitle {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.bio-text {
  margin-bottom: 1.25rem;
}