/* BK Edilcostruzioni Fratelli Alia · sito 1 · copia di RISE (fb-196Z37qJku) */
@font-face { font-family: "Instrument Sans"; src: url(../font/InstrumentSans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url(../font/Lora.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --bianco: #fff; --freddo: #f5f5f8; --grigio: #f4f4f7; --nero: #101414; --spento: #bdbdc1; --spento-n: #6d7373; --rosso: #e31e24;
  --lato: clamp(18px, 5.4vw, 108px); --sans: "Instrument Sans", system-ui, "Segoe UI", sans-serif; --serif: "Lora", Georgia, serif;
  --t-grande: clamp(34px, 3.95vw, 78px); --t-medio: clamp(18px, 1.62vw, 31px); --alto: 100vh; --alto: 100svh;
  /* per le pagine legali e la carta dei cookie */
  --carta: #fff; --inchiostro: #101414; --brace: #e31e24; --fondo: #f5f5f8; --bastone: var(--sans);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bianco); }
body { font-family: var(--sans); color: var(--nero); background: var(--bianco); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main { position: relative; z-index: 2; background: var(--bianco); }
.cont { padding-inline: var(--lato); }
.due { display: grid; grid-template-columns: 43.2% 1fr; }
.chiaro { background: var(--bianco); } .grigio { background: var(--grigio); } .nero { background: var(--nero); color: #fff; }
h2 { font-weight: 600; font-size: var(--t-grande); line-height: 1.02; letter-spacing: -.048em; text-wrap: balance; }
.duetoni { color: var(--spento); } .duetoni b { color: var(--nero); font-weight: inherit; }
.nero .duetoni, #invito .duetoni { color: var(--spento-n); } .nero .duetoni b, #invito .duetoni b { color: #fff; }
.occhiello { font-size: clamp(13px, .86vw, 16px); font-weight: 600; letter-spacing: -.01em; padding-top: .5em; }
.medio { font-size: var(--t-medio); line-height: 1.22; letter-spacing: -.025em; font-weight: 500; text-wrap: pretty; } .medio b { font-weight: 600; }
.duetoni.medio, .sotto.duetoni { color: #8d8d92; } .nero .duetoni.medio { color: #868c8c; }
.pill { display: inline-flex; align-items: center; gap: 1em; background: var(--nero); color: #fff; font-size: clamp(14px, .92vw, 16px); font-weight: 500; letter-spacing: -.01em; padding: .86em 1.5em .9em; border-radius: 99px; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.pill .fr { width: 1.5em; height: auto; transition: transform .3s cubic-bezier(.2,.7,.2,1); } .pill:hover .fr { transform: translateX(.35em); }
.pill:hover { background: #2a3030; } .pill.bianca { background: #fff; color: var(--nero); } .pill.bianca:hover { background: #e2e2e6; }
.pill.chiara { background: #fff; color: var(--nero); } .pill.chiara:hover { background: var(--nero); color: #fff; }
.pill.filo { background: none; border: 1px solid rgba(255,255,255,.62); color: #fff; } .pill.filo:hover { background: #fff; color: var(--nero); }

/* ---------- 1 · caricamento ---------- */
#velo { display: none; }
.carica #velo, #velo.via { display: block; position: fixed; inset: 0; z-index: 90; }
#velo .carta { position: absolute; inset: 0; background: var(--freddo); clip-path: inset(0); }
.carica body { overflow: hidden; }
#velo .nome { position: absolute; left: 50%; top: 48%; width: 46vw; transform: translate(-50%, -50%); transform-origin: 0 0; }
#velo svg { width: 100%; height: auto; overflow: visible; } #velo .filo { fill: none; stroke: #dcdce2; stroke-width: 7; }
#velo .pieno { position: absolute; inset: 0; fill: var(--nero); clip-path: inset(100% 0 0 0); }
#velo .conta { position: absolute; right: 9.2vw; bottom: 8.4vh; display: flex; font-weight: 700; font-size: clamp(26px, 3.1vw, 58px); line-height: 1; letter-spacing: -.02em; height: 1em; overflow: hidden; }
#velo .conta i { display: block; width: .64em; text-align: center; transition: transform .1s linear; } #velo .conta b { display: block; will-change: transform; } #velo .conta span { display: block; height: 1em; font-style: normal; }
#velo.via { pointer-events: none; }

/* ---------- testata ---------- */
#testa { position: fixed; inset: 0 0 auto; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: clamp(12px, 1.5vw, 26px) var(--lato); transition: transform .5s cubic-bezier(.3,.7,.2,1), opacity .4s; }
#testa.giu { transform: translateY(-110%); opacity: 0; } #testa.carta { background: rgba(255,255,255,.96); }
#testa .marchio img { width: clamp(138px, 11.8vw, 224px); } #testa .marchio { justify-self: start; }
#testa nav { display: flex; gap: 2.1em; font-size: clamp(13px, .86vw, 15.5px); font-weight: 500; letter-spacing: -.01em; } #testa nav a { padding: 8px 0; position: relative; }
#testa nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s; } #testa nav a:hover::after { transform: scaleX(1); }
#testa .pill { justify-self: end; padding-block: .68em .72em; } #apri { display: none; }
#foglio { position: fixed; inset: 0; z-index: 55; background: var(--nero); color: #fff; padding: 110px var(--lato) 30px; display: flex; flex-direction: column; justify-content: space-between; } #foglio[hidden] { display: none; }
#foglio nav { display: grid; gap: 4px; font-size: clamp(30px, 9vw, 44px); letter-spacing: -.045em; line-height: 1.16; font-weight: 500; } #foglio p { display: grid; gap: 8px; font-size: 17px; }

/* ---------- 3-6 · l'eroe ---------- */
#inizio { height: 430vh; position: relative; background: linear-gradient(#9fb6d6 60%, #fff 90%); }
#inizio .palco { position: sticky; top: 0; height: var(--alto); overflow: hidden; background: #a9bcd8; contain: paint; }
#inizio .cielo img { position: absolute; left: 0; top: 0; width: 100%; height: 108%; object-fit: cover; max-width: none; }
#inizio .casa, #inizio .dentro { position: absolute; left: 50%; top: 0; width: 100vw; margin-left: -50vw; transform-origin: 50% 0; will-change: transform; }
#inizio .casa img { width: 100%; max-width: none; } #inizio .casa picture { display: block; transition: transform 1s cubic-bezier(.16,.84,.26,1); } .carica #inizio .casa picture { transform: translateY(17%); } #inizio .nuv, #inizio .cielo { transition: opacity .6s; }
#inizio .nuv { position: absolute; width: 50vw; max-width: none; bottom: -6vh; will-change: transform; } #inizio .nuv.sx { left: -19vw; } #inizio .nuv.dx { right: -19vw; }
#inizio .banco { position: absolute; left: -15vw; width: 130vw; max-width: none; top: 100%; will-change: transform; }
#inizio .banco img { width: 100%; max-width: none; } #inizio .banco::after { content: ""; position: absolute; left: 0; right: 0; top: 98%; height: 100vh; background: #fff; }
#inizio .neve { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,0) 52%, #fff 92%); opacity: 0; }
#inizio .titolo { position: absolute; left: 0; right: 0; top: 24.5%; text-align: center; will-change: transform, opacity; padding-inline: 18px; }
#inizio h1 { font-weight: 600; letter-spacing: -.055em; line-height: 1.05; font-size: clamp(42px, 7.35vw, 146px); }
#inizio .grande { display: inline-block; overflow: hidden; padding: .04em .04em .16em; margin-bottom: -.12em; } #inizio .grande i { font-style: normal; display: inline-block; will-change: transform; } .carica #inizio .grande i { transform: translateY(112%); }
#inizio .grande.parte i { transition: transform .62s cubic-bezier(.16,.84,.26,1); transform: none !important; }
#inizio .titolo p { font-size: clamp(15px, 1.52vw, 29px); letter-spacing: -.025em; font-weight: 600; margin: .5em 0 1.5em; color: #51585f; } #inizio .titolo p b { color: var(--nero); }
#inizio .titolo p, #inizio .titolo .pill { transition: opacity .5s .34s, transform .6s .34s cubic-bezier(.2,.7,.2,1); } .carica #inizio .titolo p, .carica #inizio .titolo .pill { opacity: 0; transform: translateY(14px); }
#inizio .bruma { position: absolute; width: 25vw; max-width: none; top: 17.5%; opacity: .82; will-change: transform; } #inizio .bruma.uno { left: -3vw; } #inizio .bruma.due2 { right: -1.5vw; top: 23.5%; width: 22vw; }
#inizio .contorno { position: absolute; left: 50%; top: 50%; width: var(--lnome); transform: translate(-50%, -50%); fill: none; stroke: #fff; stroke-width: 9; opacity: 0; overflow: visible; }
#inizio .pietra { --w: var(--lnome); position: absolute; inset: 0; opacity: 0; -webkit-mask: url(../img/nome.svg) 50% 50% / var(--w) auto no-repeat; mask: url(../img/nome.svg) 50% 50% / var(--w) auto no-repeat; }
#inizio .pietra::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(34,14,4,0) calc(50% + var(--lnome) * .115), rgba(34,14,4,.62) calc(50% + var(--lnome) * .14)); }
#inizio .dentro { aspect-ratio: 2600 / 820; background: url(../img/casa.webp) 0 0 / 100% 100% no-repeat; }
#inizio { --lnome: min(51vw, 106vh); }

/* ---------- 7-8 ---------- */
#chi { padding-top: clamp(40px, 9vh, 120px); }
.lungo { font-size: clamp(25px, 2.86vw, 56px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; text-wrap: pretty; }
#cresce { position: relative; margin-top: clamp(34px, 7vh, 96px); } #cresce .fermo { position: relative; height: min(82vh, 50vw); margin-inline: var(--lato); }
#cresce .quadro { position: absolute; inset: 0; clip-path: inset(0 0 0 88%); background: var(--nero); overflow: hidden; }
#cresce video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } #cresce .quadro::after { content: ""; position: absolute; inset: 0; background: rgba(10,16,22,.30); pointer-events: none; }
#cresce .gioca { position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px; display: grid; place-items: center; } .gioca svg { width: 24px; fill: #fff; transition: transform .3s; } .gioca:hover svg { transform: scale(1.35); }

/* ---------- 9 · le frecce ---------- */
#frecce { padding: clamp(50px, 9vh, 110px) 0 clamp(70px, 14vh, 190px); } .centro { text-align: center; }
.frecce { --p: 14.6vw; --w: 17.8vw; --h: 22.6vw; position: relative; width: calc(3 * var(--p) + var(--w)); height: var(--h); margin: clamp(26px, 5vh, 62px) auto clamp(24px, 4.4vh, 54px); }
.fr4 { position: absolute; top: 0; width: var(--w); height: 100%; clip-path: polygon(0 0, 59% 0, 100% 50%, 59% 100%, 0 100%, 41% 50%); overflow: hidden; will-change: transform; } .fr4:nth-child(2) { left: var(--p); } .fr4:nth-child(3) { left: calc(2 * var(--p)); } .fr4:nth-child(4) { left: calc(3 * var(--p)); }
.fr4 div { position: absolute; inset: 0 -18%; will-change: transform; } .fr4 img { width: 100%; height: 100%; object-fit: cover; }
.sotto { font-size: clamp(18px, 1.86vw, 36px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; max-width: 24em; margin-inline: auto; text-wrap: balance; }

/* ---------- 10 · come funziona ---------- */
#come { padding: clamp(20px, 5vh, 70px) 0 clamp(80px, 17vh, 220px); } #come .fissa { align-self: start; } #come .fissa .pill { margin-top: 1.9em; }
.come { font-size: clamp(16px, 1.62vw, 31px); letter-spacing: -.03em; font-weight: 600; margin-bottom: 2.1em; }
.passi { display: grid; gap: clamp(26px, 3.6vw, 70px); } .passi li { display: grid; grid-template-columns: clamp(34px, 3.9vw, 76px) 1fr; } .passi span { font-size: 12px; color: #8d8d92; padding-top: .7em; font-weight: 500; }
.passi p { font-size: clamp(20px, 2.42vw, 47px); line-height: 1.14; letter-spacing: -.042em; font-weight: 600; text-wrap: pretty; }

/* ---------- 11 · la squadra ---------- */
#squadra { padding-bottom: clamp(80px, 16vh, 210px); } #squadra .alto { margin-top: clamp(22px, 3.4vw, 64px); }
.larga { aspect-ratio: 1.41; overflow: hidden; } .larga img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; } .piccola { width: 62%; aspect-ratio: 1.5; overflow: hidden; margin-top: 15vw; will-change: transform; } .piccola img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
#squadra .medio { margin: 1.5em 0 1.4em; max-width: 34em; }

/* ---------- 12 · prima e dopo ---------- */
#prima { padding: clamp(60px, 12vh, 150px) 0 clamp(70px, 14vh, 170px); }
.pd { display: grid; grid-template-columns: 51.6% 1fr; gap: 0 10.6%; margin-top: clamp(26px, 4vw, 70px); align-items: start; }
.pd-foto { position: relative; aspect-ratio: 1.28; overflow: hidden; background: #dcdce2; touch-action: pan-y; } .pd-foto figure { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; } .pd-foto figure.on { opacity: 1; }
.pd-foto img { width: 100%; height: 100%; object-fit: cover; } .pd-foto .sopra { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.maniglia { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 54px; margin-left: -27px; cursor: ew-resize; touch-action: none; } .maniglia::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: #fff; } .maniglia svg { position: absolute; left: 5px; top: 50%; margin-top: -22px; width: 44px; height: 44px; padding: 14px 8px; background: #fff; border-radius: 50%; }
.et { position: absolute; bottom: 14px; background: #fff; font-size: 13px; font-weight: 600; padding: .42em .9em .48em; border-radius: 99px; pointer-events: none; } .et.p { left: 14px; } .et.d { right: 14px; }
.barra { border-top: 1px solid var(--nero); padding-top: clamp(14px, 1.5vw, 28px); display: flex; justify-content: space-between; align-items: center; } .numeri { display: flex; gap: 4px; }
.numeri button { width: 40px; height: 40px; border-radius: 50%; font-size: 14px; font-weight: 500; color: #8d8d92; border: 1px solid transparent; transition: border-color .3s, color .3s; } .numeri button[aria-pressed=true] { border-color: var(--nero); color: var(--nero); } .numeri button:hover { color: var(--nero); }
.virgo { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 3.6vw, 70px); line-height: .5; height: .36em; }
.pd-testo { position: relative; } blockquote { display: none; margin-top: clamp(26px, 4.4vw, 90px); } blockquote.on { display: block; animation: sale .55s cubic-bezier(.2,.7,.2,1) both; } @keyframes sale { from { opacity: 0; transform: translateY(16px); } }
blockquote p { font-family: var(--serif); font-size: clamp(18px, 1.86vw, 36px); line-height: 1.22; letter-spacing: -.02em; text-wrap: pretty; } blockquote footer { margin-top: 1.5em; font-family: var(--serif); text-transform: uppercase; font-size: clamp(12px, .8vw, 15px); letter-spacing: .02em; }

/* ---------- 13 · i lavori ---------- */
#lavori { padding-top: clamp(60px, 11vh, 140px); } .righe { margin-top: clamp(40px, 6vw, 110px); }
.riga a { position: relative; display: grid; grid-template-columns: calc(var(--lato) + 5.6vw) 18.6vw 1fr auto; align-items: center; min-height: clamp(170px, 32vh, 400px); padding: 1.4vw var(--lato) 1.4vw 0; overflow: hidden; }
.riga .fondo { position: absolute; inset: 0; clip-path: inset(50% 0); transition: clip-path .6s cubic-bezier(.3,.75,.2,1); } .riga .fondo img { width: 100%; height: 100%; object-fit: cover; } .riga .fondo::after { content: ""; position: absolute; inset: 0; background: rgba(12,16,16,.62); }
.riga .num { position: relative; justify-self: start; margin-left: var(--lato); width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; display: grid; place-items: center; font-size: 12px; } .riga .txt { position: relative; font-size: clamp(14px, 1.12vw, 21px); line-height: 1.42; letter-spacing: -.01em; color: rgba(255,255,255,.82); }
.riga h3 { position: relative; padding-left: 6.4vw; font-weight: 400; font-size: clamp(54px, 10vw, 196px); letter-spacing: -.06em; line-height: 1; } .riga h3 span { position: relative; display: inline-block; padding-bottom: .06em; } .riga h3 span::after { content: ""; position: absolute; left: .03em; right: 0; bottom: 0; height: .022em; min-height: 2px; background: #fff; transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.3,.75,.2,1); }
.riga .freccia { position: relative; opacity: 0; transform: translateX(-28px); transition: opacity .4s, transform .55s cubic-bezier(.2,.7,.2,1); } .riga .freccia svg { width: clamp(46px, 5.2vw, 100px); }
.riga.viva .fondo { clip-path: inset(0); } .riga.viva h3 span::after { transform: scaleX(1); } .riga.viva .freccia { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .riga a:hover .fondo, .riga a:focus-visible .fondo { clip-path: inset(0); } .riga a:hover h3 span::after { transform: scaleX(1); } .riga a:hover .freccia { opacity: 1; transform: none; } }
.invito { padding-block: clamp(30px, 5vw, 96px) clamp(60px, 17vh, 210px); } .invito .medio { font-size: clamp(20px, 2.36vw, 46px); letter-spacing: -.042em; line-height: 1.12; max-width: 19em; margin-bottom: 1em; } .altri .pill { margin-top: 1.5em; } .altri .medio { max-width: 33em; }
.schede { display: flex; gap: 1.5vw; margin-top: clamp(26px, 3.4vw, 64px); padding-bottom: clamp(60px, 11vh, 140px); } .scheda { position: relative; flex: 1 1 0; min-width: 0; height: 25.4vw; overflow: hidden; transition: flex-grow .7s cubic-bezier(.2,.7,.2,1); }
.scheda .dett { position: absolute; z-index: 1; left: 7.6%; right: 7.6%; bottom: calc(8.4% + 4.4em); font-size: clamp(15px, 1.12vw, 21px); line-height: 1.3; letter-spacing: -.015em; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .6s cubic-bezier(.2,.7,.2,1); } @media (hover: hover) and (pointer: fine) { .scheda:hover { flex-grow: 1.24; } .scheda:hover .dett { opacity: 1; transform: none; } } @media (hover: none), (pointer: coarse) { .scheda .dett { opacity: 1; transform: none; } } .scheda img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); } .scheda:hover img { transform: scale(1.05); }
.scheda::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8,12,12,.62), rgba(8,12,12,.12) 55%, rgba(8,12,12,.5)); } .scheda h3 { position: absolute; z-index: 1; left: 7.6%; top: 8%; font-weight: 500; font-size: clamp(24px, 2.1vw, 42px); line-height: 1.02; letter-spacing: -.04em; } .scheda .pill { position: absolute; z-index: 1; left: 7.6%; bottom: 8.4%; } .scheda:hover .pill { background: #fff; color: var(--nero); }

/* ---------- 15 · il giornale ---------- */
#giornale { padding: clamp(60px, 11vh, 140px) 0 clamp(50px, 10vh, 130px); } #giornale .due .pill { margin-top: 1.3em; } #giornale .due .medio { max-width: 30em; }
.posts { margin-top: clamp(38px, 5vw, 96px); display: grid; gap: clamp(30px, 2.7vw, 52px); } .post { display: grid; grid-template-columns: 1fr 50.8%; gap: 0 5%; } .post .foto { aspect-ratio: 1.94; overflow: hidden; } .post .foto img { width: 100%; height: 100%; object-fit: cover; }
.post .testo { display: flex; flex-direction: column; align-items: flex-start; } .data { font-size: clamp(13px, .9vw, 16px); font-weight: 600; } .post h3 { margin-top: auto; font-weight: 500; font-size: clamp(22px, 2.16vw, 42px); line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; padding-top: 1em; } .corto { margin: .8em 0 1.5em; font-size: clamp(14px, .96vw, 18px); line-height: 1.4; font-weight: 500; max-width: 33em; } .post .leggi { margin-bottom: auto; display: inline-flex; align-items: center; gap: .8em; font-size: clamp(14px, .96vw, 17px); font-weight: 600; padding: 8px 0; } .leggi .fr { width: 1.5em; transition: transform .3s cubic-bezier(.2,.7,.2,1); } .leggi:hover .fr { transform: translateX(.35em); }
/* le foto che si scoprono allargandosi, come nel reel */
.js .scopri { clip-path: inset(0 0 0 var(--s, 0%)); } .js .scopri[data-da=sx] { clip-path: inset(0 var(--s, 0%) 0 0); }

/* ---------- 16 · l'invito ---------- */
#invito { position: relative; height: 118vh; background: var(--nero); color: #fff; overflow: hidden; } #invito .sfondo, #invito .sfondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } #invito .sfondo::after { content: ""; position: absolute; inset: 0; background: rgba(14,18,18,.78); }
#invito .mezzo { position: sticky; top: 36vh; text-align: center; padding: 40vh 18px 0; } #invito .scrive { display: block; width: fit-content; margin-inline: auto; font-weight: 500; font-size: clamp(27px, 3.5vw, 68px); letter-spacing: -.045em; line-height: 1.1; } .js #invito .scrive { clip-path: inset(-10% var(--s, 0%) -10% 0); } #invito .duetoni { color: #b9bebe; } #invito .pill { margin-top: 1.7em; display: inline-flex; }

/* ---------- 17 · il piede ---------- */
footer#contatti { --wf: min(100vw - 2 * var(--lato), 54vh * 2.256); position: sticky; bottom: var(--giu, 0px); z-index: 1; min-height: var(--alto); background: var(--nero); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 4vh, 54px) 0 clamp(12px, 2vh, 24px); }
.su { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0 clamp(24px, 4vw, 80px); align-items: start; } #scrivi label { font-size: clamp(17px, 1.42vw, 27px); letter-spacing: -.025em; font-weight: 500; } #scrivi div { display: flex; border-bottom: 1px solid rgba(255,255,255,.34); margin-top: 1.2em; max-width: 36vw; } #scrivi input { flex: 1; min-width: 0; padding: .7em 0; font-size: 16px; outline: 0; } #scrivi input::placeholder { color: #7d8484; } #scrivi div:focus-within { border-color: #fff; } #scrivi button { width: 50px; display: grid; place-items: center; } #scrivi .fr { width: 24px; }
.su dl { display: grid; gap: clamp(7px, 1.1vh, 16px); font-size: clamp(14px, .95vw, 17px); line-height: 1.4; } .su dt { color: #8a9191; font-size: 12px; } .su nav { display: grid; font-size: clamp(16px, 1.3vw, 25px); letter-spacing: -.025em; line-height: 1.36; } .su a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.su.cont, .legale { width: var(--wf); margin-inline: auto; padding-inline: 0 !important; }
.enorme { width: var(--wf); max-width: none; margin: auto auto 0; padding-top: 2vh; fill: #fff; opacity: var(--o, 1); } .legale { display: flex; flex-wrap: wrap; gap: 6px 2.4em; padding: 1.6vh var(--lato) 0; font-size: 12px; color: #8a9191; } .legale :last-child { margin-left: auto; } .legale a:hover, .legale button:hover { color: #fff; } .legale button { font-size: 12px; }

/* ---------- pezzi fissi ---------- */
#wa { position: fixed; right: clamp(14px, 1.6vw, 28px); bottom: clamp(14px, 1.6vw, 28px); z-index: 50; width: 54px; height: 54px; border-radius: 50%; background: var(--nero); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255,255,255,.28); transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .3s; } #wa svg { width: 30px; } #wa.giu { transform: translateY(90px); opacity: 0; pointer-events: none; }
#cinema { border: 0; background: none; margin: auto; max-height: 94vh; padding: 0; } #cinema::backdrop { background: rgba(8,12,12,.92); } #cinema video { height: min(84vh, 1280px); width: auto; max-width: 92vw; background: #000; } #cinema button { display: block; margin: 12px auto 0; color: #fff; font-size: 15px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 99px; }
.calmo #cresce .quadro { clip-path: none; } .calmo #inizio { height: var(--alto); } .calmo #velo { display: none; }

/* ---------- mezze misure ---------- */
@media (max-width: 1080px) { #testa nav { gap: 1.2em; } #testa nav a:nth-child(2) { display: none; } }
@media (max-width: 900px) and (min-width: 761px) { #testa nav a:nth-child(5) { display: none; } }

/* ---------- telefono ---------- */
@media (max-width: 760px) {
  :root { --t-grande: clamp(32px, 9.4vw, 46px); --t-medio: 18px; }
  .due { grid-template-columns: 1fr; gap: 18px; }
  #velo .nome { width: 76vw; } #velo .conta { right: 24px; bottom: 26px; font-size: 30px; }
  #testa { grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px 18px; } #testa nav { display: none; } #testa .marchio img { width: 138px; } #testa .pill { font-size: 14px; padding: .62em 1.1em .66em; } #apri { display: block; font-size: 14px; font-weight: 600; padding: 10px 4px 10px 10px; } #testa.scura { color: #fff; } #testa.scura .pill { background: #fff; color: var(--nero); }
  #inizio { height: 380vh; --lnome: 84vw; } #inizio .titolo { top: 17%; } #inizio h1 { font-size: 14.6vw; line-height: .98; } #inizio .grande { max-width: 7.2em; } #inizio .titolo p { font-size: 16px; margin: .9em auto 1.4em; max-width: 19em; line-height: 1.3; }
  #inizio .casa, #inizio .dentro { width: 230vw; margin-left: -128vw; } #inizio .dentro { background-image: url(../img/casa-m.webp); } #inizio .nuv { width: 96vw; bottom: 2vh; } #inizio .nuv.sx { left: -52vw; } #inizio .nuv.dx { right: -52vw; } #inizio .banco { width: 250vw; left: -75vw; }
  #inizio .bruma { width: 62vw; top: 23%; opacity: .62; } #inizio .bruma.uno { left: -34vw; } #inizio .bruma.due2 { right: -32vw; top: 14%; width: 56vw; }
  #chi { padding-top: 40px; } .lungo { font-size: 28px; } #cresce { margin-top: 30px; } #cresce .fermo { height: 62vh; }
  .frecce { --p: 21.6vw; --w: 27.4vw; --h: 38vw; } #come .fissa { position: static; margin-bottom: 26px; } .passi p { font-size: 23px; } .passi li { grid-template-columns: 38px 1fr; }
  #squadra .alto { display: flex; flex-direction: column-reverse; gap: 0; } .piccola { width: 78%; margin: 26px 0 0 auto; }
  .pd { grid-template-columns: 1fr; gap: 26px; } .pd-foto { aspect-ratio: .94; } blockquote { margin-top: 30px; } blockquote p { font-size: 20px; line-height: 1.3; } .numeri button { width: 42px; height: 42px; } .pd-testo { min-height: 300px; }
  .riga a { grid-template-columns: auto 1fr; gap: 14px 16px; padding: 26px 18px 28px; min-height: 0; } .riga .num { margin: 0; grid-row: 1; } .riga h3 { padding: 0; grid-row: 1; font-size: 17.5vw; line-height: .9; } .riga .txt { grid-column: 1 / 3; max-width: 30em; font-size: 15px; } .riga .freccia { display: none; } .riga { border-top: 1px solid rgba(255,255,255,.13); } .righe { margin-top: 40px; }
  .schede { flex-direction: column; gap: 14px; } .scheda { flex: none; height: auto; aspect-ratio: 1.22; } .scheda h3 { font-size: 30px; } .scheda .dett { font-size: 16px; }
  .post { grid-template-columns: 1fr; gap: 18px; } .post .foto { grid-row: 1; aspect-ratio: 1.5; } .post h3 { font-size: 26px; padding-top: .4em; } .corto { font-size: 16px; }
  #invito { height: 108vh; } #invito .scrive { font-size: 33px; max-width: 9.4em; }
  footer#contatti { --wf: calc(100vw - 2 * var(--lato)); position: relative; bottom: auto; padding-top: 44px; min-height: 0; gap: 46px; } .su { grid-template-columns: 1fr 1fr; gap: 34px 18px; } #scrivi, .su dl { grid-column: 1 / 3; } #scrivi div { max-width: none; } .su nav { grid-row: auto; grid-column: 1; font-size: 18px; line-height: 1.75; } .su nav + nav { grid-column: 2; } .su dl { gap: 14px; font-size: 17px; } .su dt { font-size: 13px; } .legale :last-child { margin: 0; } .legale { padding-bottom: 74px; gap: 12px 22px; font-size: 13px; } .legale button { font-size: 13px; }
}
@media (max-width: 760px) and (max-height: 700px) { #inizio .titolo { top: 14%; } #inizio h1 { font-size: 13.4vw; } }

/* ---------- la carta dei cookie, vestita come il sito ---------- */
#lg-banner { background: rgba(236,237,242,.86); font-family: var(--sans); letter-spacing: -.01em; }
#lg-banner .lg-carta { border: 0; outline: 0; border-radius: 26px; text-align: left; width: min(520px, 100%); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 90px -30px rgba(16,20,20,.35); }
#lg-banner .lg-marchio { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: -.02em; text-transform: none; } #lg-banner .lg-marchio small { display: inline; font-family: var(--sans); font-size: 15px; letter-spacing: -.02em; text-transform: none; margin: 0 0 0 .4em; color: #8d8d92; } #lg-banner .lg-marchio::after { display: none; }
#lg-banner .lg-tit { font-family: var(--sans); font-weight: 600; letter-spacing: -.05em; text-transform: none; font-size: clamp(32px, 4vw, 46px); margin: 22px 0 12px; } #lg-banner .lg-testo { margin: 0; max-width: none; font-size: 16px; line-height: 1.4; color: var(--nero); }
#lg-banner .lg-righe { font-size: 14.5px; line-height: 1.4; margin: 18px 0 24px; color: #5d6365; } #lg-banner .lg-righe div { padding-left: 0; } #lg-banner .lg-righe div::before { display: none; }
#lg-banner .lg-bottoni button, #lg-banner #lg-salva { font-family: var(--sans); text-transform: none; letter-spacing: -.01em; font-size: 15px; font-weight: 600; border-radius: 99px; padding: 15px 10px; } #lg-banner #lg-tutti:hover, #lg-banner #lg-solo:hover, #lg-banner #lg-salva:hover { background: #2a3030; border-color: #2a3030; }
#lg-banner .lg-apri, #lg-banner .lg-link { font-family: var(--sans); font-size: 14px; } #lg-banner .lg-apri { margin: 18px 0 0; padding: 4px 0; } #lg-banner .lg-link { justify-content: flex-start; } #lg-banner .lg-voce { border-radius: 14px; }
@media (max-width: 420px) { #lg-banner .lg-carta { border-radius: 22px; } #lg-banner .lg-bottoni { grid-template-columns: 1fr 1fr; } }
/* ---------- privacy e cookie, pagine intere e cassetto ---------- */
.pagina-legale { background: #fff; overflow: auto; } .pagina-legale .foglio { position: static; display: block; max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 70px) clamp(18px, 5vw, 40px) 90px; background: #fff; color: var(--nero); font-family: var(--sans); }
.pagina-legale .torna { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; } .pagina-legale .torna svg { width: 16px; } .pagina-legale .occhiello { margin: 34px 0 6px; } .pagina-legale h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.055em; line-height: 1; font-weight: 600; margin-bottom: 34px; } .pagina-legale h1 em { font-style: normal; color: var(--spento); }
.carta-legale { font-family: var(--sans); font-size: 16px; line-height: 1.55; } .carta-legale h2 { font-family: var(--sans); font-size: 25px; letter-spacing: -.04em; line-height: 1.1; font-weight: 600; margin: 2em 0 .6em; } .carta-legale h2 .num { font-size: 13px; color: #8d8d92; margin-right: .8em; letter-spacing: 0; font-family: var(--sans); } .carta-legale h3 { font-family: var(--sans); font-size: 18px; letter-spacing: -.03em; margin: 1.5em 0 .4em; } .carta-legale p, .carta-legale ul { margin-bottom: .9em; } .carta-legale ul { list-style: disc; padding-left: 1.2em; } .carta-legale a { text-decoration: underline; text-underline-offset: 3px; } .carta-legale .scheda-dati { background: var(--grigio); border: 0; border-radius: 18px; padding: 20px 22px; margin: 1em 0; } .carta-legale .scheda-dati p { margin: .2em 0; } .carta-legale .sommario { font-size: 18px; line-height: 1.45; font-weight: 500; } .carta-legale .aggiornata { color: #8d8d92; font-size: 14px; }
.carta-legale table { width: 100%; border-collapse: collapse; font-size: 14.5px; } .carta-legale td, .carta-legale th { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid #dfe0e4; } .piede-legale { margin-top: 50px; padding-top: 18px; border-top: 1px solid #dfe0e4; font-size: 14px; color: #8d8d92; }
#lg-doc { font-family: var(--sans); } #lg-doc .lg-testa h2 { font-family: var(--sans); letter-spacing: -.04em; text-transform: none; }
