/* ==========================================================================
   FOGLIO DI STILE DEL SITO
   Indice:
   01 Variabili            08 Chi siamo            15 Footer
   02 Reset e base         09 Servizi              16 WhatsApp
   03 Accessibilità        10 Portfolio            17 Lightbox
   04 Cursore              11 Prima / Dopo         18 Pagine legali / 404
   05 Bottoni              12 Valori               18b Pagine Imbianchino / Cartongesso
   06 Reveal (scroll)      13 Contatti             19 Responsive (tablet)
   07 Navbar + Hero        14 Mappa                20 TELEFONO (testo grande)
                                                   21 Movimento ridotto
   ========================================================================== */

/* 01 — VARIABILI ---------------------------------------------------------- */
:root {
  --black:   #0a0a0a;
  --grey-dk: #151514;
  --grey-md: #2a2927;
  --grey-lt: #9a968e;
  --white:   #f8f5f0;
  --gold:    #c9a96e;
  --gold-lt: #e8d5b0;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease:  cubic-bezier(.16, 1, .3, 1);
  --pad-x: clamp(24px, 5vw, 72px);
  --pad-y: clamp(80px, 11vw, 140px);
  --maxw:  1280px;

  color-scheme: dark;
}

/* 02 — RESET E BASE ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
[hidden] { display: none !important; }

.container { max-width: var(--maxw); margin: 0 auto; }
section { padding: var(--pad-y) var(--pad-x); position: relative; }

.eyebrow {
  display: block;
  font-size: .66rem; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 300; line-height: 1.15;
}
.title em { color: var(--gold-lt); }
.rule { width: 56px; height: 1px; background: var(--gold); margin: 32px 0; }
.lead { font-size: .95rem; line-height: 1.9; color: var(--grey-lt); max-width: 540px; }

/* 03 — ACCESSIBILITÀ ------------------------------------------------------ */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 3000;
  background: var(--gold); color: var(--black);
  padding: 10px 18px; font-size: .75rem; letter-spacing: .1em;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 04 — CURSORE PERSONALIZZATO (solo dispositivi con mouse) ---------------- */
.cursor { display: none; }
html.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
html.has-cursor body, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot  { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor__ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(201,169,110,.5);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), border-color .3s;
}
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--gold); }

/* 05 — BOTTONI ------------------------------------------------------------ */
.btn {
  display: inline-block; text-align: center;
  padding: 17px 44px;
  font-family: var(--sans); font-size: .7rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn--line { border: 1px solid rgba(248,245,240,.3); color: var(--white); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }

/* 06 — REVEAL (animazioni allo scroll; attive solo se JS è disponibile) --- */
.js .reveal       { opacity: 0; transform: translateY(40px);  transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal-left  { opacity: 0; transform: translateX(-48px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal-right { opacity: 0; transform: translateX(48px);  transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .is-visible   { opacity: 1; transform: none; }
.d1 { transition-delay: .1s !important; } .d2 { transition-delay: .2s !important; }
.d3 { transition-delay: .3s !important; } .d4 { transition-delay: .4s !important; }

/* Immagini con dissolvenza al caricamento (senza JavaScript restano semplicemente visibili) */
.fade-img { transition: opacity 1.1s var(--ease); width: 100%; height: 100%; object-fit: cover; }
.js .fade-img { opacity: 0; }
.js .fade-img.is-loaded { opacity: 1; }

/* 07 — NAVBAR + HERO ------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--pad-x);
  transition: background .5s, padding .5s, border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,10,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: 16px; padding-bottom: 16px;
  border-bottom-color: rgba(201,169,110,.14);
}
/* Logo: il nome su due righe ("De Martin" grande, sotto "Alberto e Nicolas"). Così resta stretto e il menu sta sempre su una riga. */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; font-family: var(--serif); line-height: 1.05; position: relative; }
.nav .logo { z-index: 1100; }   /* resta sopra il menu aperto; quello del piè di pagina non deve finire sopra la barra */
.logo__main { font-size: 1.7rem; font-weight: 500; letter-spacing: .05em; color: var(--gold); }
.logo__sub { margin-top: 6px; font-family: var(--sans); font-size: .6rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; color: var(--grey-lt); }

.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a {
  position: relative; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(248,245,240,.7); transition: color .3s;
}
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a:not(.nav__cta):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid var(--gold); color: var(--gold) !important; padding: 11px 24px; transition: background .3s, color .3s !important; }
.nav__cta:hover { background: var(--gold); color: var(--black) !important; }
/* Sul computer le voci del menu non vanno mai a capo; il nome nel logo può andare a capo solo se è molto lungo */
@media (min-width: 861px) { .nav__links a { white-space: nowrap; } .nav .logo { min-width: 0; } }
/* Finestre del computer un po' strette: voci e spazi più compatti, così entra tutto su una riga */
@media (min-width: 861px) and (max-width: 1100px) {
  .nav__links { gap: 26px; }
  .nav__links a { letter-spacing: .14em; }
  .nav__cta { padding: 10px 16px; }
  .logo__main { font-size: 1.45rem; }
  .logo__sub { letter-spacing: .2em; }
}

/* Pulsante "Menu" (si vede solo su telefono: stile nella sezione 20) */
.nav__toggle { display: none; }
.nav__back { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(248,245,240,.7); transition: color .3s; }
.nav__back:hover { color: var(--white); }

/* Hero */
.hero { height: 100vh; height: 100svh; min-height: 640px; padding: 0; display: grid; place-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: -6% 0; will-change: transform; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: kenburns 24s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 18% 55%, rgba(201,169,110,.14), transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(201,169,110,.08), transparent 45%),
    linear-gradient(135deg, #14120f 0%, #1d1a15 50%, #0f0e0c 100%);
}
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.5) 45%, rgba(10,10,10,.88) 100%); }
.hero__grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 920px; padding: 0 var(--pad-x); will-change: transform; }
.hero__eyebrow { opacity: 0; animation: rise 1.2s .5s var(--ease) forwards; }
.hero__title {
  font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: .01em;
  font-size: clamp(2.7rem, 6.4vw, 5.8rem); margin-bottom: 26px;
  opacity: 0; animation: rise 1.2s .75s var(--ease) forwards;
}
.hero__title em { color: var(--gold-lt); }
/* "ad Andora e dintorni": sta dentro il titolo (è la parola che cercano su Google) ma si legge come una riga a parte */
.hero__where { display: block; margin-top: 22px; font-family: var(--sans); font-size: clamp(.72rem, 1.25vw, .92rem); font-weight: 400; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); overflow-wrap: break-word; }
.hero__sub {
  max-width: 520px; margin: 0 auto 48px;
  font-size: .9rem; letter-spacing: .06em; line-height: 1.9; color: rgba(248,245,240,.88); text-shadow: 0 1px 12px rgba(0,0,0,.6);
  opacity: 0; animation: rise 1.2s 1s var(--ease) forwards;
}
.hero__actions { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: rise 1.2s 1.25s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; bottom: 34px; left: 0; right: 0; margin: 0 auto; width: max-content; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .56rem; letter-spacing: .32em; text-transform: uppercase; color: var(--grey-lt);
  opacity: 0; animation: rise 1s 2s var(--ease) forwards;
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: line 2.2s ease-in-out infinite; }
@keyframes line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 08 — CHI SIAMO ---------------------------------------------------------- */
.about { background: var(--grey-dk); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.about__visual { position: relative; aspect-ratio: 3 / 4; }
.frame { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(145deg, #1d1a16, #2a251e 55%, #181612); }
.frame > img { position: absolute; inset: -6% 0; height: 112%; }
.about__visual::before, .about__visual::after { content: ''; position: absolute; width: 64px; height: 64px; border: 1px solid var(--gold); z-index: 2; pointer-events: none; }
.about__visual::before { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.about__visual::after  { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }
.about__text p { color: rgba(248,245,240,.72); line-height: 1.95; margin-bottom: 22px; font-size: .98rem; }
.about__text strong { color: var(--gold-lt); font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; padding-top: 40px; border-top: 1px solid rgba(248,245,240,.08); }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-lt); }

/* 09 — SERVIZI ------------------------------------------------------------ */
.services { background: var(--black); }
.services__head { max-width: 640px; margin-bottom: 72px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(248,245,240,.04); }
.services__grid--2 { grid-template-columns: repeat(2, 1fr); }
/* I servizi sono divisi in due gruppi (Imbianchino / Cartongesso), ognuno con il suo collegamento alla pagina dedicata */
.services__group + .services__group { margin-top: clamp(56px, 7vw, 88px); }
.services__grouphead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.services__grouptitle { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; }
.services__grouptitle em { color: var(--gold-lt); }
.services__more { padding-bottom: 6px; border-bottom: 1px solid rgba(201,169,110,.45); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); transition: color .3s, border-color .3s; }
.services__more:hover { color: var(--gold-lt); border-color: var(--gold-lt); }
.portfolio__all { margin-top: clamp(36px, 5vw, 56px); }
.service { position: relative; overflow: hidden; background: var(--grey-dk); padding: 52px 42px 46px; transition: background .5s, transform .6s var(--ease); }
.service::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, rgba(201,169,110,.12), transparent 65%); opacity: 0; transition: opacity .6s; }
.service::after { content: ''; position: absolute; top: 0; left: 0; height: 1px; width: 0; background: var(--gold); transition: width .7s var(--ease); }
.service:hover { background: #1b1a17; transform: translateY(-4px); }
.service:hover::before { opacity: 1; }
.service:hover::after { width: 100%; }
.service > * { position: relative; }
.service__num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(201,169,110,.5); margin-bottom: 34px; display: block; transition: transform .6s var(--ease), color .4s; }
.service:hover .service__num { transform: translateX(8px); color: var(--gold); }
.service__title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.25; margin-bottom: 18px; transition: color .4s; }
.service:hover .service__title { color: var(--gold-lt); }
.service__desc { font-size: .86rem; line-height: 1.9; color: var(--grey-lt); }

