
/* =========================================
   ALESSANDRA VENDETTA - ART PREVIEW
========================================= */

/* VARIABILI */
@font-face {
    font-family: 'IEatCrayons';
    src: url('../FONT/i-eat-crayons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --black: #171717;
    --dark-bg: #29332F;
    --white: #ffffff;
    --ivory: #f5f2ec;
    --grey: #77736e;
    --border: #dedbd5;
    --accent: #a62929;
}


/* RESET */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: var(--ivory);
    color: var(--black);
    overflow-x: hidden;
}

/* HEADER */

.header {
    min-height: 85px;
    padding: 25px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 17px;
    letter-spacing: 3px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: var(--black);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}

/* HERO */

.hero {
    min-height: 570px;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--grey);
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(52px, 8vw, 100px);
    line-height: 1.05;
    font-weight: normal;
    margin-bottom: 30px;
}

.intro {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--grey);
    max-width: 430px;
    margin-bottom: 35px;
}

.main-button {
    display: inline-block;
    padding: 17px 30px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    transition: background 0.3s;
}

.main-button:hover {
    background: #55504a;
}

/* CATALOGO */

.catalog-section {
    padding: 100px 7%;
    background: var(--white);
}

.catalog-section h2,
.preview-section h2 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 45px;
}

/* GRIGLIA OPERE */

.art-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    width: 100%;
}

/* SCHEDE OPERE */

.art-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 340px auto auto auto;
    align-content: start;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

/* CONTENITORE IMMAGINE */

.art-image {
    width: 100%;
    height: 340px;
    min-width: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--grey);
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}

/* FOTOGRAFIE ORIGINALI */

.art-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 340px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

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

.art-photo.image-error {
    opacity: 0.3;
}

/* TESTI OPERE */

.art-card h3 {
    font-size: 22px;
    font-weight: normal;
    margin-top: 8px;
    min-width: 0;
}

.art-card p {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: var(--grey);
    line-height: 1.6;
    min-width: 0;
}

/* ART PREVIEW */

.preview-section {
    padding: 120px 10%;
    text-align: center;
}

.preview-section h2 {
    margin-bottom: 25px;
}

.preview-description {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--grey);
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 45px;
}

/* CONTENITORE ART PREVIEW */

.wall-upload {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 850px;
    width: 100%;
    margin: 50px auto 0;
    gap: 25px;
    align-items: stretch;
}

/* CARICAMENTO FOTOGRAFIA */

.upload-area {
    width: 100%;
    min-height: 220px;
    padding: 30px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 18px;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: var(--black);
}

.upload-icon {
    font-family: Arial, sans-serif;
    font-size: 42px;
    font-weight: normal;
}

.upload-title {
    font-family: Georgia, serif;
    font-size: 21px;
}

.upload-description {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: var(--grey);
    line-height: 1.7;
    text-align: center;
}

.upload-button {
    padding: 15px 24px;
    background: var(--black);
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
}

/* SELETTORE OPERE */

.art-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.art-selector label {
    font-family: Georgia, serif;
    font-size: 16px;
}

.art-selector select {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--black);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

/* PANNELLO CALIBRAZIONE */

.calibration-panel {
    width: 100%;
    max-width: 850px;
    margin: 15px auto;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    text-align: left;
}

.calibration-panel h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: normal;
}

.calibration-panel p {
    line-height: 1.6;
    color: var(--grey);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.calibration-panel label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.calibration-panel select,
.calibration-panel input {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--black);
    font-family: Arial, sans-serif;
    font-size: 14px;
}

#calibration-status {
    margin-top: 20px;
    font-size: 13px;
    font-weight: bold;
    color: var(--black);
}

#reset-calibration {
    margin-top: 15px;
    padding: 12px 18px;
    border: none;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
}

#reset-calibration:hover {
    background: #55504a;
}

/* ANTEPRIMA FOTOGRAFIA */

.wall-preview {
    width: 100%;
    min-height: 260px;
    max-height: 460px;
    padding: 25px;
    background: #ebe8e2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: var(--grey);
    text-align: center;
}

