/*
Theme Name: Rendering Evolution
Description: Tema leggero su misura, senza Elementor.
Author: Umberto Oldani
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: rendering-evolution
*/
:root {
  --bg: #0d0e0b;
  --bg-2: #171913;
  --ink: #f3f2ea;
  --ink-2: #b0b1a6;
  --line: rgba(255, 255, 255, .16);
  --green: #96c11f;
  --dark-on-green: #10130a;
  --hd-bg: #ffffff;
  --hd-ink: #1d1e19;
  --hd-ink-2: #5e5e5e;
  --green-ink: #5f7f10;
  --bg-soft: #d8d7cb;
  --font: "Archivo", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --sec: clamp(72px, 10vw, 150px);
  --t-1: clamp(2.2rem, 6.2vw, 6.2rem);
  --t-2: clamp(1.9rem, 4.2vw, 4rem);
  --t-3: clamp(1.4rem, 2vw, 1.9rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.btn { display: inline-block; background: var(--green); color: var(--dark-on-green); font-weight: 600; padding: 14px 24px; transition: background .2s; }
.btn:hover { background: #aad62c; }
.lnk { border-bottom: 1px solid var(--green); padding-bottom: 3px; font-weight: 500; }
.lab { font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 0 var(--gut); margin-bottom: 24px; }
section[id] { scroll-margin-top: 88px; }

/* Testata */
.hd { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--gut) 22px; background: linear-gradient(rgba(0, 0, 0, .78), transparent); transition: background .3s, padding .3s; }
.hd.on { background: rgba(13, 14, 11, .96); padding-block: 10px; }
.logo img { width: clamp(250px, 24vw, 330px); height: auto; }
.nav > ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a { font-weight: 500; font-size: 1rem; }
.nav > ul > li:not(.nav-cta) > a:hover { color: var(--green); }
.has-drop { position: relative; padding-block: 8px; }
.has-drop > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.drop { position: absolute; top: 100%; left: -18px; min-width: 270px; padding: 10px 0; background: var(--bg-2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 9px 18px; }
.drop a:hover { color: var(--green); }
.nav .btn { padding: 11px 18px; }
.burger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Apertura */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(5, 6, 4, .85)); }
.hero-t { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: clamp(28px, 6vw, 72px); }
h1 { font-size: var(--t-1); font-weight: 500; font-stretch: 110%; line-height: 1; letter-spacing: -.02em; max-width: 15em; }
.hero-t > p { margin-top: 18px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* Servizi */
.sv { padding-top: var(--sec); }
.s-list { display: flex; height: min(84vh, 780px); gap: 2px; }
.s-item { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .55s cubic-bezier(.2, .7, .2, 1); }
.s-item a { position: absolute; inset: 0; display: block; }
.s-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-item a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(5, 6, 4, .88)); }
.s-t { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 26px; }
.s-n { color: var(--green); font-size: .9rem; font-weight: 600; }
.s-t h3 { font-size: var(--t-3); font-weight: 500; font-stretch: 105%; line-height: 1.12; margin-top: 6px; }
.s-t p { max-height: 0; opacity: 0; overflow: hidden; color: var(--ink); transition: max-height .4s, opacity .3s, margin .3s; }
.s-list:hover .s-item:hover, .s-item:focus-within { flex-grow: 2.3; }
.s-item:hover .s-t p, .s-item:focus-within .s-t p { max-height: 7em; opacity: 1; margin-top: 10px; }

/* Lavori */
.works { padding-top: var(--sec); }
.full { position: relative; margin-bottom: 2px; }
.full > img { width: 100%; max-height: 100vh; object-fit: cover; }
figcaption { position: absolute; z-index: 1; left: var(--gut); bottom: 18px; font-size: .9rem; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
figure.full::after, .two figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(transparent, rgba(5, 6, 4, .62)); pointer-events: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 2px; }
.two figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.two img { width: 100%; height: 100%; object-fit: cover; }
.two figcaption { left: 20px; }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 4, .8), transparent 62%); pointer-events: none; }
.case-t { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: clamp(24px, 5vw, 64px); max-width: 26em; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.case-t h3 { font-size: var(--t-2); font-weight: 500; font-stretch: 108%; line-height: 1.05; margin: 8px 0 10px; }
.more { padding: 36px var(--gut) 0; margin-top: 0; }

/* Prima e dopo */
.fi { padding: var(--sec) var(--gut) 0; }
.fi-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 28px; }
.fi h2 { font-size: var(--t-2); font-weight: 500; font-stretch: 108%; line-height: 1.05; }
.fi-h p { color: var(--ink-2); max-width: 26em; }
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-l, .ba-r { position: absolute; top: 14px; padding: 4px 10px; background: rgba(0, 0, 0, .62); font-size: .85rem; pointer-events: none; }
.ba-l { left: 14px; }
.ba-r { right: 14px; }
.ba-grip { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; background: var(--green); pointer-events: none; }
.ba-grip::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--dark-on-green); display: grid; place-items: center; font-weight: 600; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba input:focus-visible ~ .ba-grip { outline: 2px solid #fff; }

/* AI */
.ai { padding: var(--sec) var(--gut) 0; }
.ai h2 { font-size: var(--t-2); font-weight: 500; font-stretch: 108%; line-height: 1.06; max-width: 19em; }
.ai ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; counter-reset: a; }
.ai-i { margin-top: 18px; max-width: 40em; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; }
.ai li { border-top: 1px solid var(--line); padding-top: 18px; }
.ai h3 { font-size: var(--t-3); font-weight: 500; font-stretch: 105%; line-height: 1.12; margin-bottom: 8px; }
.ai li p { color: var(--ink-2); line-height: 1.45; }