/* 10 — PORTFOLIO ---------------------------------------------------------- */
.portfolio { background: var(--grey-dk); }
.portfolio__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 10px 20px; border: 1px solid rgba(248,245,240,.12); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-lt); transition: all .35s; }
.filter:hover, .filter.is-active { border-color: var(--gold); color: var(--gold); }
.filter.is-active { background: rgba(201,169,110,.08); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(230px, 25vw, 360px); grid-auto-flow: dense; gap: 6px; }
.work { position: relative; overflow: hidden; background: #1c1a16; animation: workIn .8s var(--ease) both; }
.work.is-hidden { display: none; }
.work--tall { grid-row: span 2; }
.work--wide { grid-column: span 2; }
/* Con un filtro attivo la griglia diventa uniforme, per evitare spazi vuoti */
.works.is-filtered .work--tall, .works.is-filtered .work--wide { grid-row: auto; grid-column: auto; }
/* Le foto si scrivono come semplici link dentro .works (vedi index.html) e lo script le trasforma in riquadri.
   Senza JavaScript restano un elenco di link. */
.js .works > a { display: none; }
html:not(.js) .works { display: block; }
html:not(.js) .works > a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(248,245,240,.12); color: var(--gold-lt); }
/* "Vedi altre foto" e "Vai ai contatti" sotto le foto: servono solo sul telefono (vedi sezione 20), sul computer restano nascosti */
.works__after { display: none; }
/* Con una o due foto sole niente buchi nella griglia (da 3 in su vale la griglia normale) */
@media (min-width: 861px) {
  .works[data-count="1"], .works[data-count="2"] { grid-auto-rows: auto; }
  .works[data-count="1"] { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .works[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works[data-count="1"] .work, .works[data-count="2"] .work { grid-row: auto; grid-column: auto; aspect-ratio: 4 / 3; }
  /* Con quattro foto una griglia 2 x 2 (3 + 1 lascerebbe due buchi) */
  .works[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works[data-count="4"] .work { grid-row: auto; grid-column: auto; }
}
@keyframes workIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.work__btn { position: absolute; inset: 0; width: 100%; height: 100%; text-align: left; }
.work__media { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.work__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: rgba(201,169,110,.22); }
.work:nth-child(4n+1) .work__media { background: linear-gradient(135deg, #2b251c, #17140f); }
.work:nth-child(4n+2) .work__media { background: linear-gradient(200deg, #1c1a18, #2d2820); }
.work:nth-child(4n+3) .work__media { background: linear-gradient(60deg,  #211e19, #302a20); }
.work:nth-child(4n)   .work__media { background: linear-gradient(160deg, #26221b, #15130f); }
.work:hover .work__media { transform: scale(1.07); }
.work__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05) 60%); opacity: 0; transition: opacity .6s; }
.work__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; transform: translateY(14px); opacity: 0; transition: transform .7s var(--ease), opacity .6s; }
.work__cat { display: block; font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.work__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.work__loc { display: block; font-size: .72rem; color: var(--grey-lt); margin-top: 4px; }
.work__plus { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border: 1px solid rgba(248,245,240,.4); border-radius: 50%; opacity: 0; transform: scale(.7); transition: opacity .5s, transform .6s var(--ease); }
.work__plus::before, .work__plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--white); }
.work__plus::before { width: 12px; height: 1px; margin: 0 0 0 -6px; }
.work__plus::after  { width: 1px; height: 12px; margin: -6px 0 0 0; }
.work:hover .work__veil, .work__btn:focus-visible .work__veil { opacity: 1; }
.work:hover .work__cap, .work__btn:focus-visible .work__cap { transform: none; opacity: 1; }
.work:hover .work__plus, .work__btn:focus-visible .work__plus { opacity: 1; transform: none; }

/* 11 — PRIMA / DOPO ------------------------------------------------------- */
.ba-wrap { margin-top: clamp(72px, 9vw, 120px); }
.ba-wrap[hidden] { display: none; }
@media (min-width: 861px) { .ba-wrap { text-align: center; } }   /* titolo e riquadro allineati al centro */
/* Il riquadro ha la forma delle foto (7:6, quasi quadrato): non si taglia nulla e le due foto combaciano. */
.ba { --pos: 50%; position: relative; width: 100%; max-width: 760px; margin-inline: auto; aspect-ratio: 7 / 6; overflow: hidden; border: 1px solid rgba(201,169,110,.15); user-select: none; touch-action: pan-y; background: #1a1814; }
.ba__layer { position: absolute; inset: 0; display: grid; place-items: center; }
.ba__layer img { position: absolute; inset: 0; }
/* A sinistra del cursore si vede il PRIMA, a destra il DOPO. */
.ba__after  { z-index: 0; background: linear-gradient(130deg, #3a3122, #1d1a15 60%, #2f2819); }
.ba__before { z-index: 1; background: linear-gradient(130deg, #2c261d, #16130f); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__ph { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 5vw, 4rem); color: rgba(248,245,240,.1); }
.ba__tag { position: absolute; top: 20px; padding: 7px 16px; background: rgba(10,10,10,.75); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; z-index: 2; }
.ba__tag--before { left: 20px; color: var(--grey-lt); }
.ba__tag--after  { right: 20px; color: var(--gold); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--gold); transform: translateX(-.5px); z-index: 3; pointer-events: none; }
.ba__handle::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--black);
  font-size: 1.1rem; letter-spacing: 2px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 4; cursor: ew-resize; margin: 0; }
.ba:focus-within .ba__handle::after { outline: 1px solid var(--white); outline-offset: 3px; }
.ba__caption { text-align: center; margin-top: 18px; font-size: .75rem; letter-spacing: .1em; color: var(--grey-lt); }

/* 12 — VALORI ------------------------------------------------------------- */
.values { background: var(--black); overflow: hidden; }
.values::before { content: ''; position: absolute; right: -160px; top: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(201,169,110,.06), transparent 70%); }
.values__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.value { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid rgba(248,245,240,.07); transition: border-color .4s; }
.value:first-child { border-top: 1px solid rgba(248,245,240,.07); }
.value:hover { border-bottom-color: rgba(201,169,110,.35); }
.value__num { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: rgba(201,169,110,.3); transition: color .4s; }
.value:hover .value__num { color: var(--gold); }
.value__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: 8px; }
.value__desc { font-size: .86rem; line-height: 1.85; color: var(--grey-lt); }
.values__list { margin-top: 44px; }
.quote { position: relative; padding: clamp(32px, 4vw, 56px); border: 1px solid rgba(201,169,110,.2); background: rgba(21,21,20,.7); }
.quote::before { content: '“'; position: absolute; top: -8px; left: 28px; font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--gold); opacity: .5; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.55; color: rgba(248,245,240,.88); margin: 18px 0 26px; }
.quote cite { font-style: normal; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

/* 13 — CONTATTI ----------------------------------------------------------- */
.contact { background: var(--grey-dk); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 8vw, 110px); margin-top: clamp(44px, 6vw, 72px); }
/* Su schermo largo i contatti stanno su due colonne (sul telefono restano uno sotto l'altro) */
@media (min-width: 861px) {
  .contact__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 7vw, 110px); }
  .contact__info .info:nth-child(-n+2) { padding-top: 0; }
  .contact__info .social { grid-column: 1 / -1; }
}
.info { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid rgba(248,245,240,.07); }
.info:first-child { padding-top: 0; }
.info__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(201,169,110,.28); color: var(--gold); }
.info__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.info__label { display: block; font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.info__value { font-size: 1.02rem; line-height: 1.6; }
.info__value a { transition: color .3s; }
.info__value a:hover { color: var(--gold); }
.info__value small { display: block; font-size: .78rem; color: var(--grey-lt); }
.social { display: flex; gap: 12px; padding-top: 26px; }
.social a { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-lt); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.social a:hover { color: var(--gold); border-color: var(--gold); }

.form__row { margin-bottom: 26px; }
.form__row label { display: block; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-lt); margin-bottom: 8px; }
.form__row input, .form__row select, .form__row textarea {
  width: 100%; padding: 13px 0; background: transparent; color: var(--white);
  border: 0; border-bottom: 1px solid rgba(248,245,240,.16); border-radius: 0; outline: 0;
  font: inherit; font-size: .95rem; transition: border-color .35s;
}
.form__row input:focus, .form__row select:focus, .form__row textarea:focus { border-bottom-color: var(--gold); }
.form__row textarea { min-height: 116px; resize: vertical; }
.form__row select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a96e' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 4px center; }
.form__row select option { background: var(--grey-dk); color: var(--white); }
.form__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .76rem; line-height: 1.6; color: var(--grey-lt); margin-bottom: 28px; }
.check input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--gold); }
.check a { color: var(--gold); border-bottom: 1px solid rgba(201,169,110,.4); }
.form__submit { width: 100%; }
.form__submit[disabled] { opacity: .6; pointer-events: none; }
.form__note { margin-top: 16px; text-align: center; font-size: .74rem; color: var(--grey-lt); }
.form__status { margin-top: 18px; padding: 14px 18px; font-size: .84rem; border: 1px solid rgba(201,169,110,.4); background: rgba(201,169,110,.07); color: var(--gold-lt); }
.form__status[hidden] { display: none; }
.form__status.is-error { border-color: rgba(220,110,100,.5); background: rgba(220,110,100,.08); color: #f0b4ac; }
.req { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .85; }
.form__err { margin-top: 8px; font-size: .8rem; line-height: 1.45; color: #f0b4ac; }
.form__row [aria-invalid="true"] { border-bottom-color: #e08a80; }
.form__check { margin-bottom: 28px; }
.form__check > .check { margin-bottom: 0; }

/* 14 — MAPPA -------------------------------------------------------------- */
.map { margin-top: clamp(56px, 7vw, 90px); height: clamp(300px, 36vw, 420px); border: 1px solid rgba(201,169,110,.15); position: relative; background: linear-gradient(135deg, #1a1814, #14120f); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(.85); }
.map__consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; }
.map__consent p { max-width: 420px; font-size: .8rem; line-height: 1.8; color: var(--grey-lt); }
.map__addr { font-family: var(--serif); font-size: 1.4rem; color: var(--white); }

/* 15 — FOOTER ------------------------------------------------------------- */
.footer { background: var(--black); border-top: 1px solid rgba(201,169,110,.12); padding: 72px var(--pad-x) 36px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer .logo { margin-bottom: 18px; }
.footer__tag { max-width: 320px; font-size: .82rem; line-height: 1.8; color: var(--grey-lt); }
.footer__h { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer__links a { display: block; margin-bottom: 12px; font-size: .84rem; color: var(--grey-lt); transition: color .3s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(248,245,240,.07); font-size: .72rem; color: var(--grey-lt); }
.footer__bottom a:hover { color: var(--gold); }
@media (min-width: 861px) { .footer__bottom { padding-right: 96px; } }   /* il tondo WhatsApp, fisso in basso a destra, non copre il link Privacy */

/* 16 — WHATSAPP ----------------------------------------------------------- */
.wa { position: fixed; right: 28px; bottom: 28px; z-index: 900; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; box-shadow: 0 10px 34px rgba(0,0,0,.45); transition: transform .4s var(--ease), box-shadow .4s; }
.wa:hover { transform: scale(1.1); box-shadow: 0 14px 40px rgba(37,211,102,.35); }
.wa::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(37,211,102,.4); animation: wa 2.6s ease-out infinite; }
.wa svg { width: 28px; height: 28px; fill: #fff; }
@keyframes wa { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }

/* 17 — LIGHTBOX ----------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; background: rgba(6,6,6,.96); opacity: 0; transition: opacity .45s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb__fig { grid-column: 2; display: grid; gap: 18px; justify-items: center; max-height: 100vh; padding: 56px 0 40px; transform: scale(.96); transition: transform .7s var(--ease); }
.lightbox.is-open .lb__fig { transform: none; }
.lb__media { position: relative; width: min(100%, 1100px); height: min(72vh, 760px); display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #2a251d, #14120f); }
.lb__media img { width: 100%; height: 100%; object-fit: contain; }
.lb__ph { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 5vw, 4rem); color: rgba(201,169,110,.2); text-align: center; padding: 24px; }
.lb__cap { text-align: center; }
.lb__cat { display: block; font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.lb__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.lb__loc { display: block; font-size: .78rem; color: var(--grey-lt); margin-top: 4px; }
.lb__close, .lb__nav { color: var(--white); transition: color .3s, transform .4s var(--ease); }
.lb__close:hover, .lb__nav:hover { color: var(--gold); }
.lb__close { position: absolute; top: 18px; right: 24px; width: 48px; height: 48px; font-size: 2rem; font-weight: 200; z-index: 2; }
.lb__nav { width: 56px; height: 56px; font-size: 2.6rem; font-weight: 200; justify-self: center; }
.lb__prev:hover { transform: translateX(-4px); } .lb__next:hover { transform: translateX(4px); }
.lb__count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: .62rem; letter-spacing: .3em; color: var(--grey-lt); }

.lb__lbl { display: none; }   /* "Chiudi / Indietro / Avanti": solo su telefono */

/* 18 — PAGINE LEGALI / 404 ------------------------------------------------ */
.legal { padding-top: 150px; min-height: 80vh; }
.legal .container { max-width: 800px; }
.legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--gold-lt); margin: 44px 0 14px; }
.legal p, .legal li { font-size: .92rem; line-height: 1.9; color: rgba(248,245,240,.72); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--gold); border-bottom: 1px solid rgba(201,169,110,.4); }
.legal__date { font-size: .74rem; letter-spacing: .12em; color: var(--grey-lt); }
.notfound { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 40px var(--pad-x); }
.notfound__code { font-family: var(--serif); font-style: italic; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: rgba(201,169,110,.25); }
.notfound h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 18px; }
.notfound p { color: var(--grey-lt); margin-bottom: 38px; }

/* 18b — PAGINE DEI SERVIZI (Imbianchino, Cartongesso) ---------------------- */
.page-hero { padding-top: clamp(130px, 15vw, 190px); padding-bottom: clamp(56px, 8vw, 100px); background: radial-gradient(ellipse at 15% 20%, rgba(201,169,110,.12), transparent 55%), linear-gradient(135deg, #14120f 0%, #1d1a15 55%, #0f0e0c 100%); }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.page-hero .about__visual { width: 100%; max-width: 420px; justify-self: end; }
.page-hero .title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.page-hero .lead { max-width: 560px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 38px; }
.crumbs { margin-bottom: 30px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-lt); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--white); }
.crumbs i { margin: 0 10px; font-style: normal; color: var(--gold); }

/* Domande frequenti: si aprono con un tocco, senza JavaScript */
.faq { background: var(--grey-dk); }
.faq__list { max-width: 820px; margin-top: 44px; border-top: 1px solid rgba(248,245,240,.1); }
.faq details { border-bottom: 1px solid rgba(248,245,240,.1); }
.faq summary { position: relative; display: block; padding: 24px 52px 24px 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; cursor: pointer; list-style: none; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.6rem; font-weight: 300; color: var(--gold); }
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--gold-lt); }
.faq details p { max-width: 700px; padding: 0 52px 28px 0; font-size: .95rem; line-height: 1.9; color: var(--grey-lt); }