.wall-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    margin: auto;
}

/* SCENA ART PREVIEW */

.wall-stage {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wall-background {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* OPERA SULLA PARETE */

.wall-stage .art-on-wall {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
    object-fit: contain;
    cursor: grab;
    z-index: 5;
    transform: translate(-50%, -50%);
    user-select: none;
    touch-action: none;
    filter: drop-shadow(4px 6px 7px rgba(0, 0, 0, 0.28));
}

.wall-stage .art-on-wall:active {
    cursor: grabbing;
}

/* PUNTI DI CALIBRAZIONE */

.calibration-point {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--white);
    background: #d92727;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 0 2px #d92727;
}

/* FOOTER */

footer {
    padding: 35px 7%;
    background: var(--black);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}

/* TABLET */

@media (min-width: 701px) and (max-width: 1100px) {

    .art-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .catalog-section {
        padding: 80px 6%;
    }
}

/* SMARTPHONE */

@media (max-width: 700px) {

    .header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 18px;
    }

    .hero {
        min-height: 480px;
        padding: 80px 7%;
    }

    .art-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .art-card {
        grid-template-rows: 340px auto auto auto;
    }

    .art-photo {
        height: 340px;
    }

    .catalog-section {
        padding: 60px 6%;
    }

    .catalog-section h2,
    .preview-section h2 {
        font-size: 36px;
    }

    .preview-section {
        padding: 80px 6%;
    }

    .wall-upload {
        grid-template-columns: 1fr;
    }

    .upload-area,
    .wall-preview {
        min-height: 260px;
    }

    .calibration-panel {
        padding: 20px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
    }
}

.wall-preview .wall-stage > .wall-background {
    width: 100%;
    max-height: none;
    height: auto;
    object-fit: contain;
}

.download-preview {
    text-align: center;
    margin: 25px auto 50px;
}

#download-preview {
    padding: 17px 28px;
    border: none;
    background: #171717;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
}

#download-preview:hover:not(:disabled) {
    background: #55504a;
}

#download-preview:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#download-status {
    margin-top: 12px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #77736e;
}


/* =========================================
   ALESSANDRA VENDETTA
   BOSCO PROFONDO
========================================= */

/* Sfondi principali */

.header,
.main-button,
.upload-button,
#reset-calibration,
#download-preview,
footer {
    background-color: var(--dark-bg);
}

/* Testi bianchi sugli sfondi scuri */

.main-button,
.upload-button,
#reset-calibration,
#download-preview,
footer {
    color: var(--white);
}

/* Effetti al passaggio del mouse */

.main-button:hover,
#reset-calibration:hover,
#download-preview:hover:not(:disabled) {
    background-color: var(--accent);
}

/* Mantiene il logo leggibile */

.brand {
    color: var(--white);
}

/* Mantiene la navigazione leggibile */

.header nav a {
    color: var(--white);
}

.header nav a:hover {
    color: #d8c8bd;
}

/* =================================
   IDENTITÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ TIPOGRAFICA
================================= */

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4,
.brand,
.eyebrow {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

.brand {
    letter-spacing: -1px;
}

h1, h2 {
    letter-spacing: -1.5px;
}

button,
nav,
label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
/* FONT PERSONALIZZATO DELLA HERO */

.hero h1.tagline-art {
    font-family: 'IEatCrayons', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}
/* =========================================
   FOTOGRAFIA PARETE - PROPORZIONI ORIGINALI
========================================= */

.wall-preview {
    min-height: 0;
    max-height: none;
    height: auto;
    overflow: visible;
    align-items: center;
}

.wall-preview .wall-stage {
    position: relative;
    width: fit-content;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
    margin: 0 auto;
    overflow: visible;
}

.wall-preview .wall-stage > .wall-background {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
}

/* =========================================
   ZOOM INTERATTIVO OPERE DEL CATALOGO
========================================= */

.art-image {
    overflow: hidden;
}

.art-image .art-photo {
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
    transform: scale(1);
}

/* Zoom al passaggio del mouse */

@media (hover: hover) and (pointer: fine) {

    .art-card:hover .art-photo {
        transform: scale(1.06);
    }

}

/* =========================================
   FINESTRA DETTAGLIO OPERA
========================================= */

body.modal-open {
    overflow: hidden;
}

.art-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 25, 22, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-y: auto;
    animation: modalFade 0.3s ease;
}