/* Cosa serve per un preventivo */
.st { --line: rgba(0, 0, 0, .2); --green-ink: #4a650a; --hd-ink-2: #4f4f4a; margin-top: var(--sec); padding: var(--sec) var(--gut); background: var(--bg-soft); color: var(--hd-ink); }
.st h2 { font-size: var(--t-2); font-weight: 500; font-stretch: 108%; line-height: 1.06; }
.st ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; counter-reset: st; }
.st li { counter-increment: st; border-top: 1px solid var(--line); padding-top: 18px; }
.st li::before { content: "0" counter(st); color: var(--green-ink); font-size: .9rem; font-weight: 600; }
.st h3 { font-size: var(--t-3); font-weight: 500; font-stretch: 105%; line-height: 1.12; margin: 8px 0 6px; }
.st p { color: var(--hd-ink-2); }
.st-c { margin-top: 40px; }

/* Marchi */
.mk { padding-top: var(--sec); }
.mk ul { display: grid; grid-template-columns: repeat(8, 1fr); gap: 32px 40px; align-items: center; padding: 0 var(--gut); }
.mk img { max-height: 44px; width: auto; max-width: 100%; margin: auto; filter: brightness(0) invert(1); opacity: .72; }

/* Contatti */
.ct { padding: var(--sec) var(--gut); background: var(--green); color: var(--dark-on-green); }
.ct h2 { font-size: var(--t-1); font-weight: 500; font-stretch: 110%; line-height: 1; letter-spacing: -.02em; }
.ct > p:not(.ct-l) { margin-top: 18px; font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.ct-l { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 40px; font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.4rem); overflow-wrap: anywhere; }
.ct-l a { border-bottom: 2px solid currentColor; }
.ct :focus-visible { outline-color: var(--dark-on-green); }

/* Piede */
.ft { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; padding: 32px var(--gut) 80px; font-size: .92rem; background: var(--hd-bg); color: var(--hd-ink-2); }
.ft img { width: 260px; }
.ft-l { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.ft-l a:hover { color: var(--green-ink); }

@media (max-width: 1100px) {
  .mk ul { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; display: none; background: var(--bg); padding: 88px var(--gut) 32px; overflow-y: auto; }
  .menu-open .nav { display: block; }
  .menu-open { overflow: hidden; }
  .logo { position: relative; z-index: 2; }
  .nav > ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav a { font-size: 1.5rem; }
  .has-drop { padding: 0; }
  .has-drop > a::after { display: none; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; background: none; padding: 4px 0 12px; min-width: 0; }
  .drop a { font-size: 1.05rem; color: var(--ink-2); padding: 7px 0; }
  .nav .btn { margin-top: 20px; font-size: 1.05rem; padding: 14px 24px; }
  .s-list { display: block; height: auto; }
  .s-item { margin-bottom: 2px; aspect-ratio: 4 / 3; }
  .s-t p { max-height: none; opacity: 1; margin-top: 8px; }
  .s-t { left: 16px; right: 16px; bottom: 18px; }
  .ai ol, .st ol { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
}
/* Tablet in verticale: servizi su due colonne, preventivo su tre */
@media (min-width: 701px) and (max-width: 900px) {
  .s-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .s-item { margin-bottom: 0; aspect-ratio: 1 / 1; }
  .ai ol, .st ol { grid-template-columns: repeat(3, 1fr); gap: 28px; }}
@media (hover: none) {
  .s-t p { max-height: none; opacity: 1; margin-top: 8px; }
}
@media (max-width: 700px) {
  .two { grid-template-columns: 1fr; }
  .full > img { min-height: 62vw; }
  .case > img { min-height: 118vw; object-position: 62% center; }
  .case::after { background: linear-gradient(transparent 45%, rgba(5, 6, 4, .88)); }
  .ft-l { margin-left: 0; }
  .mk ul { gap: 28px 24px; }
  .mk img { max-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* WordPress: barra di amministrazione */
.admin-bar .hd { top: 32px; }
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
@media (max-width: 900px) { .admin-bar .nav { padding-top: 134px; } }

/* Pagine generiche */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: calc(var(--sec) + 48px) var(--gut) var(--sec); }
.page-wrap h1 { font-size: var(--t-2); margin-bottom: .6em; }
.entry > * + * { margin-top: 1.1em; }
.entry a:not(.btn):not(.wp-block-button__link) { border-bottom: 1px solid var(--green); }
.entry h2 { font-size: var(--t-2); font-weight: 500; font-stretch: 108%; line-height: 1.06; }
.entry h3 { font-size: var(--t-3); font-weight: 500; font-stretch: 105%; line-height: 1.12; }
.entry ul, .entry ol { padding-left: 1.2em; list-style: revert; }

/* Blocchi di WordPress: stessa resa dell'anteprima */
main .wp-block-image { margin: 0; }
main .wp-block-image img { vertical-align: top; }
main [id] { scroll-margin-top: 88px; }
.hero .wp-block-image img, .s-item .wp-block-image img, .ba .wp-block-image img, .two .wp-block-image img { height: 100%; }
.wp-block-buttons.row { gap: 16px 28px; }
main .wp-block-button__link { display: inline-block; border-radius: 0; background: var(--green); color: var(--dark-on-green); font-size: 1em; font-weight: 600; padding: 14px 24px; transition: background .2s; }
main .wp-block-button__link:hover { background: #aad62c; color: var(--dark-on-green); }
main .wp-block-button.lnk .wp-block-button__link { background: none; color: inherit; border-bottom: 1px solid var(--green); padding: 0 0 3px; font-weight: 500; }

/* Servizi a blocchi */
.s-list { list-style: none; }
.s-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(5, 6, 4, .88)); pointer-events: none; }
.s-item:hover .s-t p:not(.s-n) { max-height: 7em; opacity: 1; margin-top: 10px; }
.s-t p.s-n { max-height: none; opacity: 1; margin: 0; overflow: visible; color: var(--green); }

/* Marchi a blocchi */
.mk-list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 32px 40px; align-items: center; padding: 0 var(--gut); }

/* Progetti a blocchi */
.case figure img { width: 100%; max-height: 100vh; object-fit: cover; }
.case-t .tag { display: block; }
.case-t h3 a { color: inherit; }

/* Prima e dopo a blocchi */
.ba { --p: 50%; }
.ba figure { position: static; }
.ba figure.ba-top { position: absolute; inset: 0; }

/* Tre colonne: AI e preventivo */
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.g3 > * { border-top: 1px solid var(--line); padding-top: 18px; }
.ai .g3 h3 { margin-bottom: 8px; }
.ai .g3 p { color: var(--ink-2); line-height: 1.45; }
.st .g3 { counter-reset: st; }
.st .g3 > * { counter-increment: st; }
.st .g3 > *::before { content: "0" counter(st); color: var(--green-ink); font-size: .9rem; font-weight: 600; }

@media (max-width: 1100px) { .mk-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .s-item:hover .s-t p:not(.s-n) { margin-top: 8px; }
  .g3 { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
}
@media (min-width: 701px) and (max-width: 900px) { .g3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (max-width: 700px) {
  .case figure img { min-height: 118vw; object-position: 62% center; }
  .mk-list { gap: 28px 24px; }
}

/* Scheda progetto */
.hero-t .tag { margin-bottom: 10px; }
.p-body { padding: var(--sec) var(--gut) 0; }
.p-body > p, .p-body > h2, .p-body > h3, .p-body > ul, .p-body > ol { max-width: 44em; }
.p-body > figure, .p-body > .wp-block-image, .p-body > .wp-block-gallery, .p-body > .wp-block-video { margin-inline: calc(var(--gut) * -1); }
.p-body > * + figure, .p-body > * + .wp-block-image, .p-body > * + .wp-block-gallery { margin-top: 32px; }
.p-body > figure + figure, .p-body > .wp-block-image + .wp-block-image { margin-top: 2px; }
.p-body img { width: 100%; }
.p-more { padding-bottom: var(--sec); }

/* Elenco progetti */
.p-archive { padding: calc(var(--sec) + 48px) 0 var(--sec); }
.p-archive h1 { font-size: var(--t-2); padding: 0 var(--gut); margin-bottom: 32px; }
.p-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); }
.p-card { position: relative; aspect-ratio: 16 / 9; max-height: 100vh; width: 100%; overflow: hidden; }
.p-card a { position: absolute; inset: 0; display: block; }
.p-card img { width: 100%; height: 100%; object-fit: cover; }
.p-card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(5, 6, 4, .85)); }
.p-card-t { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: clamp(24px, 5vw, 64px); }
.p-card h2 { font-size: var(--t-2); font-weight: 500; font-stretch: 108%; line-height: 1.05; margin-top: 8px; }
@media (max-width: 900px) { .p-card { aspect-ratio: 4 / 3; } }
@media (max-width: 700px) { .p-card { aspect-ratio: 4 / 5; } }

