/* =====================================================================================================================================
   BONTEMPI 3 · LE PAROLE GIGANTI (11/11/2026, Marco: "un terzo come ti pare a te ma sicuramente diverso dalle prime due versioni")
   Il negozio detto in cinque parole: PRATO, LEGNA, PELLET, STUFE, FIORI, alte come mezzo schermo, con dentro i loro video veri che
   girano. Scorrendo la parola si apre in due come una porta e in mezzo compare il video intero, nitido, coi fatti ai lati (v3.js).
   Furto: la parola dentro la materia del reel-25 (Teseo), la porta che si apre del sipario di Delta (patrimonio), i numeri nudi a
   colore pieno dei manifesti svizzeri, l'elenco a righe con la foto che segue il mouse della pagina Work di Lama Lama.
   ===================================================================================================================================== */
body { background: var(--giallo); color: var(--nero); font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--nero); color: var(--giallo); }
:root { --margine: clamp(18px, 3.6vw, 56px); }
.salta { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--nero); color: var(--giallo); padding: 10px 16px; }
.salta:focus { top: 12px; }
.occhiello { font-family: var(--serif); font-weight: 800; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--nero); margin: 0 0 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--nero); outline-offset: 3px; }
.sorgente { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; z-index: -1; }

/* ---- la testata ---- */
.testa { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--margine); pointer-events: none; }
.testa > * { pointer-events: auto; }
.testa-logo img { height: 58px; width: auto; }
.testa-dove { margin: 0; font-weight: 800; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; }
.testa-tel { font-family: var(--grosso); font-weight: 800; font-size: 22px; letter-spacing: .02em; line-height: 1; text-decoration: none; background: var(--nero); color: var(--giallo); padding: 12px 18px 11px; border-radius: 999px; }
.testa-tel:hover { background: var(--rosso); color: #fff; }

/* il segno del capitolo, in basso a sinistra */
.segno { position: fixed; left: var(--margine); bottom: 18px; z-index: 40; margin: 0; display: flex; gap: 10px; align-items: baseline; font-weight: 800; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.segno.su { opacity: 1; }
.segno b { font-family: var(--grosso); font-weight: 900; font-size: 20px; letter-spacing: 0; }

/* ---- i capitoli: il palco fermo e la tela ---- */
.cap { position: relative; height: 250vh; }
.palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tela { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-sopra { position: absolute; left: 0; right: 0; top: 104px; margin: 0; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; opacity: var(--o, 1); }
.ap-sotto { position: absolute; left: 0; right: 0; bottom: 30px; margin: 0; text-align: center; font-weight: 800; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; opacity: var(--o, 1); }
.ap-sotto span::after { content: ''; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: var(--nero); transform-origin: top; animation: giu 1.8s ease-in-out infinite; }
@keyframes giu { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* i fatti ai lati della carta: --f va da 0 a 1 (v3.js) */
.fatto { position: absolute; top: 50%; width: calc(50% - var(--wc, 300px) / 2 - var(--margine) - 3vw); opacity: var(--f, 0); transform: translateY(calc(-50% + (1 - var(--f, 0)) * 34px)); visibility: var(--vis, hidden); }
.fatto.sx { left: var(--margine); }
.fatto.dx { right: var(--margine); }
.fatto h2 { font-family: var(--grosso); font-weight: 900; font-size: clamp(44px, 5.6vw, 96px); line-height: .86; text-transform: uppercase; letter-spacing: -.005em; margin: 6px 0 20px; }
.fatto p { margin: 0; font-size: clamp(16px, 1.2vw, 18.5px); max-width: 26em; }
.cifre { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2.4vh, 28px); }
.cifre li { display: grid; gap: 2px; border-top: 2px solid var(--nero); padding-top: 10px; }
.cifre b { font-family: var(--grosso); font-weight: 900; font-size: clamp(52px, 6.4vw, 108px); line-height: .84; color: var(--rosso); letter-spacing: -.005em; }
.cifre.parole b { font-size: clamp(40px, 4.4vw, 76px); }
.cifre span { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.cornice-dx { width: min(240px, 100%); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; margin-left: auto; }
.cornice-dx img { width: 100%; height: 100%; object-fit: cover; }

/* ---- E poi: l'elenco a righe ---- */
.righe, .domande, .contatti { padding: clamp(70px, 10vw, 150px) var(--margine) clamp(40px, 6vw, 90px); }
.ri-titolo { font-family: var(--grosso); font-weight: 900; font-size: clamp(84px, 15vw, 250px); line-height: .8; text-transform: uppercase; margin: 0 0 clamp(26px, 4vw, 54px); letter-spacing: -.01em; }
.ri-elenco { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--nero); }
.ri-elenco li { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 30%); align-items: baseline; gap: 20px; padding: 16px 0 14px; border-top: 2px solid var(--nero); will-change: transform; }
.ri-n { font-family: var(--grosso); font-weight: 800; font-size: 22px; }
.ri-nome { font-family: var(--grosso); font-weight: 900; font-size: clamp(46px, 7.6vw, 128px); line-height: .86; text-transform: uppercase; transition: color .3s ease; }
.ri-dice { font-weight: 600; font-size: clamp(15px, 1.2vw, 18px); }
.ri-elenco img { position: fixed; left: 0; top: 0; width: 22vw; max-width: 340px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; pointer-events: none; opacity: 0; z-index: 30; transition: opacity .25s ease; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55); }
.ri-elenco li.mano img { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .ri-elenco li:hover .ri-nome { color: var(--rosso); } }

/* ---- domande ---- */
.do-elenco { border-bottom: 2px solid var(--nero); max-width: 1100px; }
details { border-top: 2px solid var(--nero); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 20px 0; font-weight: 800; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--grosso); font-weight: 900; font-size: 34px; line-height: .7; transition: transform .3s ease; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; max-width: 40em; font-size: 18px; }
details a { color: var(--nero); }

