
/* ============================================================
   CORSLIM — identità "dal vero": marmo vero, linguaggio del mestiere, luce di Carrara
   ============================================================ */
.cs { --carrara: #F0F0EE; --dust: #D5D7D4; --quarry: #626462; --ink: #1B1B1B; --brass: #9C7A3C; --gold: #C5A059; }
.cs, .cs * { font-family: 'Raleway', sans-serif; }
.cs .cs-display, .cs .cs-display * { font-family: 'Playfair Display', serif; }
/* azzeramenti a specificità minima (:where) così le classi sotto possono impostare i margini */
:where(.cs) :where(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
:where(.cs) :where(h1, h2, h3) { text-transform: none; letter-spacing: 0; font-weight: 400; }
.cs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 56px; box-sizing: border-box; }
.cs-body { font-size: 18px; line-height: 1.75; color: #262626; font-weight: 400; max-width: 60ch; }
.cs-h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; color: var(--ink); }
.cs a:focus-visible, .cs button:focus-visible, .cs input:focus-visible, .cs textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ── HERO: la lastra ── */
.cs-hero { position: relative; min-height: 100vh; min-height: 100svh; background: #000; color: #fff; overflow: hidden; display: flex; align-items: flex-end; }
.cs-hero > header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.cs-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.cs-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 150px), linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.12) 75%), linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 40%); }
.cs-hero-copy { text-shadow: 0 1px 14px rgba(0,0,0,.45); position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 56px 120px; box-sizing: border-box; }
.cs-kicker { font-size: 14px; color: var(--gold); margin-bottom: 26px; }
.cs-h1 { font-size: clamp(3.4rem, 8vw, 7rem); line-height: 1; color: #fff; margin-bottom: 18px; }
.cs-hero-sub { font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: #fff; margin-bottom: 26px; }
.cs-hero-text { font-size: 19px; line-height: 1.65; color: #fff; max-width: 44ch; margin-bottom: 38px; }
.cs-cta { display: inline-block; color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 15px 26px; border: 1px solid rgba(197,160,89,.85); transition: background-color .3s ease, color .3s ease; }
.cs-cta:hover { background: var(--gold); color: #000; }

/* ── SCHEDA TECNICA ── */
/* ritmo: le sezioni di contenuto condividono lo stesso fondo e sono separate da una linea sottile */
.cs-sheet, .cs-weight, .cs-uses, .cs-stones, .cs-contact { background: var(--carrara); }
.cs-sheet { padding: 130px 0 120px; }
.cs-weight, .cs-uses, .cs-stones { padding: 0 0 120px; }
.cs-weight > .cs-wrap, .cs-uses > .cs-wrap, .cs-stones > .cs-wrap { border-top: 1px solid var(--dust); padding-top: 110px; }
.cs-sheet-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 90px; align-items: start; }
.cs-lead { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; color: var(--ink); margin-bottom: 30px; }
.cs-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--quarry); font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.cs-spec dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--dust); }
.cs-spec dt { font-size: 14px; color: var(--quarry); }
.cs-spec dd { font-size: 16px; line-height: 1.55; color: var(--ink); }
.cs-spec dd.cs-big { font-family: 'Playfair Display', serif; font-size: 26px; line-height: 1.1; }

/* ── IL PESO: quote come in un disegno tecnico ── */
.cs-weight { color: var(--ink); }
.cs-weight .cs-h2 { max-width: 15ch; margin-bottom: 30px; }

.cs-quotes { margin: 90px 0 70px; max-width: 980px; }
.cs-q + .cs-q { margin-top: 54px; }
.cs-q-name { display: block; font-size: 15px; color: var(--quarry); margin-bottom: 14px; }
.cs-q-track { position: relative; height: 28px; }
.cs-q-line { position: absolute; left: 0; top: 50%; height: 1px; width: 0; background: var(--ink); transition: width 1.3s cubic-bezier(.2,.7,.2,1); }
.cs-q-line::before, .cs-q-line::after { content: ''; position: absolute; top: -9px; width: 1px; height: 19px; background: inherit; }
.cs-q-line::before { left: 0; } .cs-q-line::after { right: 0; }
.cs-q-line.slim { background: var(--brass); height: 2px; }
.cs-q-value { position: absolute; top: 50%; transform: translateY(-58%); left: 0; white-space: nowrap; font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink); opacity: 0; transition: left 1.3s cubic-bezier(.2,.7,.2,1), opacity .6s ease .7s; padding-left: 22px; }
.cs-quotes.in-view .cs-q-line.trad { width: 72%; }
.cs-quotes.in-view .cs-q-line.slim { width: 12.7%; }   /* 9,5 / 54 della linea del marmo tradizionale */
.cs-quotes.in-view .cs-q-value.trad { left: 72%; opacity: 1; }
.cs-quotes.in-view .cs-q-value.slim { left: 12.7%; opacity: 1; color: var(--brass); }