/* Fascia "ti serve anche l'altro mestiere?" */
.nexttrade { background: var(--black); padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); }
.nexttrade__box { display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; padding: clamp(28px, 4vw, 52px); border: 1px solid rgba(201,169,110,.25); background: rgba(21,21,20,.7); }
.nexttrade .eyebrow { margin-bottom: 14px; }
.nexttrade .title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }

/* 19 — RESPONSIVE (TABLET) ------------------------------------------------ */
@media (max-width: 1024px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero .about__visual { justify-self: start; }
  .about__grid, .values__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 460px; }
  .values__quote { order: -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

/* 20 — TELEFONO: TESTO GRANDE, CONTRASTO ALTO, PULSANTI COMODI -------------
   Su schermi fino a 860px (telefoni e tablet in verticale) il sito cambia
   pensando a chi vede poco:
   · testo da 18px in su, con tratto spesso e contrasto molto alto
   · niente scritte minuscole, spaziate o tutte in maiuscolo
   · pulsanti alti almeno 52px, con la parola scritta (non solo l'icona)
   · niente effetti in movimento: tutto è visibile subito
   · barra fissa in basso con "Chiama" e "WhatsApp"
   · menu con la scritta "Menu" e scelta della grandezza del testo
   Le misure sono in rem: la scelta "Grandezza del testo" le ingrandisce tutte.
   Per cambiare la grandezza di base del testo: body → font-size (qui sotto).
   ------------------------------------------------------------------------ */

/* Parti pensate solo per il telefono: sul computer restano nascoste */
.actionbar, .textsize, .portfolio__hint, .ba__btns, .info__action, .only-mobile { display: none; }

@media (max-width: 860px) {

  /* ===== Colori e misure di base ===== */
  :root {
    --black:   #121110;               /* sfondo: nero morbido, meno abbagliante del nero puro */
    --grey-dk: #1b1a18;
    --grey-md: #2f2d2a;
    --soft:    #d9d4cb;               /* testo secondario: contrasto 11:1 (livello AAA) */
    --grey-lt: var(--soft);           /* ogni "grigio chiaro" del sito diventa molto più leggibile */
    --line:    rgba(248,245,240,.25); /* linee di separazione */
    --line-hi: rgba(248,245,240,.55); /* bordi di pulsanti e campi: ben visibili */
    --pad-x:   20px;
    --pad-y:   60px;
  }
  html { scroll-behavior: auto; scroll-padding-top: 6.5rem; }
  html[data-text="2"] { font-size: 118%; }   /* scelta "Grande" */
  html[data-text="3"] { font-size: 138%; }   /* scelta "Enorme" */
  body { font-size: 1.125rem; font-weight: 400; line-height: 1.7; -webkit-tap-highlight-color: rgba(201,169,110,.3); }
  body.has-bar { padding-bottom: var(--bar-h, 5.5rem); }   /* lascia spazio alla barra fissa */
  .only-desktop { display: none; }
  .only-mobile { display: revert; }

  /* ===== Testi ===== */
  .eyebrow { margin-bottom: 12px; font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: none; }
  .title { font-size: clamp(2.1rem, 9vw, 2.75rem); font-weight: 500; line-height: 1.15; text-wrap: balance; }
  .rule { width: 72px; height: 3px; margin: 22px 0; }
  .lead { max-width: none; font-size: 1.1875rem; line-height: 1.7; color: var(--soft); }

  /* ===== Pulsanti ===== */
  .btn { display: flex; align-items: center; justify-content: center; min-height: 3.75rem; padding: 14px 22px; font-size: 1.125rem; font-weight: 600; letter-spacing: .01em; line-height: 1.25; text-transform: none; }
  .btn--gold:hover, .btn--line:hover { transform: none; }
  .btn--gold:hover { background: var(--gold); }
  .btn--line, .btn--line:hover { border: 2px solid var(--line-hi); background: rgba(248,245,240,.06); color: var(--white); }
  .btn:active { filter: brightness(1.15); }

  /* ===== Barra in alto e menu ===== */
  .nav, .nav.is-scrolled { padding: 10px var(--pad-x); background: var(--black); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 2px solid rgba(201,169,110,.45); }
  /* Logo: entra sempre accanto al pulsante Menu, anche con il testo enorme (se il nome è lungo va a capo da solo) */
  .logo, .footer .logo { display: flex; flex-direction: column; justify-content: center; min-height: 2.9rem; margin-right: 12px; line-height: 1.05; }
  .logo__main { font-size: min(clamp(1.3rem, 5.6vw, 1.65rem), 25px); font-weight: 600; letter-spacing: .03em; }
  .logo__sub { margin-top: 3px; font-size: min(1rem, 17px); font-weight: 500; letter-spacing: .02em; text-transform: none; white-space: normal; color: var(--soft); }
  .footer .logo { display: inline-flex; margin-bottom: 14px; }

  .nav__toggle { position: relative; z-index: 1100; display: inline-flex; align-items: center; gap: 12px; min-height: 3.25rem; padding: 0 16px; border: 2px solid var(--gold); font-size: min(1.1875rem, 20px); font-weight: 600; color: var(--white); }
  .nav__bars { position: relative; flex: none; width: 24px; height: 17px; }
  .nav__bars i { position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--gold); transition: transform .25s ease, opacity .2s ease; }
  .nav__bars i:nth-child(1) { top: 0; }
  .nav__bars i:nth-child(2) { top: 7px; }
  .nav__bars i:nth-child(3) { top: 14px; }
  body.menu-open .nav__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__bars i:nth-child(2) { opacity: 0; }
  body.menu-open .nav__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Il menu aperto è un elenco di righe grandi, facili da toccare */
  .nav__links {
    position: fixed; inset: 0; z-index: 1050;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 92px var(--pad-x) calc(var(--bar-h, 5.5rem) + 28px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--black);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  }
  body.menu-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; padding: 8px 4px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.9rem; font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--white); }
  .nav__links a.is-active { color: var(--gold-lt); }
  .nav__links a:not(.nav__cta)::after { content: '›'; position: static; height: auto; background: none; transform: none; font-size: 2rem; line-height: 1; color: var(--gold); }
  .nav__links .nav__cta { justify-content: center; text-align: center; min-height: 4rem; margin-top: 26px; padding: 12px 20px !important; border: 0; background: var(--gold); font-family: var(--sans) !important; font-size: 1.1875rem !important; font-weight: 600; letter-spacing: .01em !important; text-transform: none !important; color: #0a0a0a !important; }

  /* Pagine legali: il pulsante "Torna al sito" in alto */
  .nav__back { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 16px; border: 2px solid var(--gold); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--white); }

  /* ===== Prima schermata ===== */
  .hero { height: auto; min-height: 100vh; min-height: 100svh; padding: 104px var(--pad-x) 128px; }
  .hero__media img { animation: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.72) 55%, rgba(10,10,10,.92) 100%); }
  .hero__content { width: 100%; max-width: 36rem; padding: 0; text-align: left; }
  .hero__eyebrow, .hero__title, .hero__sub, .hero__actions { opacity: 1; animation: none; }
  .hero__title { margin-bottom: 18px; font-size: clamp(1.9rem, 9.4vw, 2.9rem); font-weight: 500; line-height: 1.1; letter-spacing: 0; overflow-wrap: break-word; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
  .hero__where { margin-top: 12px; font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; text-transform: none; line-height: 1.3; color: var(--gold-lt); }
  .hero__sub { max-width: none; margin: 0 0 30px; font-size: 1.1875rem; letter-spacing: 0; line-height: 1.65; color: var(--white); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
  .hero__actions { flex-direction: column; gap: 14px; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }

  /* ===== Nessun effetto "a comparsa": tutto è subito visibile ===== */
  .js .reveal, .js .reveal-left, .js .reveal-right { opacity: 1; transform: none; transition: none; }

  /* ===== Chi siamo ===== */
  .about__grid { gap: 36px; }
  .about__visual { max-width: none; aspect-ratio: 5 / 4; }
  .about__text p { margin-bottom: 18px; font-size: 1.125rem; line-height: 1.75; color: var(--soft); }
  .about__text strong { font-weight: 600; }
  .stats { grid-template-columns: 1fr; gap: 0; margin-top: 30px; padding-top: 0; border-top: 1px solid var(--line); }
  .stats > div { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .stat__num { flex: none; min-width: 4.6rem; margin: 0; font-size: 2.6rem; font-weight: 500; }
  .stat__label { font-size: 1.125rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--white); }

  /* ===== Servizi: schede separate, con una riga oro a sinistra ===== */
  .services__head { margin-bottom: 30px; }
  .services__grid { grid-template-columns: 1fr; gap: 14px; background: none; }
  .service { padding: 26px 22px 28px; border: 1px solid var(--line); border-left: 5px solid var(--gold); }
  .service:hover { background: var(--grey-dk); transform: none; }
  .service:hover::before { opacity: 0; }
  .service:hover::after { width: 0; }
  .service:hover .service__num { transform: none; color: var(--gold); }
  .service:hover .service__title { color: var(--white); }
  .service__num { margin-bottom: 8px; font-size: 1.25rem; color: var(--gold); }
  .service__title { margin-bottom: 12px; font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
  .service__desc { font-size: 1.125rem; line-height: 1.7; color: var(--soft); }
  .services__grid--2 { grid-template-columns: 1fr; }
  .services__group + .services__group { margin-top: 44px; }
  .services__grouphead { display: block; margin-bottom: 18px; }
  .services__grouptitle { margin-bottom: 14px; font-size: 2.1rem; font-weight: 600; }
  .services__more { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 8px 18px; border: 2px solid var(--gold); font-size: 1.125rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: center; color: var(--white); }

  /* ===== Pagine dei servizi (Imbianchino, Cartongesso) ===== */
  .page-hero { padding-top: 104px; padding-bottom: 48px; }
  .page-hero__grid { gap: 30px; }
  .page-hero .about__visual { max-width: none; justify-self: stretch; }
  .page-hero .title { font-size: clamp(2.1rem, 9vw, 2.75rem); }
  .page-hero__actions { flex-direction: column; gap: 14px; margin-top: 26px; }
  .page-hero__actions .btn { width: 100%; }
  .crumbs { margin-bottom: 16px; font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--soft); }
  .crumbs a { display: inline-flex; align-items: center; min-height: 3rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; color: var(--white); }
  .crumbs i { margin: 0 8px; }
  .faq__list { margin-top: 24px; border-top-color: var(--line); }
  .faq details { border-bottom-color: var(--line); }
  .faq summary { min-height: 4rem; padding: 18px 50px 18px 0; font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
  .faq summary::after { right: 4px; font-size: 2.2rem; font-weight: 400; }
  .faq details p { max-width: none; padding: 0 0 22px; font-size: 1.125rem; line-height: 1.75; color: var(--soft); }
  .nexttrade__box { display: block; padding: 26px 20px; border-width: 2px; }
  .nexttrade .btn { margin-top: 22px; width: 100%; }

  /* ===== Portfolio: foto grandi, una per riga, scritte sempre visibili ===== */
  .portfolio__head { gap: 22px; margin-bottom: 18px; }
  .filters { width: 100%; gap: 10px; }
  .filter, .filter:hover { flex: 1 1 calc(50% - 5px); min-height: 3.25rem; padding: 10px 14px; border: 2px solid var(--line-hi); background: rgba(248,245,240,.05); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--white); }
  .filter.is-active, .filter.is-active:hover { border-color: var(--gold); background: var(--gold); color: #0a0a0a; }
  .portfolio__hint { display: block; margin: 0 0 14px; font-size: 1.0625rem; color: var(--soft); }
  .works { grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 14px; }
  .work--wide, .work--tall { grid-column: auto; grid-row: auto; }
  .work { animation: none; }   /* niente comparsa a scalini: le foto si vedono subito (anche quelle di "Vedi altre foto") */
  .work:hover .work__media { transform: none; }
  .work__ph { display: none; }
  .work__veil { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.05) 70%); }
  .work__cap { padding: 18px 20px; opacity: 1; transform: none; }
  .work__cat { margin-bottom: 4px; font-size: 1rem; font-weight: 600; letter-spacing: .03em; text-transform: none; color: var(--gold-lt); }
  .work__title { font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
  .work__loc { margin-top: 4px; font-size: 1.0625rem; color: var(--soft); }
  .work__plus { top: 14px; right: 14px; width: 3rem; height: 3rem; opacity: 1; transform: none; border: 2px solid rgba(248,245,240,.85); background: rgba(10,10,10,.6); }
  .work__plus::before { width: 18px; height: 2px; margin: -1px 0 0 -9px; }
  .work__plus::after  { width: 2px; height: 18px; margin: -9px 0 0 -1px; }
  /* Le foto sono tante: se ne vedono subito 6, le altre con "Vedi altre foto" (lo decide main.js). Sotto, la scorciatoia per i contatti. */
  .works.is-collapsed .work.is-more { display: none; }
  .works__after { display: grid; gap: 14px; margin-top: 18px; }

  /* ===== Prima / Dopo: barra grande + due pulsanti per chi fatica a trascinare ===== */
  .ba-wrap { margin-top: 52px; }
  .ba { border-width: 2px; }
  .ba__tag { top: 12px; padding: 8px 14px; background: rgba(10,10,10,.88); font-size: 1rem; font-weight: 600; letter-spacing: .03em; text-transform: none; }
  .ba__tag--before { left: 12px; color: var(--white); }
  .ba__tag--after  { right: 12px; color: var(--gold-lt); }
  .ba__handle { width: 3px; }
  .ba__handle::after { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 1.4rem; }
  .ba__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .ba__btn { min-height: 3.5rem; padding: 8px 12px; border: 2px solid var(--line-hi); background: rgba(248,245,240,.05); font-size: 1.0625rem; font-weight: 600; color: var(--white); }
  .ba__btn:active { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
  .ba__caption { margin-top: 14px; font-size: 1.0625rem; letter-spacing: 0; color: var(--soft); }

  /* ===== Perché sceglierci ===== */
  .values__quote { order: 0; }
  .values__list { margin-top: 24px; }
  .value { grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 0; border-color: var(--line); }
  .value:first-child { border-top-color: var(--line); }
  .value:hover { border-bottom-color: var(--line); }
  .value__num { font-size: 1.7rem; color: var(--gold); }
  .value__title { margin-bottom: 6px; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
  .value__desc { font-size: 1.125rem; line-height: 1.7; color: var(--soft); }
  .quote { padding: 34px 22px 28px; border: 2px solid rgba(201,169,110,.55); background: var(--grey-dk); }
  .quote p { margin: 14px 0 20px; font-size: 1.5rem; font-weight: 500; line-height: 1.5; color: var(--white); }
  .quote cite { font-size: 1.0625rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }

  /* ===== Contatti ===== */
  .contact__grid { gap: 36px; margin-top: 30px; }
  .info { gap: 16px; padding: 20px 0; border-bottom-color: var(--line); }
  .info > :not(.info__icon) { min-width: 0; flex: 1; }
  .info__icon { width: min(3.5rem, 60px); height: min(3.5rem, 60px); border: 2px solid rgba(201,169,110,.6); }
  .info__icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
  .info__label { margin-bottom: 4px; font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: none; }
  .info__value { font-size: 1.25rem; line-height: 1.5; overflow-wrap: anywhere; }
  .info__value a { display: inline-block; padding: 9px 0; color: var(--gold-lt); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .info:first-child .info__value a { font-size: min(1.6rem, 6vw); font-weight: 600; text-wrap: balance; }
  .info__value small { font-size: 1.0625rem; color: var(--soft); }
  .info__value .info__action { display: inline-flex; align-items: center; min-height: 3.25rem; margin-top: 10px; padding: 0 18px; border: 2px solid var(--gold); font-size: 1.0625rem; font-weight: 600; text-decoration: none; color: var(--white); }
  .social { flex-wrap: wrap; gap: 10px; padding-top: 20px; }
  .social a { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 18px; border: 2px solid var(--line-hi); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--white); }

  .form__row { margin-bottom: 22px; }
  .form__row label { margin-bottom: 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--white); }
  .form__row .req { color: var(--soft); font-weight: 400; opacity: 1; }
  .form__row input, .form__row select, .form__row textarea { min-height: 3.5rem; padding: 12px 14px; border: 2px solid var(--line-hi); background-color: rgba(248,245,240,.07); font-size: 1.125rem; font-weight: 400; line-height: 1.4; color: var(--white); }
  .form__row input:focus, .form__row select:focus, .form__row textarea:focus { border-color: var(--gold); background-color: rgba(248,245,240,.11); outline: 3px solid rgba(201,169,110,.5); outline-offset: 0; }
  .form__row [aria-invalid="true"] { border-color: #ff9d92; }
  .form__row ::placeholder { color: #bdb8ae; opacity: 1; }
  .form__row textarea { min-height: 9.5rem; }
  .form__row select { padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a96e' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px 12px; }
  .form__err { margin-top: 8px; font-size: 1.0625rem; font-weight: 600; line-height: 1.45; color: #ffb4aa; }
  .form__check { margin-bottom: 22px; }
  .check { gap: 14px; font-size: 1.0625rem; line-height: 1.6; color: var(--soft); }
  .check input { width: 1.9rem; height: 1.9rem; margin-top: 0; }
  .check a { color: var(--gold-lt); border-bottom: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .form__submit { min-height: 4rem; font-size: 1.1875rem; }
  .form__submit[disabled] { opacity: .75; }
  .form__status { padding: 18px; border-width: 2px; font-size: 1.125rem; line-height: 1.55; color: var(--white); }
  .form__status.is-error { color: #ffd6d1; }
  .form__note { font-size: 1rem; color: var(--soft); }

  /* La mappa: il testo si adatta, il riquadro cresce con lui */
  .map { height: auto; min-height: 340px; margin-top: 40px; }
  .map__consent { position: static; padding: 30px 20px; }
  .map__consent p { max-width: none; font-size: 1.0625rem; line-height: 1.6; color: var(--soft); }
  .map__addr { font-size: 1.6rem; font-weight: 500; line-height: 1.25; }

  /* ===== Fondo pagina ===== */
  .footer { padding: 48px var(--pad-x) 32px; }
  .footer__tag { max-width: none; font-size: 1.0625rem; line-height: 1.7; color: var(--soft); }
  .footer__h { margin-bottom: 8px; font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: none; }
  .footer__links a { display: flex; align-items: center; min-height: 3.25rem; margin: 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; color: var(--soft); }
  .footer__bottom { align-items: flex-start; font-size: 1rem; color: var(--soft); }
  .footer__bottom a { display: inline-flex; align-items: center; min-height: 3rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; color: var(--white); }

  /* ===== Scelta della grandezza del testo (nel menu e a fondo pagina) ===== */
  .textsize { display: block; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
  .textsize__label { display: block; margin-bottom: 10px; font-size: 1.0625rem; font-weight: 600; color: var(--gold-lt); }
  .textsize__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .textsize button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 4.5rem; padding: 6px 4px; border: 2px solid var(--line-hi); background: rgba(248,245,240,.05); font-size: min(1rem, 18px); font-weight: 500; line-height: 1.2; color: var(--white); }
  .textsize .ts__a { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1; }
  .textsize button:nth-child(2) .ts__a { font-size: 1.7rem; }
  .textsize button:nth-child(3) .ts__a { font-size: 2.1rem; }
  .textsize button[aria-pressed="true"] { border-color: var(--gold); background: rgba(201,169,110,.2); font-weight: 600; }
  .textsize button[aria-pressed="true"] .ts__w::before { content: '✓ '; color: var(--gold-lt); }

  /* ===== Barra fissa in basso: Chiama / WhatsApp ===== */
  .wa { display: none; }   /* il tondo WhatsApp è sostituito dalla barra */
  .actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(18,17,16,.98); border-top: 2px solid var(--gold); transition: transform .2s ease; }
  .actionbar__btn { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; min-height: 3.5rem; padding: 8px 10px; font-size: min(1.1875rem, 22px); font-weight: 600; line-height: 1.2; text-align: center; color: #0a0a0a; }
  .actionbar__btn svg { flex: none; width: 1.65rem; height: 1.65rem; fill: currentColor; }
  .actionbar__call { background: var(--gold); }
  .actionbar__wa { background: #25d366; }
  .actionbar__btn:active { filter: brightness(1.12); }
  body.is-typing .actionbar { transform: translateY(110%); }   /* si ritira mentre si scrive */

  /* ===== Galleria a tutto schermo ===== */
  .lightbox { display: flex; overflow-y: auto; background: #060606; }
  .lb__fig { grid-column: auto; width: 100%; max-height: none; margin: auto; gap: 14px; padding: 76px 14px calc(3.5rem + 40px + env(safe-area-inset-bottom, 0px)); }
  .lb__media { width: 100%; height: min(52vh, 460px); height: min(52svh, 460px); }
  .lb__cat { margin-bottom: 4px; font-size: 1rem; font-weight: 600; letter-spacing: .03em; text-transform: none; color: var(--gold-lt); }
  .lb__title { font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
  .lb__loc { margin-top: 4px; font-size: 1.0625rem; color: var(--soft); }
  .lb__close, .lb__nav { position: fixed; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; height: auto; min-height: 3.5rem; padding: 0 18px; border: 2px solid var(--line-hi); background: rgba(14,13,12,.94); font-size: 1.125rem; font-weight: 600; color: var(--white); }
  .lb__close { top: 12px; right: 12px; }
  .lb__nav { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: calc(50% - 18px); justify-self: auto; }
  .lb__prev { left: 12px; }
  .lb__next { right: 12px; }
  .lb__prev:hover, .lb__next:hover { transform: none; }
  .lb__lbl { display: inline; }
  .lb__ico { font-size: 1.9rem; font-weight: 400; line-height: 1; }
  .lb__count { position: fixed; top: 12px; left: 14px; right: auto; bottom: auto; display: flex; align-items: center; min-height: 3.5rem; font-size: 1.125rem; font-weight: 600; letter-spacing: 0; color: var(--white); }

  /* ===== Pagine legali e 404 ===== */
  .legal { padding-top: 112px; }
  .legal h1 { font-size: clamp(2.1rem, 9vw, 2.75rem); font-weight: 500; }
  .legal h2 { margin: 36px 0 12px; font-size: 1.7rem; font-weight: 600; }
  .legal p, .legal li { margin-bottom: 14px; font-size: 1.125rem; line-height: 1.75; color: var(--soft); }
  .legal a { border-bottom: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; color: var(--gold-lt); }
  .legal a[href^="tel:"] { white-space: nowrap; }
  .legal__date { font-size: 1rem; letter-spacing: 0; color: var(--soft); }
  .notfound h1 { font-weight: 500; }
  .notfound p { font-size: 1.125rem; }
}

/* Telefoni bassi (es. 320x568): prima schermata più compatta, così il pulsante "Contattaci" resta visibile */
@media (max-width: 860px) and (max-height: 640px) {
  .hero { padding-top: 92px; padding-bottom: 110px; }
  .hero__eyebrow { display: none; }
  .hero__title { font-size: min(2.2rem, 9.6vw); margin-bottom: 14px; }
  .hero__where { margin-top: 8px; font-size: 1.15rem; }
  .hero__sub { margin-bottom: 20px; font-size: 1.0625rem; line-height: 1.55; }
}

/* Telefoni (fino a 640px): una colonna sola */
@media (max-width: 640px) {
  .form__row--two { grid-template-columns: 1fr; gap: 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
}

/* 21 — MOVIMENTO RIDOTTO -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-left, .js .reveal-right { opacity: 1; transform: none; }
}