/* ---- contatti ---- */
.numerone { display: block; position: relative; text-decoration: none; color: var(--nero); margin: 0 0 clamp(36px, 5vw, 64px); }
.tela-num { display: block; width: 100%; height: 30vw; }
.numerone-testo { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); }
.ct-griglia p { margin: 0 0 12px; }
.ct-griglia a { color: var(--nero); text-underline-offset: 4px; }
.ct-num { font-family: var(--grosso); font-weight: 900; font-size: clamp(34px, 3.6vw, 54px); line-height: 1; }
.ct-num a { text-decoration: none; }
.ct-orari { border-collapse: collapse; width: 100%; font-size: 17px; }
.ct-orari th, .ct-orari td { text-align: left; padding: 10px 0; border-bottom: 2px solid var(--nero); }
.ct-orari th { font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.bottone { font-family: var(--serif); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: .95em 1.4em; border: 2px solid var(--nero); color: var(--nero); border-radius: 999px; min-height: 48px; transition: background .25s ease, color .25s ease; }
.bottone:hover { background: var(--nero); color: var(--giallo); }
.bottone.wa { gap: 10px; }
.bottone .wa-segno { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---- il piede ---- */
.piede2 { text-align: center; padding: clamp(40px, 6vw, 80px) var(--margine) 40px; font-size: 14px; }
.pd-logo { width: 150px; height: auto; margin: 0 auto 24px; }
.piede2 p { margin: 0 0 10px; }
.piede2 .pi-legale { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; margin: 18px 0; }
.piede2 a, .piede2 .pi-pref { color: var(--nero); background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pd-nota { font-size: 13px; }

/* ---- senza js: le parole restano scritte grandi e i fatti si leggono ---- */
html:not(.js) .cap { height: auto; }
html:not(.js) .palco { position: relative; height: auto; padding: 120px var(--margine) 40px; }
html:not(.js) .fatto { position: static; width: auto; opacity: 1; transform: none; visibility: visible; margin-bottom: 24px; }

/* ---- il telefono ---- */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .testa { height: 66px; }
  .testa-logo img { height: 46px; }
  .testa-dove { display: none; }
  .segno { display: none; }
  .testa-tel { font-size: 19px; padding: 10px 15px 9px; }
  .ap-sopra { top: 84px; font-size: 11.5px; }
  .fatto { top: calc(var(--ccy, 40vh) + var(--hc, 46vh) / 2 + 14px); width: auto; left: 18px; right: 18px; transform: translateY(calc((1 - var(--f, 0)) * 24px)); }
  .fatto.sx { right: 18px; }
  .fatto.dx { left: 18px; top: auto; bottom: 16px; transform: translateY(calc((1 - var(--f, 0)) * 24px)); }
  .fatto h2 { font-size: 40px; margin: 0 0 8px; }
  .fatto .occhiello { display: none; }
  .fatto p { font-size: 15px; line-height: 1.45; }
  .cifre { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
  .cifre li { padding-top: 6px; }
  .cifre b { font-size: 34px; }
  .cifre.parole b { font-size: 26px; }
  .cifre span { font-size: 10.5px; letter-spacing: .1em; }
  .cornice-dx { display: none; }
  .ri-elenco li { grid-template-columns: 34px minmax(0, 1fr) 24vw; grid-template-rows: auto auto; gap: 4px 12px; align-items: start; }
  .ri-n { font-size: 17px; grid-row: 1 / span 2; }
  .ri-nome { grid-column: 2; }
  .ri-dice { grid-column: 2; font-size: 14.5px; }
  .ri-elenco img { position: static; grid-column: 3; grid-row: 1 / span 2; width: 24vw; opacity: 1; box-shadow: none; transform: none !important; }
  .ct-griglia { grid-template-columns: 1fr; }
  .tela-num { height: 34vw; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .fatto p { font-size: 14px; }
  .fatto h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-sotto span::after { animation: none; }
}