.art-modal-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 45px;
    width: 100%;
    max-width: 1050px;
    max-height: 90vh;
    padding: 45px;
    background: var(--ivory);
    overflow-y: auto;
}

.art-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    background: transparent;
    color: var(--black);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.art-modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 300px;
}

.art-modal-photo {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.art-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.art-modal-info .eyebrow {
    margin-bottom: 18px;
}

.art-modal-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 30px;
}

.art-modal-details {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.art-modal-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.art-modal-row span:first-child {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--grey);
}

.art-modal-row span:last-child {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--black);
}

.art-modal-description {
    margin-top: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--grey);
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* VERSIONE SMARTPHONE */

@media (max-width: 700px) {

    .art-modal {
        padding: 12px;
    }

    .art-modal-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 35px 22px;
        max-height: 95vh;
    }

    .art-modal-image {
        min-height: 200px;
    }

    .art-modal-photo {
        max-height: 45vh;
    }

    .art-modal-title {
        font-size: 30px;
        margin-bottom: 20px;
    }
}


/* =========================================
   GALLERIA MULTIMEDIALE SCHEDA OPERA
========================================= */

.art-modal-content {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
}

.art-modal-gallery {
    min-width: 0;
}

.art-modal-image {
    position: relative;
    min-height: 340px;
    padding: 8px 42px;
    background: #ebe8e2;
    overflow: hidden;
}

.art-gallery-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 320px;
}

.art-modal-photo,
.art-modal-video {
    display: block;
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.art-modal-photo {
    cursor: zoom-in;
}

.art-modal-video {
    width: 100%;
    max-height: 68vh;
}

.art-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 46px;
    border: 0;
    background: rgba(41, 51, 47, 0.88);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.art-gallery-prev { left: 5px; }
.art-gallery-next { right: 5px; }
.art-gallery-arrow[hidden] { display: none; }

.art-gallery-counter {
    margin-top: 10px;
    text-align: center;
    font: 11px 'Inter', sans-serif;
    color: var(--grey);
    letter-spacing: 1px;
}

.art-gallery-thumbnails {
    display: flex;
    gap: 9px;
    margin-top: 14px;
    padding: 4px 2px 10px;
    overflow-x: auto;
}

.art-gallery-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 1px solid var(--border);
    background: #ebe8e2;
    cursor: pointer;
    overflow: hidden;
}

.art-gallery-thumb.is-active {
    outline: 2px solid var(--dark-bg);
    outline-offset: 2px;
}

.art-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-gallery-video-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font: 10px 'Inter', sans-serif;
    font-weight: 700;
    color: var(--dark-bg);
}

.art-gallery-hint {
    margin-top: 4px;
    font: 10px/1.5 'Inter', sans-serif;
    color: var(--grey);
    text-align: center;
}

.art-modal-photo.media-error {
    opacity: 0.35;
}

.art-image-zoom {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    background: rgba(10, 13, 11, 0.96);
}

.art-image-zoom-photo {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.art-image-zoom-photo.is-zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform: scale(1.8);
    cursor: zoom-out;
}

