/* Reset & Global */
:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-neutral-200: #e5e5e5;
    --text-neutral-300: #d4d4d4;
    --text-neutral-400: #a3a3a3;
    --text-neutral-500: #737373;
    --bg-neutral-800: #262626;
    --bg-neutral-900: #171717;
    --brand-brown: #5D4037;
    
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Manrope', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.5;
}

::selection {
    background: white;
    color: black;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 768px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

.hidden { display: none !important; }

.section-spacing {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.highlight {font-weight: 700;}
.italic-highlight { font-family: var(--font-serif); font-style: italic; font-size: 1.125rem; color: var(--text-white); padding-top: 1rem; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 2rem 0;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

.desktop-nav {
    display: none;
    gap: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--text-neutral-300);
}
.desktop-nav a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.desktop-nav a:hover { color: white; }

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
}

.social-icons {
    display: flex;
    gap: 1rem;
}
.social-link {
    background-color: white;
    color: black;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.social-link:hover { background-color: var(--text-neutral-200); }

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-neutral-900);
    border-top: 1px solid var(--bg-neutral-800);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.mobile-menu.open {
    display: flex !important;
}
.mobile-link {
    text-decoration: none;
    color: var(--text-neutral-300);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    display: block;
}
.mobile-link:hover { color: white; }


/* Hero */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.75em;
    text-transform: uppercase;
    margin-left: 0.75rem;
}
.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-curator {
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}
.hero-separator {
    width: 100%;
    height: 1px;
    background-color: var(--text-white);
    margin: .5rem auto;
}
.hero-desc {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* Visual */
.visual-container {
    position: relative;
    width: 100%;
    max-width: 56rem;
    height: 75vh;
    min-height: 44rem;
    overflow: hidden;
    margin: 0 auto;
}
.visual-image {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-footer { margin-top: 3rem; text-align: center; }
.hero-footer-text {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}
.hero-footer-title {
    font-size: 1.75rem;
}

/* Event Info */
.event-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: var(--bg-neutral-800);
    border: 1px solid var(--bg-neutral-800);
    border-radius: 2px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .event-info-grid {grid-template-columns: 1fr 1px 1fr;}
}
.event-box {
    padding: 2rem;
    text-align: center;
    cursor: default;
}

.event-separator {
    height: 1px;
    width: 90%;
    background-color: var(--text-white);
    justify-self: center;
}

.event-location {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.event-address {
    font-size: 1.2rem;
}
.event-date-block {
    font-family: var(--font-serif);
    font-size: 1.5rem;
}
.event-time {
    font-size: 1.5rem;
    font-weight: 600;
}
@media (min-width: 768px) {
    .event-separator {
        height: 90%;
        background-color: var(--text-white);
        align-self: center;
    }
}

/* Book Section */
.book-section { 
    position: relative; 
    padding-top: 5rem; 
    padding-bottom: 5rem; 
}

.book-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .book-grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
}

.book-text { order: 2; }
@media (min-width: 1024px) { .book-text { order: 1; } }

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-content {
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) { .text-content { font-size: 1rem; } }

.cta-wrapper { margin-top: 1.5rem; }
.btn-outline {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}
.btn-outline:hover {
    background-color: white;
    color: black;
}

.book-image-wrapper {
    order: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
@media (min-width: 1024px) {
    .book-image-wrapper { order: 2; justify-content: flex-end; }
}

.book-card {
    position: relative;
    transition: all 0.5s;
    transform-style: preserve-3d;
}
.book-card:hover {
    transform: translateY(-0.5rem);
}
.book-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Location Section */
.section-flex {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .section-flex { 
        flex-direction: row; 
        gap: 5rem; 
    }
    .section-flex.reverse { 
        flex-direction: row-reverse; 
    }
}

.section-visual { 
    flex: 0 1 100%; 
    position: relative; 
}
@media (min-width: 768px) { 
    .section-visual { 
        width: 0 1 50%; 
    } 
}

.visual-card {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.visual-card img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.7s ease-out;
}
.visual-card:hover img { 
    transform: scale(1.05); 
    filter: brightness(0.75); 
}

.section-text { 
    flex: 0 1 100%; 
}
@media (min-width: 768px) { 
    .section-text { 
        width: 0 1 50%; 
    } 
}

.separator-small {
    width: 3rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0;
}
.text-sub {
    color: var(--text-neutral-400);
    font-size: 0.75rem;
    line-height: 1.6;
    font-style: italic;
}
@media (min-width: 768px) { .text-sub { font-size: 0.875rem; } }

/* Divider */
.section-divider {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-top: 1px solid var(--text-white);
    border-bottom: 1px solid var(--text-white);
}

.divider-text {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--text-white);
}

/* Gallery */
/* ====== Gallery Carousel (vanilla) ====== */
.gallery-slider.is-carousel {
  position: relative;
}

.gallery-slider.is-carousel .carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.gallery-slider.is-carousel .carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 320ms ease;
  touch-action: pan-y;
}

.gallery-slider.is-carousel .gallery-item {
  flex: 0 0 var(--slide-width, 33.333%);
  padding: var(--slide-gap, 12px);
  box-sizing: border-box;
}