/* Galleria e immagini affiancate */
.p-gal { padding-top: var(--sec); }
.p-gal .lab { max-width: 1240px; margin-left: auto; margin-right: auto; }
.re-gal { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.re-gal .wp-block-image { margin-bottom: clamp(48px, 8vw, 120px); }
.re-gal .wp-block-image:last-child { margin-bottom: 0; }
.re-gal img { display: block; align-self: center; width: auto; max-width: 100%; height: auto; max-height: 88vh; margin: 0 auto; }
.p-body > .p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 2px calc(var(--gut) * -1) 0; }
.p-body > .p-two + figure { margin-top: 2px; }
.p-archive .p-more { padding-bottom: 0; }
.wp-lightbox-overlay .scrim { background-color: #0a0a08 !important; }
.wp-lightbox-overlay .close-button { fill: #fff !important; }
@media (max-width: 700px) {
  .re-gal img { max-height: none; }
  .p-body > .p-two { grid-template-columns: 1fr; }
}

/* Pagine dei servizi */
.p-body > .re-gal { padding: 0; }
.p-body > .p-sec { margin-top: var(--sec); }
.p-body .g3 h3 { margin-bottom: 8px; }
.p-body .g3 p { color: var(--ink-2); line-height: 1.45; }
.p-body > .re-links { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 32px; font-size: var(--t-3); }
.p-body > .p-lead { max-width: 34em; margin-bottom: var(--sec); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; }
.p-body > .wp-block-embed { max-width: 1240px; margin: 0 auto clamp(32px, 5vw, 72px); }
.wp-block-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.p-body > .fi-n { margin-bottom: 24px; color: var(--ink-2); } .tour-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .tour-nav button { min-height: 44px; padding: 10px 18px; background: none; border: 1px solid var(--ink-2); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; } .tour-nav button:hover { border-color: var(--ink); } .tour-nav button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Grafica: meno verde, titoli più misurati */
:root { --t-1: clamp(2.1rem, 4.4vw, 4.4rem); --t-2: clamp(1.7rem, 3vw, 2.8rem); --t-3: clamp(1.25rem, 1.7vw, 1.6rem); }
body:not(.elementor-page) > .elementor { display: none; }
.chaty-cta-main .on-hover-text { display: none !important; }
.ct { background: var(--bg-2); color: var(--ink); }
.ct h2 { font-size: var(--t-2); font-stretch: 108%; line-height: 1.06; letter-spacing: 0; }
.ct-l a { border-bottom: 1px solid var(--green); }
.ct :focus-visible { outline-color: var(--green); }

/* Servizi in home: testo sempre visibile, tutta la scheda è un collegamento */
.s-t { pointer-events: none; }
.s-t p { max-height: none; opacity: 1; margin-top: 8px; }
.s-item a::after { background: none; }
.s-item img { transition: transform .5s; }
.s-item:hover img { transform: scale(1.03); }
@media (min-width: 901px) {
  .s-list { height: min(72vh, 640px); }
  .s-list:hover .s-item:hover, .s-item:focus-within { flex-grow: 1; }
}

/* Progetti in home: due schede affiancate */
.two > .case { margin-bottom: 0; }
.two .case figure a { display: block; height: 100%; }
.two .case figure img { min-height: 0; max-height: none; }
.two .case::after { background: linear-gradient(transparent 20%, rgba(5, 6, 4, .62) 52%, rgba(5, 6, 4, .92)); }
.case-t { pointer-events: none; }
.case-t a { pointer-events: auto; }
.two .case-t { left: 24px; right: 24px; bottom: 24px; }
.two .case-t h3 { font-size: var(--t-3); }

/* I quattro passaggi */
.g4 { grid-template-columns: repeat(4, 1fr); }
.st-n { margin-top: 40px; max-width: 44em; }
.p-body .st .g3 p { color: var(--hd-ink-2); }
.entry > .st { margin-top: var(--sec); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
@media (max-width: 1100px) { .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .g4 { grid-template-columns: 1fr; } }

/* Chi sono */
.me { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: var(--sec) var(--gut) 0; }
.me h2 { font-size: var(--t-2); font-weight: 500; font-stretch: 108%; line-height: 1.06; }
.me p { max-width: 36em; margin-top: 14px; color: var(--ink-2); }
.me img { width: 100%; height: auto; }
.me .wp-block-buttons { margin: 24px 0 0; }
.entry > .me { padding: 0; align-items: center; }
.entry > .p-sec { margin-top: var(--sec); }
.entry > .me p:first-child { margin-top: 0; }
.entry ul.re-list { list-style: none; padding: 0; columns: 2; column-gap: 40px; }
.entry ul.re-list li { padding: 8px 0; border-top: 1px solid var(--line); break-inside: avoid; }

/* Pagina preventivo */
.pv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); }
.pv .pv-i { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.pv .pv-i h3 { font-size: var(--t-3); margin-bottom: 4px; }
.pv .pv-i p { color: var(--ink-2); line-height: 1.45; }
.pv-a > p { margin-top: 24px; }
.re-form { color-scheme: dark; }
.re-form label { display: block; margin-top: 18px; font-size: .95rem; color: var(--ink-2); }
.re-form label:first-of-type { margin-top: 0; }
.re-form input:not([type=checkbox]), .re-form select, .re-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: inherit; }
.re-form input:focus, .re-form select:focus, .re-form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; }
.re-form .re-check { display: flex; gap: 10px; align-items: flex-start; }
.re-form .re-check input { margin-top: 4px; flex: none; }
.re-form .btn { margin-top: 24px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.re-form .re-hp { position: absolute; left: -9999px; }
.re-msg { margin-bottom: 24px; padding: 14px 16px; border-left: 3px solid var(--green); background: var(--bg-2); }
.faq { max-width: 44em; }
.faq h3 { margin-top: 28px; font-size: var(--t-3); }
.faq p { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 800px) {
  .pv { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .me { grid-template-columns: 1fr; }
  .me img { max-width: none; }
  .entry ul.re-list { columns: 1; }
}

/* HOME NERA: prova del 10/11/2026, disattivata (body.re-nera non esiste). Per riattivarla: body.re-nera al posto di body.re-nera */
body.re-nera { --bg: #000; --bg-2: #111; --ink: #fff; --ink-2: #b4b4ae; }
body.re-nera .hd { background: linear-gradient(rgba(0, 0, 0, .62), transparent); }
body.re-nera .hd.on { background: rgba(0, 0, 0, .94); }
body.re-nera .nav > ul > li:not(.nav-cta) > a:hover { color: var(--ink-2); }
body.re-nera .nav .btn, body.re-nera main .wp-block-button__link, body.re-nera .re-form .btn { background: #fff; color: #000; }
body.re-nera .nav .btn:hover, body.re-nera main .wp-block-button__link:hover, body.re-nera .re-form .btn:hover { background: #d9d9d4; color: #000; }
body.re-nera main .wp-block-button.lnk .wp-block-button__link { background: none; color: inherit; border-bottom: 1px solid currentColor; }
body.re-nera .lnk { border-bottom: 0; padding-bottom: 0; }
body.re-nera #servizi, body.re-nera #contatti { scroll-margin-top: 90px; }
.mg-h { position: relative; display: flex; align-items: flex-end; min-height: 100svh; overflow: hidden; }
.mg-h figure { position: absolute; inset: 0; margin: 0; }
.mg-h img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-h::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .1) 72%), linear-gradient(to right, rgba(0, 0, 0, .5), transparent 70%); pointer-events: none; }
.mg-t { position: relative; z-index: 2; padding: 0 var(--gut) clamp(44px, 8vh, 84px); }
.mg-t h1 { max-width: none; margin-bottom: 18px; font-size: clamp(1rem, 1.3vw, 1.25rem); font-weight: 500; font-stretch: 100%; line-height: 1.3; letter-spacing: 0; }
.mg-l { margin: 0; padding: 0; list-style: none; }
.mg-l a { display: inline-block; color: #fff; font-size: clamp(1.9rem, 5vw, 4.7rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; transition: opacity .2s; }
.mg-l a:hover { opacity: .7; }
.mg-p { padding: var(--sec) var(--gut) 0; }
.mg-p > h2 { margin-bottom: 32px; font-size: var(--t-2); font-weight: 600; font-stretch: 100%; line-height: 1.1; }
.mg-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
.mg-i:first-child { grid-column: 1 / -1; }
.mg-i figure { margin: 0; overflow: hidden; }
.mg-i img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.mg-i:first-child img { aspect-ratio: 16 / 8; }
.mg-i:hover img { transform: scale(1.02); }
.mg-i h3 { margin-top: 14px; font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 600; font-stretch: 100%; line-height: 1.2; }
.mg-i p { margin-top: 4px; color: var(--ink-2); font-size: .98rem; }
.mg-p .row { margin-top: 36px; }
body.re-nera .st { --line: rgba(255, 255, 255, .18); --green-ink: #fff; --hd-ink: #fff; --hd-ink-2: #b4b4ae; background: #111; color: #fff; }
.mg-c { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(40px, 7vw, 120px); align-items: start; margin-top: var(--sec); padding: var(--sec) var(--gut); background: #111; }
.mg-c h2 { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 700; font-stretch: 100%; line-height: 1.05; letter-spacing: -.02em; }
.mg-c-a > p:not(.ct-l) { max-width: 26em; margin-top: 16px; color: var(--ink-2); }
.mg-c-a .ct-l { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 28px; font-size: 1.05rem; font-weight: 400; overflow-wrap: anywhere; }
.mg-c-a .ct-l a { border-bottom: 1px solid currentColor; }
@media (max-width: 900px) { .mg-c { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .mg-g { grid-template-columns: 1fr; gap: 32px; }
  .mg-i img, .mg-i:first-child img { aspect-ratio: 4 / 3; }
}

/* HOME A di nuovo: prova del 10/11/2026, vale solo per la home */
.ct .pv { align-items: start; }
.ct .pv-h { margin-top: 56px; font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ct .pv-h + .pv-i { margin-top: 16px; }

/* Testata più alta (11/11/2026), su tutte le pagine */
@media (min-width: 901px) {
  body .hd { padding-block: 24px 28px; }
  body .hd.on { padding-block: 16px; }
  body .nav .btn { padding: 12px 20px; }
}

/* Marchi più stretti (11/11/2026), per ora solo in home */
body.home .mk { padding-top: calc(var(--sec) / 2); }
body.home .mk + .works { padding-top: calc(var(--sec) / 2); }

/* Progetti su telefono e tablet verticale: testo sotto la foto (11/11/2026), per ora solo in home */
@media (max-width: 900px) {
  body.home .two .case::after { content: none; }
  body.home .two .case-t { position: static; max-width: none; padding: 16px var(--gut) 32px; }
}

/* Collegamenti con una riga sola (11/11/2026), per ora solo in home */
body.home .wp-block-button.lnk { border-bottom: 0; padding-bottom: 0; }

/* Pagina Progetti come la home (11/11/2026) */
.p-two .case-t h2 { font-size: var(--t-3); font-weight: 500; font-stretch: 108%; line-height: 1.05; margin: 8px 0 10px; }
.p-two .case-t h2 a { color: inherit; }
@media (max-width: 900px) {
  .p-two .case::after { content: none; }
  .p-two .case-t { position: static; max-width: none; padding: 16px var(--gut) 32px; }
}
/* Altri lavori a griglia, con l'immagine grande al clic */
.p-gal .re-gal { max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0; }
.p-gal .re-gal .wp-block-image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.p-gal .re-gal img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
@media (max-width: 1024px) { .p-gal .re-gal { grid-template-columns: repeat(2, 1fr); } }

/* Caso studio: scheda, griglie di immagini e video (11/11/2026) */
.p-body > .re-scheda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; max-width: 1240px; margin: 0; padding: 0; }
.re-scheda > div { border-top: 1px solid var(--line); padding-top: 14px; }
.re-scheda dt { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.re-scheda dd { margin: 6px 0 0; line-height: 1.4; }
.p-body > .re-gal3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 32px calc(var(--gut) * -1) 0; }
.re-gal3 .wp-block-image { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.re-gal3 img { height: 100%; object-fit: cover; }
.p-body > .p-two .wp-block-image { margin: 0; }
.p-body > * + .p-two { margin-top: 32px; }
.p-body > .wp-block-video { margin-top: 32px; }
.p-body > .wp-block-video video { display: block; width: 100%; }
.p-body > .p-sec + p { margin-top: 12px; }
@media (max-width: 900px) { .p-body > .re-scheda { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .p-body > .re-gal3 { grid-template-columns: 1fr; } .p-body > .re-scheda { gap: 20px 24px; } }

/* Immagini dei casi studio distanziate (11/11/2026, richiesta di Umberto): dentro i margini, non più attaccate */
.p-body > .p-two, .p-body > .re-gal3 { gap: 20px; margin-inline: 0; }
.p-body > .p-two + figure { margin-top: 20px; }
@media (max-width: 600px) { .p-body > .p-two, .p-body > .re-gal3 { gap: 12px; } }
.single-progetto .p-body > figure, .single-progetto .p-body > .wp-block-image, .single-progetto .p-body > .wp-block-video { margin-inline: 0; }
.single-progetto .p-body > figure + figure, .single-progetto .p-body > .wp-block-image + .wp-block-image { margin-top: 20px; }

/* Introduzione chiara dei casi studio (18/11/2026, richiesta di Umberto): scheda e «Il progetto» su fondo chiaro */
.p-body > .st.p-intro:first-child { margin-top: calc(var(--sec) * -1); }
.p-intro > .re-scheda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; max-width: 1240px; margin: 0; padding: 0; }
.p-intro .re-scheda dt { color: var(--hd-ink-2); }
.p-intro > .p-sec { margin-top: var(--sec); }
.p-intro > p { max-width: 44em; margin-top: 12px; color: var(--hd-ink); }
.p-intro > .g3 { margin-top: 48px; }
.p-body > .p-two + .p-two { margin-top: 20px; }
@media (max-width: 900px) { .p-intro > .re-scheda { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .p-intro > .re-scheda { gap: 20px 24px; } .p-body > .p-two + .p-two { margin-top: 12px; } }

/* Didascalie sotto le immagini dei casi studio (18/11/2026, richiesta di Umberto) */
.single-progetto .p-body .wp-block-image figcaption { position: static; margin: 10px 0 0; font-size: .9rem; line-height: 1.4; color: var(--ink-2); text-shadow: none; }
.single-progetto .p-body > .p-two:has(figcaption) { row-gap: 28px; }
.single-progetto .p-body > .p-two:has(figcaption) + .p-two { margin-top: 28px; }
/* Blocco chiaro dei casi studio più compatto (18/11/2026, ok di Umberto) */
.p-body > .st.p-intro { padding-top: calc(var(--sec) / 2); }
.p-intro > .p-sec { margin-top: calc(var(--sec) * 2 / 3); }
/* Collegamenti nel blocco chiaro: riga verde scura, visibile sul fondo chiaro (19/11/2026) */
.p-intro a:not(.btn):not(.wp-block-button__link) { border-bottom-color: var(--green-ink); }
/* Pagine servizio impostate come i casi studio (19/11/2026, ok di Umberto) */
.page .p-body > figure, .page .p-body > .wp-block-image { margin-inline: 0; }
.p-body > .re-gal4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0 0; padding: 0; }
.re-gal4 .wp-block-image { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.re-gal4 img { width: 100%; height: 100%; object-fit: cover; }
.p-body > .re-gal4 + figure, .page .p-body > .p-two + figure { margin-top: 20px; }
.page .p-body > .p-sec + figure { margin-top: 32px; }
@media (max-width: 900px) { .p-body > .re-gal4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .p-body > .re-gal4 { gap: 12px; } .p-body > .re-gal4 + figure, .page .p-body > .p-two + figure { margin-top: 12px; } }
.entry .case-t a:not(.btn) { border-bottom: 0; }
.page .p-intro > p:first-child { max-width: 34em; margin-top: 0; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; }
/* Chiusura con testo sopra il pulsante del preventivo (19/11/2026, ok di Umberto) */
.p-end { padding: var(--sec) var(--gut); }
.p-end h2 { font-size: var(--t-2); font-stretch: 108%; line-height: 1.06; letter-spacing: 0; }
.p-end > p { max-width: 34em; margin-top: 12px; color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.4; }
.p-end .p-more { padding: 0; margin-top: 28px; }
/* Video nelle pagine: didascalia sotto il video; menu leggibile anche su aperture chiare (19/11/2026) */
.p-body .wp-block-video { position: relative; }
.p-body .wp-block-video video { display: block; width: 100%; }
.p-body .wp-block-video figcaption { position: static; margin: 10px 0 0; font-size: .9rem; line-height: 1.4; color: var(--ink-2); text-shadow: none; }
.page .p-body > .wp-block-video { margin-inline: 0; }
.page .p-body > .wp-block-video + .wp-block-video { margin-top: 32px; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 220px; background: linear-gradient(rgba(5, 6, 4, .5), transparent); pointer-events: none; }

/* Progetto da solo nella sezione Progetti: tutta la larghezza (19/11/2026, Tour 360°) */
.two.p-two > .case:only-child { grid-column: 1 / -1; }
.two.p-two > .case:only-child figure { aspect-ratio: 2 / 1; }
.two.p-two > .case:only-child figure img { height: 100%; object-fit: cover; }

/* Tour 360° alto come le immagini, 3:2 (19/11/2026, richiesta di Umberto); sul telefono resta 420px */
@media (min-width: 601px) {
  .p-body .wpvr-master-container { height: auto !important; aspect-ratio: 3 / 2; }
  .p-body .wpvr-master-container > .pano-wrap { height: 100% !important; }
}

/* Confronti prima/dopo con immagini 3:2 (19/11/2026, Fotoinserimenti interni) */
.ba.ba-32 { aspect-ratio: 3 / 2; }

/* Chi sono: apertura con la foto di Umberto, sul telefono e tablet verticale inquadra il viso (19/11/2026) */
@media (max-width: 900px) { .page-id-26784 .hero img { object-position: 64% center; } }

/* PROVA sfondo grigio scuro al posto del nero (19/11/2026, richiesta di Umberto). Per tornare al nero: togliere questo blocco (prima --bg #0d0e0b, --bg-2 #171913). La testata dopo lo scorrimento resta nera. */
:root { --bg: #232323; --bg-2: #2d2d2d; }

/* Hero di servizi, Chi sono e progetti più bassa: 70% dello schermo invece di tutto lo schermo (19/11/2026, richiesta di Umberto). Per tornare indietro: togliere questo blocco. */
.hero { height: 70vh; height: 70svh; min-height: 460px; max-height: 760px; }

/* Schede progetto con blocco chiaro (Loft, Soggiorno, 19/11/2026): prima frase grande come nelle pagine dei servizi */
.single-progetto .p-intro > p:first-child { max-width: 34em; margin-top: 0; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; }

/* Preventivo (/contattaci/, 19/11/2026, grafica casi studio): «Cosa serve» nel riquadro chiaro con 01 02 03; domande frequenti a due colonne */
.page-id-26785 .pv { align-items: start; }
.page-id-26785 .pv-a { --line: rgba(0, 0, 0, .2); --green-ink: #4a650a; --hd-ink-2: #4f4f4a; padding: clamp(28px, 4vw, 48px); background: var(--bg-soft); color: var(--hd-ink); counter-reset: pv; }
.page-id-26785 .pv-a h2, .page-id-26785 .pv-a h3 { color: var(--hd-ink); }
.page-id-26785 .pv-a .pv-i { counter-increment: pv; }
.page-id-26785 .pv-a .pv-i::before { content: "0" counter(pv); display: block; margin-bottom: 6px; color: var(--green-ink); font-size: .9rem; font-weight: 600; }
.page-id-26785 .pv-a .pv-i p { color: var(--hd-ink-2); }
.page-id-26785 .pv-a a { color: var(--hd-ink); border-bottom-color: var(--green-ink); overflow-wrap: anywhere; }
.page-id-26785 .pv-a { min-width: 0; }
.page-id-26785 .faq { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: clamp(32px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.page-id-26785 .faq h3, .page-id-26785 .faq p { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.page-id-26785 .faq h3 { grid-column: 1; }
.page-id-26785 .faq p { grid-column: 2; }
@media (max-width: 700px) {
  .page-id-26785 .faq { grid-template-columns: 1fr; }
  .page-id-26785 .faq h3 { padding-bottom: 6px; }
  .page-id-26785 .faq p { grid-column: 1; padding-top: 0; border-top: 0; }
}

/* Preventivo: hero bassa (circa metà della normale) così il modulo resta vicino all'inizio (19/11/2026, immagine scelta da Umberto: interno 14 vista 5) */
.page-id-26785 .hero { height: 50vh; height: 50svh; min-height: 300px; max-height: 420px; }
.page-id-26785 .hero img { object-position: center 35%; }
/* Modulo preventivo: pulsante un po' più staccato dalla privacy (19/11/2026, Umberto) */
.re-form .btn { margin-top: 36px; }
/* Preventivo: sfumatura scura a sinistra dietro il titolo (19/11/2026, confermata da Umberto) */
.page-id-26785 .hero::after { background: linear-gradient(90deg, rgba(5, 6, 4, .88) 0%, rgba(5, 6, 4, .6) 30%, rgba(5, 6, 4, .15) 60%, transparent 80%), linear-gradient(transparent 45%, rgba(5, 6, 4, .6)); }
/* Preventivo: spazio tra l'ultima domanda e il footer (19/11/2026, Umberto) */
.page-id-26785 .p-body { padding-bottom: 100px; }

/* Pagina Progetti con la grafica dei casi studio (19/11/2026, ok di Umberto): frase sotto il titolo, sezioni con titolo grande, tre progetti in riga */
.p-archive { padding-bottom: 0; }
.p-archive .pa-h { padding: 0 var(--gut); }
.p-archive .pa-h h1 { padding: 0; margin-bottom: 0; }
.p-archive .pa-h p { max-width: 34em; margin-top: 16px; color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; }
.p-archive .p-body { padding-top: 0; }
.p-archive .p-gal { padding-top: 0; }
.two.p-two.pa-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1199px) { .two.p-two.pa-3 { grid-template-columns: 1fr; } }
/* Altri lavori: griglia regolare 3:2 (19/11/2026, Umberto: «per adesso imposta solo immagini a 3:2 così la griglia rimane regolare»; le immagini le rifarà lui tutte con lo stesso taglio) */
.p-archive .p-gal .re-gal .wp-block-image { aspect-ratio: 3 / 2; }
/* HOME, ritocchi del 21/11/2026 (richieste di Umberto) */
/* Apertura: sfumatura scura a sinistra dietro il titolo, come nella pagina Preventivo; resta quella in basso */
/* Hero: scuro sfumato da sinistra, fondo chiaro (25/11/2026). Il Preventivo ha la sua regola. */
.hero::after { background: linear-gradient(90deg, rgba(5, 6, 4, .85) 0%, rgba(5, 6, 4, .62) 30%, rgba(5, 6, 4, .2) 58%, transparent 78%), linear-gradient(transparent 60%, rgba(5, 6, 4, .35)); }
/* Marchi: Costruzioni Immobiliari e +store più grandi (gli altri restano a 44px, 34 sul telefono) */
body.home .mk img.wp-image-26714 { max-height: 56px; }
body.home .mk img.wp-image-26718 { max-height: 84px; }
@media (max-width: 700px) {
  body.home .mk img.wp-image-26714 { max-height: 44px; }
  body.home .mk img.wp-image-26718 { max-height: 52px; }
}
/* Progetti: sfumatura sotto il testo più bassa, copre meno foto (prima partiva dal 20%) */
body.home .two .case::after { background: linear-gradient(transparent 48%, rgba(5, 6, 4, .6) 72%, rgba(5, 6, 4, .9)); }
/* Pulsanti sotto i progetti centrati */
body.home #progetti .more { justify-content: center; }
/* Pulsanti sotto i progetti centrati anche in verticale (Umberto, 21/11/2026): stesso spazio sopra e sotto, striscia più bassa (prima 38px sopra e 146 sotto) */
body.home #progetti .more { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
body.home #progetti + .st { margin-top: 0; }
/* Footer a tre colonne (21/11/2026, ok di Umberto): chi sono, servizi e pagine, contatti; sotto una riga con privacy e cookie. Vale per tutto il sito */
.ft { display: block; padding: clamp(48px, 6vw, 80px) var(--gut) 80px; }
.ft-c { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.ft-id p { margin-top: 18px; line-height: 1.6; }
.ft-h { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hd-ink); margin-bottom: 14px; }
.ft-col li + li { margin-top: 8px; }
.ft-col li.ft-sp { margin-top: 20px; }
.ft-col a:not(.btn) { overflow-wrap: anywhere; }
.ft-col a:not(.btn):hover, .ft-b a:hover { color: var(--green-ink); }
.ft-col .btn { margin-top: 20px; }
.ft-b { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, .12); font-size: .85rem; }
@media (max-width: 900px) { .ft-c { grid-template-columns: 1fr 1fr; } .ft-id { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ft-c { grid-template-columns: 1fr; gap: 32px; } .ft img { width: 220px; } }
/* Home, Chi sono e contatti (Umberto, 21/11/2026): sotto la foto lo stesso spazio che c'è sopra (prima la foto toccava la fine della sezione); contatti su un grigio un po' più chiaro (prima #2d2d2d, come i campi del modulo, che ora risultano più scuri del fondo) */
body.home .me { padding-bottom: var(--sec); }
body.home #contatti { background: #383838; }
/* Tutto il sito (21/11/2026, Umberto su Visualizzazione 3D): sfumatura dei casi studio affiancati bassa come in Home; striscia finale «Parliamo del tuo progetto» più bassa (prima 146px sopra e sotto) */
.two .case::after { background: linear-gradient(transparent 48%, rgba(5, 6, 4, .6) 72%, rgba(5, 6, 4, .9)); }
.p-end { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
/* Video di apertura (23/11/2026, Animazioni 3D): sopra la foto in evidenza, sotto la sfumatura e il titolo. Chi ha disattivato le animazioni vede la foto */
.hero .hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero .hero-v { display: none; } }
/* Marchi fuori dalla home (24/11/2026, Chi sono): in Chi sono la striscia non sta in .mk, quindi i marchi uscivano a colori e di misure diverse. Stesse regole della home */
.p-body .mk-list img { max-height: 44px; width: auto; max-width: 100%; margin: auto; filter: brightness(0) invert(1); opacity: .72; }
.p-body .mk-list img.wp-image-26714 { max-height: 56px; }
.p-body .mk-list img.wp-image-26718 { max-height: 84px; }
@media (max-width: 700px) {
  .p-body .mk-list img { max-height: 34px; }
  .p-body .mk-list img.wp-image-26714 { max-height: 44px; }
  .p-body .mk-list img.wp-image-26718 { max-height: 52px; }
}
/* Pagina non trovata (404.php, 24/11/2026) */
.nf .nf-t { max-width: 34em; color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.4; }
.nf .nf-l { list-style: none; padding: 0; margin: 32px 0 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.nf .nf-l a { border-bottom: 1px solid var(--green); padding-bottom: 2px; }
.nf { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; box-sizing: border-box; }

/* Pagina Progetti con apertura come le altre pagine (24/11/2026, immagine scelta da Umberto: interno 14 vista 1) */
.p-archive { padding-top: 0; }
.p-archive .hero h1 { font-size: var(--t-1); padding: 0; margin-bottom: 0; }
.p-archive .hero + .p-body { padding-top: var(--sec); }
/* Progetti: «Casi studio» più vicino all'apertura (24/11/2026, Umberto). Prima si sommavano lo spazio del blocco e quello del titolo (2 x --sec); ora uno solo, come tra le altre sezioni. */
.p-archive .hero + .p-body > .p-sec:first-child { margin-top: 0; }
/* Striscia finale «Parliamo del tuo progetto» su fondo chiaro SOLO su Zymbo (postid-26772) e, dal 24/11 sera, Casa Sunday (postid-26727), le pagine che finiscono con una sezione scura (24/11/2026, Umberto): si confondeva con le sezioni grigie sopra. Nelle altre pagine resta grigia (sopra c'è «Come lavoro», già chiara). Stessi colori del blocco chiaro .st; il footer resta bianco. */
.postid-26772 .p-end, .postid-26727 .p-end { --ink: var(--hd-ink); --ink-2: #4f4f4a; --green-ink: #4a650a; background: var(--bg-soft); color: var(--hd-ink); }
.postid-26772 .p-end h2, .postid-26727 .p-end h2 { color: var(--hd-ink); }
.postid-26772 .p-end > p, .postid-26727 .p-end > p { color: #4f4f4a; }
.postid-26772 .p-end .lnk, .postid-26727 .p-end .lnk { color: var(--hd-ink); border-bottom-color: var(--green-ink); }
/* Zymbo e Casa Sunday: spazio grigio sotto l'ultima sezione (Animazioni / Tour 360°), uguale a quello sopra il titolo (var(--sec)), prima della striscia chiara (24/11/2026, Umberto). */
.postid-26772 .p-body, .postid-26727 .p-body { padding-bottom: var(--sec); }
/* Logo con payoff più grande in testata, perché il payoff si legga (24/11/2026, Umberto). */
.logo img { width: clamp(270px, 30vw, 400px); }
@media (min-width: 901px) { body .hd { padding-block: 0; min-height: 104px; } body .hd.on { padding-block: 0; min-height: 88px; } }
/* Velocità (25/11/2026, ok di Umberto): il plugin Chaty scarica su ogni pagina /images/whatsapp.png (171 KB) come motivo di sfondo del modulo WhatsApp, visibile al 3,5 %. Senza, il modulo resta uguale. */
.chaty-whatsapp-form:before { background-image: none !important; }
/* Hero su tablet e telefono (25/11/2026, ok di Umberto): la sfumatura da sinistra copriva metà foto. Fino a 1024 px solo uno scuro dal basso, per leggere le scritte; sul computer resta quella da sinistra. Vale anche per il Preventivo. */
@media (max-width: 1024px) { .hero::after, .page-id-26785 .hero::after { background: linear-gradient(transparent 35%, rgba(5, 6, 4, .5) 65%, rgba(5, 6, 4, .8)); } }
/* Preventivo (25/11/2026, ok di Umberto): con due colonne il riquadro «Cosa serve» parte all'altezza del campo Nome; la frase «Scrivimi o chiamami» resta sopra il modulo. 46 px = distanza fissa fra l'inizio del modulo e il campo Nome. */
@media (min-width: 801px) { .page-id-26785 .pv { row-gap: 0; } .page-id-26785 .pv-f { display: contents; } .page-id-26785 .pv-f > * { grid-column: 1; } .page-id-26785 .pv-a { grid-column: 2; grid-row: 2 / span 2; margin-top: 46px; } }