.art-image-zoom-close {
    position: absolute;
    top: 15px;
    right: 25px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

.art-image-zoom-help {
    position: absolute;
    bottom: 15px;
    color: rgba(255,255,255,0.7);
    font: 11px 'Inter', sans-serif;
}

@media (max-width: 700px) {
    .art-modal-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 42px 18px 25px;
    }

    .art-modal-image {
        min-height: 220px;
        padding: 8px 34px;
    }

    .art-gallery-media {
        min-height: 210px;
    }

    .art-modal-photo,
    .art-modal-video {
        max-height: 42vh;
    }

    .art-gallery-thumb {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .art-image-zoom {
        padding: 18px;
    }
}

/* =========================================
   COLLEZIONI NARRATIVE
========================================= */

.collection-section {
    padding: 88px 7%;
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 25px;
}

.collection-section:nth-child(even) {
    background: #fff;
}

.collection-heading {
    max-width: 760px;
    margin: 0 auto 42px;
}

.collection-heading h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    margin-bottom: 18px;
}

.collection-intro {
    max-width: 620px;
    color: var(--grey);
    font: 15px/1.8 'Inter', sans-serif;
}

.collection-story-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.collection-story-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(130px, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--border);
}

.collection-story-card > img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: transparent;
}

.collection-story-card.is-sold::after {
    content: "VENDUTO";
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 7px 12px;
    border: 1px solid rgba(41, 51, 47, 0.55);
    background: rgba(245, 242, 236, 0.94);
    color: var(--dark-bg);
    font: 700 9px/1 'Inter', sans-serif;
    letter-spacing: 2px;
}

.collection-story-text h3 {
    font: 600 21px/1.25 'Syne', sans-serif;
    margin-bottom: 12px;
}

.collection-story-text p {
    color: var(--grey);
    font: 13px/1.75 'Inter', sans-serif;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-read-link {
    border: 0;
    border-bottom: 1px solid var(--dark-bg);
    padding: 0 0 5px;
    color: var(--dark-bg);
    background: transparent;
    font: 700 10px 'Inter', sans-serif;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.story-read-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.collection-empty {
    grid-column: 1 / -1;
    color: var(--grey);
    font: 14px/1.7 'Inter', sans-serif;
}

.art-modal-story-action {
    margin: 16px 0 22px;
}

.story-meaning-button {
    display: inline-block;
    margin-top: 22px;
    padding: 14px 19px;
    border: 1px solid #b8c8b8;
    border-radius: 2px;
    background: #dce9dc;
    color: #263c2c;
    font: 700 10px 'Inter', sans-serif;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.story-meaning-button:hover {
    background: #c8ddc9;
    transform: translateY(-1px);
}

.story-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 30px;
    background: rgba(16, 22, 19, .94);
}

.story-modal-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    width: min(1120px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--ivory);
}

.story-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: var(--black);
    font-size: 38px;
    cursor: pointer;
}

.story-modal-image-wrap {
    min-height: 560px;
    padding: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9e5dd;
}