/* ── DOVE ARRIVA ── */

.cs-uses .cs-h2 { margin-bottom: 60px; }
.cs-uses-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cs-uses-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; padding: 38px 0; border-bottom: 1px solid var(--dust); align-items: baseline; }
.cs-uses-list h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; color: var(--ink); }
.cs-uses-list p { font-size: 18px; line-height: 1.7; color: #262626; max-width: 48ch; }

/* ── LE PIETRE: lastre in fila, come in magazzino ── */

.cs-stones-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: end; margin-bottom: 70px; }
.cs-yard { display: flex; align-items: flex-end; gap: 26px; }
.cs-slab { min-width: 0; }
.cs-slab img { display: block; width: 100%; height: auto; }
.cs-slab figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--ink); }
.cs-slab-name { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--ink); }
.cs-slab-note { font-size: 13px; color: var(--quarry); }
.cs-more { margin-top: 46px; font-size: 17px; color: var(--ink); }
.cs-more a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 5px; }

/* ── LA CAVA ── */
.cs-quarry { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a2a2a; }
.cs-quarry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cs-quarry::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%); }
.cs-quarry-copy { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 56px 90px; box-sizing: border-box; }
.cs-quarry-line { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; margin-bottom: 20px; max-width: 18ch; }
.cs-quarry .cs-body { color: #fff; }

/* ── CONTATTO ── */
.cs-contact { padding: 130px 0; }
.cs-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 90px; align-items: start; }
.cs-contact .cs-h2 { margin-bottom: 30px; }
.cs-contact .cs-body + .cs-body { margin-top: 18px; }
.cs-contact .cs-body a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 5px; }
.cs-field { display: block; margin-bottom: 30px; }
.cs .cs-field-label { display: block; font-size: 13px; color: var(--quarry); margin-bottom: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cs .cs-field { text-transform: none; letter-spacing: 0; }
.cs-field input, .cs-field textarea { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #9a9a9a; border-radius: 0; background: transparent; padding: 10px 0; font-size: 17px; color: var(--ink); }
.cs-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.cs-field input:focus, .cs-field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.cs-field textarea::placeholder { color: #8d8d8d; }
.cs-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cs .corslim-checkbox-container, .cs .corslim-checkbox-container * { text-transform: none; letter-spacing: 0; font-weight: 400; }
.corslim-checkbox-container { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--quarry); cursor: pointer; margin: 6px 0 34px; }
.corslim-checkbox-container input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brass); flex: none; }
.corslim-checkbox-container a { color: var(--ink); }
.cs-submit { background: var(--ink); color: #fff; border: 0; padding: 18px 34px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .3s ease; }
.cs-submit:hover { background: var(--brass); }
.cs-form-note { margin-top: 16px; font-size: 14px; color: var(--quarry); }

/* Ti contattiamo noi */
.cs-callback { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--dust); max-width: 460px; }
.cs-callback-title { font-size: 1.75rem; line-height: 1.2; color: var(--ink); margin-bottom: 10px; }
.cs-callback-text { font-size: 16px; line-height: 1.65; color: #262626; margin-bottom: 26px; }
.cs .cs-callback-btn { width: auto; background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 15px 26px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.cs .cs-callback-btn:hover { background: var(--ink); color: #fff; }

/* MODAL (esito invio) */
.corslim-modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:999999; display:none; justify-content:center; align-items:center; }
.corslim-modal-content { background:#fff; padding:60px; text-align:center; max-width:550px; width:90%; position:relative; }
.corslim-modal-content, .corslim-modal-content * { font-family: 'Raleway', sans-serif; }
.corslim-modal-content .subtitle { font-size:11px; letter-spacing:3px; color:#888; margin-bottom:15px; display:block; }
.corslim-modal-content h2 { font-family:'Playfair Display', serif; font-size:32px; margin-bottom:25px; color:#000; font-weight: 400; }
.corslim-modal-content .divider { width:60px; height:1px; background:#c5a059; margin:0 auto 25px; }
.corslim-modal-content p { font-size:15px; line-height:1.8; color:#555; margin-bottom:35px; }
.corslim-btn-close { background:#000; color:#fff; border:none; padding:15px 40px; cursor:pointer; letter-spacing:2px; text-transform:uppercase; font-size:12px; }
.corslim-btn-close:hover { background:#c5a059; color:#000; }

@media (max-width: 900px) {
    .cs-sheet-grid, .cs-contact-grid, .cs-stones-head { grid-template-columns: 1fr; gap: 44px; }
    .cs-uses-list li { grid-template-columns: 1fr; gap: 12px; }
    .cs-yard { flex-wrap: wrap; }
    .cs-slab { flex: 1 1 100% !important; }
}
@media (max-width: 768px) {
    .cs-wrap, .cs-hero-copy, .cs-quarry-copy { padding-left: 24px; padding-right: 24px; }
    .cs-hero-copy { padding-bottom: 90px; }
    /* su telefono il testo copre quasi tutta la foto: velatura più uniforme */
    .cs-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 130px), linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.3) 100%); }
    .cs-h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
    .cs-hero-text { font-size: 16px; }
    .cs-sheet, .cs-contact { padding: 84px 0; }
    .cs-weight, .cs-uses, .cs-stones { padding: 0 0 84px; }
    .cs-weight > .cs-wrap, .cs-uses > .cs-wrap, .cs-stones > .cs-wrap { padding-top: 76px; }
    .cs-spec dl > div { grid-template-columns: 96px minmax(0, 1fr); }
    .cs-quotes { margin: 60px 0 50px; }
    /* su telefono il valore va sotto la linea: accanto non c'è spazio */
    .cs-q-track { height: auto; padding-top: 24px; }
    .cs-q-line { top: 11px; }
    .cs-q-value { position: static; display: block; transform: none; padding-left: 0; margin-top: 4px; }
    .cs-quotes.in-view .cs-q-line.trad { width: 100%; } .cs-quotes.in-view .cs-q-line.slim { width: 17.6%; }
    .cs-fields-row { grid-template-columns: 1fr; gap: 0; }
    .cs-quarry { min-height: 75vh; }
    .corslim-modal-content { padding: 35px 25px; }
}
@media (prefers-reduced-motion: reduce) {
    .cs-q-line, .cs-q-value { transition: none; }
}

/* ============================================================
   PAGINE DI CATEGORIA (Cucina, Bagno, Pavimenti, Arredi, Elite Art)
   Stesse regole di Corslim: scuro solo per le foto, contenuti su un unico fondo chiaro
   separati da una linea sottile, titoli brevi, testi leggibili.
   ============================================================ */
.cs-sec { background: var(--carrara); padding: 0 0 120px; }
.cs-sec > .cs-wrap { border-top: 1px solid var(--dust); padding-top: 110px; }
.cs-sec--first { padding-top: 130px; }
.cs-sec--first > .cs-wrap { border-top: 0; padding-top: 0; }

/* capitolo: foto grande + testo */
.cs-chapter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: center; }
.cs-chapter--flip .cs-chapter-media { order: 2; }
.cs-chapter-media { margin: 0; }
.cs-chapter-media img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.cs-chapter-title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; color: var(--ink); margin-bottom: 26px; }
.cs .cs-textlink { display: inline-block; margin-top: 30px; font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.cs .cs-textlink:hover { color: var(--brass); }

/* testo senza foto: titolo a sinistra, testo a destra */
.cs-statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }

/* domande frequenti, apribili */
.cs-faq-list { margin-top: 50px; border-top: 1px solid var(--ink); }
.cs-faq-item { border-bottom: 1px solid var(--dust); }
.cs-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 30px; padding: 28px 0; }
.cs-faq-item summary::-webkit-details-marker { display: none; }
.cs-faq-q { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.35; color: var(--ink); }
.cs-faq-item summary::after { content: '+'; font-size: 28px; line-height: 1; color: var(--brass); transition: transform .3s ease; flex: none; }
.cs-faq-item[open] summary::after { transform: rotate(45deg); }
.cs-faq-item summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.cs-faq-a { padding: 0 0 30px; max-width: 70ch; font-size: 17px; line-height: 1.75; color: #262626; }

/* altre creazioni */
.cs-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 50px; }
.cs .cs-more-item { display: block; text-decoration: none; color: inherit; }
.cs-more-item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .3s ease; }
.cs-more-item:hover img { opacity: .85; }
.cs-more-name { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 1.35rem; color: var(--ink); }

/* chiusura */
.cs-final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.cs-final-lead { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; color: var(--ink); margin-bottom: 18px; }
.cs-final-actions { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; margin-top: 34px; }
.cs .cs-btn { display: inline-block; background: var(--ink); color: #fff; padding: 18px 34px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background-color .3s ease; }
.cs .cs-btn:hover { background: var(--brass); }
.cs-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--dust); }
.cs-trust-n { display: block; font-size: 1.9rem; color: var(--ink); }
.cs-trust-l { display: block; margin-top: 6px; font-size: 14px; color: var(--quarry); }

