/* 24/10/2026 · tre direzioni per home e /valtura (A Rivista, B Soglia, C Tavole). Parte comune: colori, caratteri, testata,
   le tre porte del contatto, il piede. Ogni pagina aggiunge il suo foglio dentro <style>. */
@import url(../../comune/fonti.css);
@font-face { font-family: "VALTURA Titoli"; src: url(../../comune/fonts/valtura-titoli.woff2) format("woff2"); font-display: swap; }

:root {
  --calce: #F5F1EB; --sabbia: #E6DCD0; --tortora: #6B5A48; --ombra: #2E2821; --mattone: #A88B70; --terra: #8A5A3C;
  --sans: "Jost", system-ui, sans-serif; --serif: "Instrument Serif", Georgia, serif; --titoli: "VALTURA Titoli", "Instrument Serif", Georgia, serif;
  --g: clamp(16px, 4vw, 64px); --curva: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--calce); color: var(--ombra); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* il segno V e la parola VALTURA (stessi file del sito) colorati con il colore del testo */
.segno { display: inline-block; aspect-ratio: 223.8 / 136.7; background: currentColor;
  -webkit-mask: url(../../img/tratto-segno.svg) center / contain no-repeat; mask: url(../../img/tratto-segno.svg) center / contain no-repeat; }
.parola { display: inline-block; aspect-ratio: 461 / 59; background: currentColor;
  -webkit-mask: url(../../progetti/casale-fioresta/img/soglia-parola.svg) center / contain no-repeat; mask: url(../../progetti/casale-fioresta/img/soglia-parola.svg) center / contain no-repeat; }

/* testata: segno + parola a sinistra, voci al centro, «Parliamone» a destra; bianca sul video, scura sulla carta */
.ts { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 var(--g); color: var(--calce); transition: color .5s var(--curva), background-color .5s var(--curva); }
.ts.carta { color: var(--ombra); background: color-mix(in srgb, var(--calce) 82%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ts__m { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ts__m .segno { width: 34px; } .ts__m .parola { width: 112px; }
.ts__v { display: flex; gap: 28px; font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ts__v a { text-decoration: none; opacity: .85; } .ts__v a:hover { opacity: 1; }
.ts__p { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid currentColor; border-radius: 2px;
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
@media (max-width: 860px) { .ts { height: 60px; } .ts__v { display: none; } .ts__m .parola { width: 92px; } .ts__p { padding: 0 14px; } }

/* il video d'apertura: sorgente scelta in base allo schermo (base.js), la locandina compare subito */
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* le tre porte: chi cerca, chi ha un edificio, chi collabora */
.porte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.porta { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 28px;
  text-decoration: none; overflow: hidden; color: var(--calce); isolation: isolate; }
.porta img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--curva); }
.porta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(28, 23, 18, .82), rgba(28, 23, 18, .15) 70%); }
.porta:hover img { scale: 1.05; }
.porta__n { font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.porta__t { margin: 12px 0 10px; font: 400 clamp(34px, 3.2vw, 48px)/1 var(--serif); }
.porta__p { max-width: 30ch; font-size: 16px; line-height: 1.5; opacity: .9; }
.porta__a { margin-top: 20px; font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 860px) { .porte { grid-template-columns: 1fr; } .porta { min-height: 300px; } }

/* piede: i dati societari obbligatori (art. 2250 c.c.) */
.piede { padding: 72px var(--g) 40px; background: var(--ombra); color: var(--sabbia); font-size: 14px; }
.piede__alto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(230, 220, 208, .18); }
.piede__alto .segno { width: 64px; color: var(--calce); }
.piede__firma { font: 400 clamp(28px, 3vw, 44px)/1.1 var(--serif); color: var(--calce); max-width: 14ch; }
.piede__col h4 { margin: 0 0 12px; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mattone); }
.piede__col p { line-height: 1.7; }
.piede__legale { padding-top: 24px; font-size: 12px; line-height: 1.6; opacity: .7; }

/* segnaposto: dove servono materiale o una conferma del cliente */
.manca { outline: 1px dashed var(--mattone); outline-offset: -1px; }
.nota-bozza { position: fixed; z-index: 60; left: 12px; bottom: 12px; padding: 8px 12px; background: var(--ombra); color: var(--calce);
  font: 500 12px/1.3 var(--sans); border-radius: 2px; opacity: .92; }
.nota-bozza a { color: var(--mattone); }

/* entrata morbida dei blocchi (base.js aggiunge .su quando entrano nello schermo) */
.ent { opacity: 0; translate: 0 28px; transition: opacity 1s var(--curva), translate 1.2s var(--curva); }
.ent.su { opacity: 1; translate: 0 0; }
:focus-visible { outline: 1.5px solid var(--mattone); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .ent { opacity: 1; translate: none; transition: none; } * { scroll-behavior: auto !important; } }