.story-modal-image {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.story-modal-copy {
    padding: 70px 48px 48px;
}

.story-modal-copy .eyebrow {
    margin-bottom: 18px;
}

.story-modal-title {
    font: 700 clamp(30px, 4vw, 48px)/1.1 'Syne', sans-serif;
    margin-bottom: 12px;
}

.story-modal-collection {
    color: var(--grey);
    font: 11px 'Inter', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 38px;
}

.story-modal-copy h3 {
    font: 700 14px 'Inter', sans-serif;
    letter-spacing: 1px;
    margin: 24px 0 12px;
}

.story-modal-copy p:not(.eyebrow):not(.story-modal-collection) {
    white-space: pre-line;
    color: #55534e;
    font: 14px/1.9 'Inter', sans-serif;
}

@media (max-width: 850px) {
    .collection-story-grid {
        grid-template-columns: 1fr;
    }
    .story-modal-content {
        grid-template-columns: 1fr;
    }
    .story-modal-image-wrap {
        min-height: 300px;
        max-height: 48vh;
        padding: 35px 25px;
    }
    .story-modal-image {
        max-height: 42vh;
    }
    .story-modal-copy {
        padding: 35px 28px;
    }
}

@media (max-width: 560px) {
    .collection-section {
        padding: 60px 6%;
    }
    .collection-story-card {
        grid-template-columns: 1fr;
    }
    .collection-story-card > img {
        height: 250px;
    }
    .story-modal {
        padding: 10px;
    }
    .story-modal-image-wrap {
        min-height: 230px;
    }
}

/* Le collezioni narrative si aprono solo tramite le voci del menu. */
.collection-section[hidden] {
    display: none !important;
}
/* =========================================
   HERO - TESTO INTRODUTTIVO
   Stesso carattere tipografico dell'eyebrow
========================================= */

.hero .intro {
    font-family: 'Syne', sans-serif;
    font-size: clamp(16px, 1.25vw, 19px);
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.5;
    max-width: none;
    white-space: nowrap;
}

/* Su schermi piÃƒÂ¹ piccoli il testo puÃƒÂ² andare a capo */
@media (max-width: 900px) {
    .hero .intro {
        white-space: normal;
    }
}


/* =========================================
   HERO - PERCORSO IN TRE PASSAGGI
========================================= */
.hero .intro { margin-bottom: 24px; }
.hero-process {
    display: flex;
    align-items: stretch;
    width: min(100%, 1040px);
    margin: 0 0 30px;
    gap: 10px;
}
.hero-process-step {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 104px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 13px;
    padding: 17px 18px;
    border-radius: 10px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 14px rgba(48, 17, 28, 0.09);
}
.hero-process-step-1 { background: #4b1727; }
.hero-process-step-2 { background: #762b40; }
.hero-process-step-3 { background: #a64b60; }
.hero-process-number {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: .78;
}
.hero-process-label { display: block; width: 100%; text-align: center; }
.hero-process-arrow {
    display: flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    color: #8f3b50;
    font-family: 'Inter', sans-serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 1;
}
.hero .main-button {
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    padding: 18px 28px;
}
@media (max-width: 900px) {
    .hero-process { width: 100%; gap: 7px; }
    .hero-process-step { padding: 14px 12px; font-size: 10px; }
    .hero-process-arrow { flex-basis: 14px; }
}
@media (max-width: 650px) {
    .hero-process {
        flex-direction: column;
        gap: 7px;
        margin-bottom: 25px;
    }
    .hero-process-step {
        min-height: 76px;
        padding: 13px 16px;
        gap: 7px;
        font-size: 11px;
    }
    .hero-process-arrow {
        flex: 0 0 18px;
        transform: rotate(90deg);
        font-size: 29px;
    }
    .hero .main-button { width: 100%; text-align: center; }
}


/* =========================================
   ART PREVIEW - IMPAGINAZIONE COORDINATA
========================================= */

.preview-section {
    scroll-margin-top: 28px;
    text-align: center;
}

.preview-section .preview-main-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin: 0 auto 18px;
    text-align: center;
}

.preview-section .preview-main-description {
    max-width: 720px;
    margin: 0 auto 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

.preview-final-instruction {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 38px;
    color: var(--grey);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.wall-upload {
    max-width: 900px;
    margin: 36px auto 0;
    gap: 22px;
}

.preview-step-card {
    position: relative;
    border: 0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(40, 15, 25, .08);
    text-align: center;
    overflow: hidden;
}

.preview-step-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto 22px;
    text-align: center;
}

.preview-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font: 700 12px/1 'Inter', sans-serif;
    letter-spacing: 0;
}

.preview-step-title {
    margin: 0;
    font-family: 'IEatCrayons', sans-serif;
    font-size: clamp(21px, 2.4vw, 29px);
    font-weight: normal;
    line-height: 1.25;
    letter-spacing: .5px;
    text-align: center;
    text-transform: uppercase;
}

.preview-step-upload {
    background: #4b1727;
    color: #fff;
}
.preview-step-upload .upload-icon,
.preview-step-upload .upload-title,
.preview-step-upload .upload-description {
    color: #fff;
}
.preview-step-upload .upload-title {
    font-family: 'IEatCrayons', sans-serif;
    font-size: 0;
}
.preview-step-upload .upload-description {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.7;
}
.preview-step-upload .upload-button {
    background: #fff;
    color: #4b1727;
    border: 0;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.preview-step-select {
    background: #762b40;
    color: #fff;
}
.preview-step-select label {
    color: #fff;
    font-family: 'IEatCrayons', sans-serif;
    font-size: 0;
}
.preview-step-select .preview-art-select,
.preview-step-select select {
    width: min(100%, 520px);
    max-width: 520px;
    min-height: 54px;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 6px;
    background: #fff;
    color: #171717;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.preview-step-calibration {
    background: #f5f2ec;
    color: #4b1727;
    border: 1px solid #e2d5d8;
}
.preview-step-calibration .preview-step-title {
    color: #4b1727;
}
.preview-step-calibration {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: center;
}
.preview-step-calibration h3:not(.preview-step-title) {
    font-family: 'IEatCrayons', sans-serif;
    font-size: 0;
}
.preview-step-calibration p,
.preview-step-calibration label,
.preview-step-calibration select,
.preview-step-calibration input,
.preview-step-calibration #calibration-status {
    font-family: 'Inter', sans-serif;
}
.preview-step-calibration select,
.preview-step-calibration .calibration-panel input {
    margin-left: auto;
    margin-right: auto;
    min-height: 48px;
    border-radius: 5px;
}
.preview-step-calibration #reset-calibration {
    border-radius: 5px;
    background: #762b40;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

@media (max-width: 650px) {
    .preview-section .preview-main-title {
        font-size: clamp(32px, 9vw, 44px);
    }
    .preview-section .preview-main-description {
        font-size: 14px;
    }
    .preview-step-card {
        padding: 22px 17px;
    }
    .preview-step-title {
        font-size: 23px;
    }
}


/* =========================================
   RIFINITURE ART PREVIEW - LEGGIBILITÃƒâ‚¬ E NUMERI
========================================= */

/* I numeri diventano elementi grafici grandi, traslucidi e laterali. */
.preview-step-card {
    position: relative;
    overflow: hidden;
}

.preview-step-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    text-align: center;
}

.preview-step-number {
    position: absolute;
    z-index: 0;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: clamp(76px, 11vw, 138px);
    line-height: .85;
    font-weight: 800;
    letter-spacing: -7px;
    color: rgba(255, 255, 255, .20);
    pointer-events: none;
}

.preview-step-title {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 8px 22px 8px 70px;
    text-align: center;
}

/* Istruzioni della calibrazione piÃƒÂ¹ grandi e leggibili. */
.preview-step-calibration .calibration-panel > p,
.preview-step-calibration .calibration-panel p {
    color: #393532 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.7;
    font-weight: 500;
    text-align: center;
}

/* Barra delle misure centrata nel pannello. */
.preview-step-calibration .calibration-panel input,
.preview-step-calibration .calibration-panel select {
    display: block;
    width: min(100%, 440px);
    margin: 12px auto 0 !important;
    text-align: center;
    font-size: 16px;
}

/* Centra anche etichette, istruzioni e stato della calibrazione. */
.preview-step-calibration .calibration-panel label,
.preview-step-calibration #calibration-status {
    text-align: center;
    color: #393532 !important;
}

@media (max-width: 600px) {
    .preview-step-number {
        left: 12px;
        font-size: 86px;
    }
    .preview-step-title {
        padding-left: 58px;
        padding-right: 12px;
    }
    .preview-step-calibration .calibration-panel > p,
    .preview-step-calibration .calibration-panel p {
        font-size: 15px !important;
    }
}


/* Correzione visibilitÃƒ  del numero 3 sul riquadro bordeaux chiaro */
.preview-step-number {
    color: rgba(75, 23, 39, .34) !important;
    opacity: 1 !important;
}


/* FIX DEFINITIVO: CENTRATURA CAMPO MISURA IN CENTIMETRI */
.calibration-panel input,
.calibration-panel input[type="number"],
.preview-step-calibration input,
.preview-step-calibration input[type="number"] {
    display: block !important;
    float: none !important;
    width: min(100%, 440px) !important;
    max-width: 440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* Centra anche il contenitore del campo, se presente nel markup. */
.calibration-panel .input-group,
.calibration-panel .measurement-input,
.calibration-panel .calibration-measurement {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


/* =========================================
   ART PREVIEW - SPAZIATURA TITOLO E NUMERI
========================================= */

/* Abbassa insieme il titolo e il numero del terzo passaggio. */
.preview-step-calibration > .preview-step-heading {
    margin-top: 28px !important;
}

/* Elimina i vecchi contorni ovali/circolari attorno ai numeri. */
.preview-step-number {
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Mantiene il numero 03 ben visibile e semitrasparente. */
.preview-step-calibration .preview-step-number {
    color: rgba(75, 23, 39, .34) !important;
}


/* Numero 01: avorio semitrasparente per contrasto sul bordeaux scuro */
.preview-step-upload .preview-step-number {
    color: rgba(245, 242, 236, .48) !important;
    opacity: 1 !important;
}


/* ALLINEAMENTO UNIFORME DEI NUMERI 01, 02 E 03 */
.preview-step-card > .preview-step-heading {
    margin-top: 28px !important;
    min-height: 58px;
    position: relative;
}

/* Stessa posizione e stessa dimensione per tutti i numeri. */
.preview-step-card .preview-step-number {
    top: 50% !important;
    left: 18px !important;
    transform: translateY(-50%) !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 600px) {
    .preview-step-card .preview-step-number {
        left: 12px !important;
    }
}
/* =========================================
   ESPRESSIONI DI INTERIORITÃ€
   Schede piÃ¹ ampie per racconti estesi
========================================= */
#collezione-espressioni .collection-story-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1180px;
    gap: 32px;
}

#collezione-espressioni .collection-story-card {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 34px;
    min-height: 340px;
    padding: 30px;
}

#collezione-espressioni .collection-story-card > img {
    height: 100%;
    min-height: 280px;
    max-height: 420px;
}

#collezione-espressioni .collection-story-text {
    min-width: 0;
    padding: 8px 0;
}