@media (max-width: 900px) {
    .cs-chapter, .cs-statement, .cs-final-grid { grid-template-columns: 1fr; gap: 36px; }
    .cs-chapter--flip .cs-chapter-media { order: 0; }
    .cs-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 768px) {
    .cs-sec { padding-bottom: 84px; }
    .cs-sec > .cs-wrap { padding-top: 76px; }
    .cs-sec--first { padding-top: 84px; }
    .cs-sec--first > .cs-wrap { padding-top: 0; }
    .cs-more-grid { gap: 16px; }
    .cs-more-name { font-size: 1.1rem; }
}

/* ============================================================
   HOME
   Video vero in apertura, poi lo stesso fondo chiaro delle altre pagine;
   l'unica altra fascia scura è Corslim, perché è una fotografia.
   ============================================================ */
.cs-hero--home video.cs-hero-img { object-position: 50% 50%; }

/* le cifre dell'azienda, subito sotto il video */
.cs-sec--figures { padding-bottom: 0; }
.cs-sec--figures > .cs-wrap { border-top: 0; padding-top: 0; }
.cs-figures { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 56px 0; }
.cs-figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 0 24px; border-left: 1px solid var(--dust); }
.cs-figures > div:first-child { border-left: 0; padding-left: 0; }
.cs-figures-n { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--ink); }
.cs-figures-l { font-size: 14px; color: var(--quarry); }