.gallery-slider.is-carousel .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px; /* opzionale */
}

/* Controls */
.gallery-slider.is-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery-slider.is-carousel .carousel-btn[disabled] {
  opacity: .35;
  cursor: default;
}

.gallery-slider.is-carousel .carousel-prev { left: 8px; }
.gallery-slider.is-carousel .carousel-next { right: 8px; }
.gallery-slider.is-carousel .carousel-btn {
    display: none !important;
}
.gallery-slider.is-carousel + .carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.gallery-slider.is-carousel + .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.25);
  cursor: pointer;
}

.gallery-slider.is-carousel + .carousel-dot.is-active {
  background: rgba(0,0,0,.7);
}

/* Artist Bio */
.artist-bg { background-color: rgba(23, 23, 23, 0.3); }

.artist-flex {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) { .artist-flex { flex-direction: row; } }
.reverse-mobile { flex-direction: column-reverse; }
@media (min-width: 768px) { .reverse-mobile { flex-direction: row; } }

.artist-text-col { width: 100%; }
@media (min-width: 768px) { .artist-text-col { width: 50%; } }
.artist-img-col { width: 100%; display: flex; justify-content: center; }
@media (min-width: 768px) { .artist-img-col { width: 50%; } }

.artist-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.portrait-frame {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}
.portrait-frame img {
    width: 100%;
    max-width: 24rem;
    filter: grayscale(100%);
    display: block;
}
.portrait-credit {
    font-size: 0.625rem;
    text-align: right;
    color: var(--text-neutral-500);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.artist-lens-col { width: 100%; }
@media (min-width: 768px) { .artist-lens-col { width: 50%; } }
.artist-details-col { width: 100%; }
@media (min-width: 768px) { .artist-details-col { width: 50%; } }

.lens-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1/1;
    max-width: 24rem;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.2);
}
.lens-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.lens-flare {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    mix-blend-mode: overlay;
}

.details-content {
    font-size: 0.75rem;
    color: var(--text-neutral-400);
    line-height: 1.6;
    text-align: justify;
    padding-left: 1.5rem;
    border-left: 1px solid var(--bg-neutral-800);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) { .details-content { font-size: 0.875rem; } }

.details-cta { padding-left: 1.5rem; margin-top: 1.5rem; }
.btn-outline-dim {
    padding: 0.5rem 2rem;
    border: 1px solid var(--text-neutral-500);
    background: transparent;
    color: var(--text-neutral-400);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-outline-dim:hover {
    border-color: white;
    color: white;
}

/* Quote Section */
.quote-section {
    background-color: var(--brand-brown);
    padding-top: 3rem;
}
.quote-container {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}
.quote-text {
    font-size: 1.25rem;
    line-height: 1.6;
}

.quote-signature {
    font-family: cursive;
    font-size: 3rem;
    opacity: 0.8;
}
.quote-signature img {
    margin-left: 50%;
    margin-top: 1rem;
}

/* Contact Form */
.contact-section { 
    max-width: 56rem; 
    padding-top: 6rem; 
    padding-bottom: 6rem; 
}
.section-title-center {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-input {
    width: 100%;
    background-color: white;
    color: black;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: none;
    outline: none;
}
.form-input:focus {
    box-shadow: 0 0 0 2px var(--text-neutral-500);
}
textarea.form-input {
    grid-column: span 2;
    min-height: 6rem;
}
.form-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1rem;
}
.form-checkbox { width: 1rem; height: 1rem; accent-color: black; }
.form-label-small {
    font-size: 0.75rem;
    color: var(--text-neutral-400);
}

.form-submit-row { display: flex; justify-content: center; padding-top: 2rem; }
.form-submit-row .btn-outline { padding-left: 3rem; padding-right: 3rem; }

.form-feedback {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-feedback.is-success,
.form-feedback.is-error,
.form-feedback.is-info {
  display: block;
}

.form-feedback.is-success { border: 1px solid #2d8a4a; }
.form-feedback.is-error   { border: 1px solid #b3261e; }
.form-feedback.is-info    { border: 1px solid #6b7280; }

.form-input.is-error {
  outline: 2px solid #b3261e;
  outline-offset: 2px;
}

.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.field-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.25;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,0.25);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}

.field-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field-tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: rgba(20, 20, 20, 0.95);
  transform: rotate(45deg);
}

.form-input.is-error {
  outline: 2px solid #b3261e;
  outline-offset: 2px;
}


/* Footer */
.footer {
    background-color: black;
    border-top: 1px solid var(--bg-neutral-800);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) { 
    .footer-logos { 
        gap: 4rem; 
    } 
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-divider { width: 100%; height: 1px; background-color: var(--bg-neutral-900); margin-bottom: 2rem; }

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-neutral-500);
    gap: 1rem;
}
@media (min-width: 768px) { .footer-info { flex-direction: row; } }

.footer-contact-group { display: flex; align-items: center; gap: 1.5rem; }
.info-label { font-weight: 600; color: var(--text-neutral-400); }
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.contact-item:hover { color: white; }