#collezione-espressioni .collection-story-text p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 22px;
}

@media (max-width: 850px) {
    #collezione-espressioni .collection-story-card {
        grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
        gap: 24px;
        padding: 24px;
    }
}

@media (max-width: 560px) {
    #collezione-espressioni .collection-story-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    #collezione-espressioni .collection-story-card > img {
        height: 250px;
        min-height: 0;
        max-height: 300px;
    }

    #collezione-espressioni .collection-story-text {
        padding: 0;
    }
}

/* =========================================
   PREZZO OPERE - COLLEZIONI NARRATIVE
========================================= */

.collection-story-price {
    color: var(--dark-bg);
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 20px 0 18px;
}

.collection-story-price[hidden] {
    display: none !important;
}

/* TESTI DESCRIZIONE OPERE GIUSTIFICATI */

.collection-story-text p {
    text-align: justify;
    text-justify: inter-word;
}
/* INTRODUZIONE COLLEZIONE ROSSE */

.rosse-intro {
    color: #a62929;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    max-width: 950px;
    margin: 25px auto 40px;
}


/* ISTRUZIONI CALIBRAZIONE: CENTRATE, BORDEAUX E DISTANZIATE DAL CAMPO CM */
.preview-step-calibration #calibration-help.calibration-help-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 28px auto 22px !important;
    padding: 0 12px;
    color: #762b40 !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
}

.preview-step-calibration #calibration-help .calibration-instruction-main {
    display: block;
    color: #762b40;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}

.preview-step-calibration #calibration-help .calibration-instruction-detail {
    display: block;
    margin-top: 9px;
    color: #762b40;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 650px) {
    .preview-step-calibration #calibration-help.calibration-help-copy {
        margin-top: 24px !important;
        margin-bottom: 20px !important;
    }

    .preview-step-calibration #calibration-help .calibration-instruction-main {
        font-size: 14px;
    }

    .preview-step-calibration #calibration-help .calibration-instruction-detail {
        font-size: 12px;
    }
}