/* cosa realizziamo: la cucina grande, le altre quattro accanto */
.cs-works-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px 30px; margin-bottom: 50px; }
.cs .cs-works-head .cs-textlink { margin-top: 0; }
.cs-works { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 44px 26px; }
.cs .cs-work { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.cs-work img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .3s ease; }
.cs-work:hover img { opacity: .85; }
.cs-work--big { grid-row: span 2; }
.cs-work--big img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.cs-work-name { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 1.35rem; color: var(--ink); }
.cs-work--big .cs-work-name { font-size: 1.75rem; }

/* Corslim: fotografia a tutta larghezza */
.cs-quarry-sub { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.3; color: #fff; margin-bottom: 18px; }
.cs-quarry--corslim .cs-body { max-width: 52ch; margin-bottom: 34px; }
.cs-quarry--corslim .cs-quarry-line { font-size: clamp(2.6rem, 5vw, 4.4rem); }

.cs-caption { margin-top: 10px; font-size: 13px; color: var(--quarry); }

/* parole dei clienti */
.cs-voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; margin-top: 50px; }
.cs-voice { margin: 0; padding-top: 26px; border-top: 1px solid var(--ink); }
.cs .cs-voice-q { margin: 0; font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.cs-voice-who { margin-top: 18px; font-size: 14px; color: var(--quarry); }

/* Elite Journal */
.cs-journal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.cs-journal .cs-h2 { margin-bottom: 26px; }
.cs-journal-form { max-width: 460px; }
.cs-form-warn { margin: -18px 0 22px; font-size: 14px; color: #8a1c1c; }

@media (max-width: 900px) {
    .cs-figures { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; padding: 44px 0; }
    .cs-figures > div { border-left: 0; padding: 0; }
    .cs-figures > div:first-child { grid-column: 1 / -1; }
    .cs-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
    .cs-work--big { grid-column: 1 / -1; grid-row: auto; }
    .cs-work--big img { flex: none; aspect-ratio: 4 / 3; }
    .cs-voices, .cs-journal { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .cs-work-name { font-size: 1.1rem; }
    .cs-work--big .cs-work-name { font-size: 1.4rem; }
}
.cs .cs-submit { width: auto; }
.cs .cs-body + .cs-body { margin-top: 1em; }

/* ============================================================
   CREAZIONI (l'atelier): il percorso dalla cava al capolavoro,
   foto alternate a sinistra e a destra, didascalia da museo sempre visibile
   ============================================================ */
.cs-motto { margin: 0; max-width: 900px; }
.cs .cs-motto-q { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.25; color: var(--ink); }
.cs-motto-who { margin-top: 22px; font-size: 14px; color: var(--quarry); }

.cs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 96px; }
.cs-step figure { margin: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 26px; align-items: end; }
.cs-step-media { grid-row: 1; grid-column: 1 / span 6; display: block; width: 100%; height: auto; max-height: 82vh; object-fit: cover; background: #ddd; }
.cs-step figcaption { grid-row: 1; grid-column: 8 / span 4; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.cs-step--wide .cs-step-media { grid-column: 1 / span 8; }
.cs-step--wide figcaption { grid-column: 9 / span 4; }
.cs-step--flip .cs-step-media { grid-column: 7 / span 6; }
.cs-step--flip figcaption { grid-column: 2 / span 4; }
.cs-step--flip.cs-step--wide .cs-step-media { grid-column: 5 / span 8; }
.cs-step--flip.cs-step--wide figcaption { grid-column: 1 / span 3; }
.cs-step-title { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; color: var(--ink); }
.cs-step-kind { font-size: 14px; color: var(--quarry); }

@media (max-width: 900px) {
    .cs-steps { gap: 70px; }
    .cs-step figure { display: block; }
    .cs-step-media { max-height: 78vh; }
    .cs-step figcaption { margin-top: 18px; }
}

/* ============================================================
   SHOWROOM: le collezioni come schede di catalogo
   ============================================================ */
.cs-cats { display: flex; flex-direction: column; }
.cs-cat { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 70px; align-items: center; padding: 70px 0; border-top: 1px solid var(--dust); }
.cs-cat:first-child { border-top: 0; padding-top: 0; }
.cs-cat:last-child { padding-bottom: 0; }
.cs-cat-media { display: block; }
.cs-cat-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .3s ease; }
.cs-cat-media:hover img { opacity: .85; }
.cs-cat-name { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin-bottom: 22px; }
.cs .cs-cat-name a { color: var(--ink); text-decoration: none; }
.cs .cs-cat-name a:hover { color: var(--brass); }
.cs .cs-btn--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 16px 28px; }
.cs .cs-btn--line:hover { background: var(--ink); color: #fff; }
.cs .cs-final-actions .cs-textlink { margin-top: 0; }

@media (max-width: 900px) {
    .cs-cat { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
}

/* ============================================================
   LA NOSTRA STORIA: gli anni come elemento forte (sono una vera sequenza)
   ============================================================ */
.cs-era { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; padding: 90px 0; border-top: 1px solid var(--dust); }
.cs-era:first-child { border-top: 0; padding-top: 0; }
.cs-era:last-child { padding-bottom: 0; }
.cs .cs-era-year { font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: .9; color: var(--brass); }
.cs-era-title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; color: var(--ink); }
.cs .cs-era-sub { margin-top: 10px; font-size: 15px; color: var(--quarry); }
.cs-era-text { margin-top: 26px; }
.cs-era-text strong { font-weight: 600; color: var(--ink); }
.cs-era figure { margin: 44px 0 0; max-width: 780px; }
.cs-era figure img { display: block; width: 100%; height: auto; }

.cs .cs-ledger-intro { margin-top: 24px; }
.cs-ledger { margin-top: 50px; border-top: 1px solid var(--ink); }
.cs-ledger-row { display: grid; grid-template-columns: 90px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr); gap: 30px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--dust); }
.cs .cs-ledger-year { font-size: 1.5rem; line-height: 1.3; color: var(--brass); }
.cs-ledger-name { font-size: 1.6rem; line-height: 1.25; font-weight: 400; color: var(--ink); }
.cs .cs-ledger-tag { display: block; margin-top: 6px; font-family: 'Raleway', sans-serif; font-size: 14px; color: var(--quarry); }
.cs .cs-ledger-desc { font-size: 16px; line-height: 1.7; color: #262626; }
.cs-ledger-swatch { display: flex; gap: 8px; }
.cs-ledger-swatch img { display: block; flex: 1 1 0; min-width: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cs .cs-ledger-foot { margin-top: 40px; }
.cs-ledger-foot strong { font-weight: 600; color: var(--ink); }

.cs-motto-who { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cs-signature { display: block; width: min(472px, 100%); height: auto; }

@media (max-width: 900px) {
    .cs-era { grid-template-columns: 1fr; gap: 18px; padding: 64px 0; }
    .cs-ledger-row { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 18px; }
    .cs-ledger-desc, .cs-ledger-swatch { grid-column: 2; }
    .cs-ledger-swatch:empty { display: none; }
}

/* ============================================================
   FAQ: indice dei gruppi a sinistra, domande apribili a destra
   ============================================================ */
.cs-hero--short { min-height: 64vh; min-height: 64svh; }
.cs-hero--short .cs-hero-copy { padding-bottom: 80px; }
.cs-faq-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 60px; align-items: start; }
.cs-faq-index { position: sticky; top: 30px; }
.cs .cs-faq-index-t { font-size: 13px; color: var(--quarry); margin-bottom: 14px; }
.cs-faq-index ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cs-faq-index li { border-bottom: 1px solid var(--dust); }
.cs .cs-faq-index a { display: block; padding: 13px 0; font-size: 16px; line-height: 1.4; color: var(--ink); text-decoration: none; }
.cs .cs-faq-index a:hover { color: var(--brass); }
.cs-faq-group { scroll-margin-top: 30px; }
.cs-faq-group + .cs-faq-group { margin-top: 80px; }
.cs-faq-group-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; color: var(--ink); }
.cs-faq-group .cs-faq-list { margin-top: 26px; }
.cs .cs-faq-a p { font-size: 17px; line-height: 1.75; color: #262626; }
.cs .cs-faq-a p + p { margin-top: 1em; }

@media (max-width: 900px) {
    .cs-faq-layout { grid-template-columns: 1fr; gap: 44px; }
    .cs-faq-index { position: static; }
    .cs-faq-group + .cs-faq-group { margin-top: 64px; }
}
@media (max-width: 768px) {
    .cs-hero--short { min-height: 72svh; }
}

/* ============================================================
   ELITE JOURNAL (pagina di iscrizione)
   ============================================================ */
.cs-perks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cs-perks li { padding: 30px 0; border-bottom: 1px solid var(--dust); }
.cs-perk-t { font-size: 1.6rem; line-height: 1.25; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.cs .cs-journal-t { margin-bottom: 30px; }
.cs .cs-form-warn--after { margin: 16px 0 0; }
.cs .cs-submit:disabled { opacity: .45; cursor: not-allowed; }
.cs .cs-submit { border-radius: 0; }
/* come nel resto del sito: il riquadro di reCAPTCHA resta nascosto */
.grecaptcha-badge { visibility: hidden !important; }

/* ============================================================
   I TUOI PROGETTI
   Il processo 1-4 è una sequenza vera: i numeri restano.
   Il modulo (stesso HTML e script di prima) passa su fondo chiaro:
   qui sotto si schiariscono le sue regole, scritte per il fondo scuro.
   ============================================================ */
.cs-process { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.cs-process li { padding-top: 22px; border-top: 1px solid var(--ink); }
.cs .cs-process-n { display: block; font-size: 2.6rem; line-height: 1; color: var(--brass); margin-bottom: 18px; }
.cs-process-t { font-size: 1.35rem; line-height: 1.3; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.cs .cs-process-p { font-size: 16px; line-height: 1.7; color: #262626; }

.cs .cs-formsec .form-container-elite { max-width: 860px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; color: var(--ink); text-align: left; }
.cs-formsec .elite-selector { margin: 12px 0 0; max-width: 460px; }
.cs-formsec .form-intro-notice { text-align: left; max-width: 64ch; margin: 24px 0 18px; padding: 0; background: none; border: 0; }
.cs-formsec .form-intro-notice p { font-size: 18px; line-height: 1.75; color: #262626; font-weight: 400; }
.cs-formsec .quick-contact-teaser { text-align: left; color: var(--quarry); font-size: 15px; margin: 0 0 50px; }
.cs-formsec .quick-contact-teaser a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; }
.cs-formsec .form-steps-bar { justify-content: flex-start; }
.cs-formsec .step-dot-circle { border-color: #b9bbb8; color: var(--quarry); }
.cs-formsec .step-dot-label { color: var(--quarry); font-size: 12px; letter-spacing: .04em; text-transform: none; }
.cs-formsec .step-dot.active .step-dot-circle { border-color: var(--ink); background: var(--ink); color: #fff; }
.cs-formsec .step-dot.active .step-dot-label { color: var(--ink); }
.cs-formsec .step-dot.completed .step-dot-circle { border-color: var(--brass); background: transparent; color: var(--brass); }
.cs-formsec .step-dot.completed .step-dot-label { color: var(--quarry); }
.cs-formsec .step-connector { background: #b9bbb8; }
.cs-formsec .step-connector.completed { background: var(--brass); }
.cs-formsec .step-title { color: var(--ink); border-bottom-color: var(--dust); font-weight: 400; font-size: 1.6rem; }
.cs-formsec .main-label { color: var(--quarry); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.cs-formsec .input-box input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.cs-formsec .input-box select, .cs-formsec .input-box textarea,
.cs-formsec .iti input[type="tel"], .cs-formsec input#phone { color: var(--ink) !important; border-bottom: 1px solid #9a9a9a !important; font-size: 17px !important; }
.cs-formsec .input-box input::placeholder, .cs-formsec .input-box textarea::placeholder, .cs-formsec input#phone::placeholder { color: #8d8d8d !important; }
.cs-formsec .input-box input:focus, .cs-formsec .input-box select:focus, .cs-formsec .input-box textarea:focus, .cs-formsec input#phone:focus { border-bottom: 1px solid var(--brass) !important; }
.cs-formsec .elite-select option { background: #fff; color: var(--ink); }
.cs-formsec .iti__country-list { background: #fff !important; border: 1px solid var(--dust) !important; box-shadow: 0 10px 30px rgba(0,0,0,.12) !important; color: var(--ink); }
.cs-formsec .iti__country.iti__highlight, .cs-formsec .iti__country:hover { background: var(--carrara) !important; }
.cs-formsec .iti__dial-code { color: var(--quarry); }
.cs-formsec .elite-selector { border: 1px solid var(--ink); margin-left: 0; }
.cs-formsec .selector-item { background: transparent; color: var(--ink); border-color: var(--ink); text-transform: none; letter-spacing: .02em; font-size: 15px; }
.cs-formsec .elite-selector input[type="radio"]:checked + .selector-item { background: var(--ink); color: #fff; box-shadow: none; }
.cs-formsec .selector-item:hover { background: rgba(27, 27, 27, .06); }
.cs-formsec .btn-next { background: var(--ink); color: #fff; }
.cs-formsec .btn-next:hover { background: var(--brass); color: #fff; box-shadow: none; transform: none; }
.cs-formsec .btn-prev { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.cs-formsec .submit-button-elite { background: var(--ink); color: #fff; }
.cs-formsec .submit-button-elite:hover { background: var(--brass); box-shadow: none; transform: none; }
.cs-formsec .form-submit-notice { color: var(--quarry); font-style: normal; font-size: 14px; }
.cs-formsec input[type="file"] { color: var(--quarry) !important; }
.cs-formsec input[type="file"]::file-selector-button { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.cs-formsec input[type="file"]::file-selector-button:hover { background: var(--ink); color: #fff; }
.cs-formsec .checkbox-container { color: var(--quarry); font-size: 14px; }
.cs-formsec .checkmark { border: 1px solid #9a9a9a; background: #fff; }
.cs-formsec .checkbox-container input:checked ~ .checkmark { background: var(--ink); border-color: var(--ink); }
.cs-formsec .checkbox-container input:checked ~ .checkmark::after { border-color: #fff; }
.cs-formsec .form-summary a { color: var(--ink); text-decoration: underline; }
.cs-formsec .quick-contact-box { background: transparent; border: 0; border-top: 1px solid var(--dust); margin-top: 90px; padding: 60px 0 0; text-align: left; max-width: 560px; }
.cs-formsec .quick-contact-box > .subtitle { display: none; }
.cs-formsec .quick-contact-box h3 { font-family: 'Playfair Display', serif; font-size: 1.75rem; line-height: 1.25; font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: 0; text-align: left; margin-bottom: 24px; }
.cs-formsec .quick-contact-submit { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 0; }
.cs-formsec .quick-contact-submit:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
    .cs-process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 560px) {
    .cs-process { grid-template-columns: 1fr; }
}
/* modulo progetti: tutto allineato a sinistra, etichette leggibili */
.cs-formsec .input-box, .cs-formsec .form-step-panel, .cs-formsec .form-summary, .cs-formsec .form-submit-notice { text-align: left; }
.cs-formsec .input-box { align-items: stretch; }
.cs-formsec .main-label { text-align: left; }
.cs-formsec .elite-selector { margin-left: 0 !important; margin-right: 0 !important; }
.cs-formsec .form-summary { border: 0; background: none; padding-left: 0; }
.cs-formsec .checkbox-container, .cs-formsec .checkbox-container * { text-transform: none; letter-spacing: 0; font-weight: 400; }
.cs-formsec .checkbox-container i { font-style: normal; }
.cs .cs-formsec .quick-contact-box { margin-left: 0; margin-right: 0; }
.cs-formsec .quick-contact-box .quick-contact-input { margin-top: 26px; }
.cs-formsec .quick-contact-box .form-summary { margin-left: 0; padding-left: 0; justify-content: flex-start; }
.cs-formsec .quick-contact-teaser a { white-space: normal; overflow-wrap: anywhere; }

/* footer: riga d'identità "Marmo Elite Carrara" su tutte le pagine (discreta, leggibile) */
.main-footer .footer-entity { font-family: 'Raleway', sans-serif !important; font-size: 13px !important; line-height: 1.6 !important; font-weight: 400 !important; font-style: normal !important;
    letter-spacing: 0 !important; text-transform: none !important; color: #a3a3a3 !important; margin: 12px 0 0 !important; max-width: 34ch; }
.footer-mobile .footer-entity { margin: 10px auto 0 !important; text-align: center; }
.footer-mobile .footer-entity { margin: 10px auto 16px !important; }

/* foto in WebP: <picture> non deve cambiare l'impaginazione dell'immagine che contiene */
picture { display: contents; }

/* pagina 404 */
.cs-404-wrap { padding-top: 10px; padding-bottom: 20px; }
.cs-404-links { list-style: none; margin: 34px 0 44px; padding: 0; border-top: 1px solid var(--dust); max-width: 720px; }
.cs-404-links li { border-bottom: 1px solid var(--dust); }
.cs-404-links a { display: block; padding: 18px 0; font-size: 19px; color: var(--ink); text-decoration: none; }
.cs-404-links a:hover, .cs-404-links a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.cs-404-lang { font-size: 17px; line-height: 1.7; color: #262626; margin-top: 8px !important; }
.cs-404-lang a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Allineamenti ===== */
/* linee tra le sezioni larghe quanto il testo (prima sporgevano nei 56px di margine del contenitore) */
.cs-sec > .cs-wrap, .cs-weight > .cs-wrap, .cs-uses > .cs-wrap, .cs-stones > .cs-wrap {
    border-top: 0;
    background: linear-gradient(var(--dust), var(--dust)) no-repeat 56px 0 / calc(100% - 112px) 1px;
}
.cs-sec--first > .cs-wrap, .cs-sec--figures > .cs-wrap { background: none; }
/* footer nella stessa colonna del contenuto; scritta del logo allineata al testo sotto */
.main-footer .footer-container { max-width: 1240px; padding: 0 56px; box-sizing: border-box; }
.main-footer .footer-logo { display: block; width: 157px; height: auto; padding: 0; margin: 2px 0 30px; transform: none; object-fit: contain; mix-blend-mode: normal; }
@media (max-width: 768px) {
    .cs-sec > .cs-wrap, .cs-weight > .cs-wrap, .cs-uses > .cs-wrap, .cs-stones > .cs-wrap { background-position: 24px 0; background-size: calc(100% - 48px) 1px; }
}
/* il testo della foto d'apertura non passa mai sotto la barra in alto (schermi bassi, titoli lunghi) */
.cs-hero { padding-top: 124px; }
/* parole col trattino nei titoli non spezzate a fine riga (sui telefoni stretti restano libere) */
.cs-nobr { white-space: nowrap; }
.cs-formsec .quick-contact-submit { font-size: 13px; letter-spacing: .12em; }
@media (max-width: 768px) {
    .cs-hero { padding-top: 104px; }
}
/* dietro alle sezioni il colore pietra, non il nero della pagina: con lo zoom di Windows al 125-150%
   tra una sezione e l'altra traspariva una sottile riga grigia */
main.cs { background-color: var(--carrara); }
/* telefoni e tablet piccoli: la pagina scorre nella finestra del browser, non dentro <body>
   (prima html e body alti quanto lo schermo + overflow nascosto = un riquadro che scorre:
   barra degli indirizzi che non si riduce, niente "torna su" toccando la barra di stato, posizione persa tornando indietro) */
@media (max-width: 768px) {
    html, body { height: auto !important; overflow-y: visible !important; overflow-x: hidden !important; overflow-x: clip !important; }
}
/* menu aperto: la pagina sotto resta ferma dov'era (prima tornava in cima, perché anche <body> veniva tagliato all'altezza dello schermo) */
html.mm-locked { overflow: hidden !important; }
html.mm-locked body { overflow: visible !important; }
/* telefoni piccoli: i pulsanti restano su una riga */
@media (max-width: 400px) {
    .cs .cs-btn, .cs .cs-cta, .cs .cs-callback-btn, .cs-formsec .quick-contact-submit { font-size: 12px; letter-spacing: .06em; padding-left: 18px; padding-right: 18px; max-width: 100%; text-align: center; }
}
/* footer del telefono: testi leggibili (prima 8-9px in grigio scuro su nero) */
.main-footer.footer-mobile .footer-tagline-mobile { font-size: 13px !important; color: #bdbdbd !important; }
.main-footer.footer-mobile .footer-location-mobile { font-size: 12px !important; color: #a3a3a3 !important; }
.main-footer.footer-mobile .copyright-mobile { font-size: 11px !important; line-height: 1.7 !important; color: #a3a3a3 !important; }
.main-footer.footer-mobile .legal-links-mobile, .main-footer.footer-mobile .legal-links-mobile a { font-size: 11px !important; color: #a3a3a3 !important; }
.main-footer.footer-mobile .legal-links-mobile span { color: #5c5c5c !important; }
.main-footer.footer-mobile .designer-credit-mobile { font-size: 10px !important; color: #8a8a8a !important; }
.main-footer.footer-mobile .footer-logo-mobile { width: 40px; height: auto; margin: 0 auto 30px; }
/* <source> dentro <picture> non deve occupare posto nei contenitori flex/griglia (spostava la foto di 8px) */
picture > source { display: none !important; }
/* numeri: il primo occupa tutta la riga solo se sono dispari (5 -> 1+2+2; 4 -> 2+2) */
@media (max-width: 900px) {
    .cs-figures > div:first-child:nth-last-child(2n) { grid-column: auto; }
}
.main-footer.footer-mobile .legal-links-mobile { flex-wrap: wrap; gap: 6px 10px; letter-spacing: .08em !important; }
/* Contatti: anche qui le linee tra le sezioni larghe quanto il testo; senza indirizzo, niente vuoto dopo il testo della sede */
main.cs .ct-directory > .ct-directory-head, .cs .ct-hq .ct-hq-inner { border-top: 0; background: linear-gradient(var(--dust), var(--dust)) no-repeat 56px 0 / calc(100% - 112px) 1px; }
.cs .ct-hq .ct-hq-intro { margin-bottom: 0; }
@media (max-width: 768px) {
    main.cs .ct-directory > .ct-directory-head, .cs .ct-hq .ct-hq-inner { background-position: 24px 0; background-size: calc(100% - 48px) 1px; }
}
