/* Bagno · «Acqua e luce» (22-nov). Celadón, azulejo vidriado verde agua, cromo; títulos en Syne. */
@font-face { font-family: "Syne"; src: url("../fonts/Syne-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

.sito-ristrutturazione-bagno {
  --u-fondo: #eef5f2; --u-testo: #0f2623; --u-tenue: #4a625e; --u-filo: rgb(15 38 35 / .12);
  --u-pannello: #ffffff; --u-msg: #e3efeb; --u-accento: #245f5a; --u-su-accento: #ffffff; --u-raggio: 16px;
  --u-font: "Geist", system-ui, sans-serif; --ba-titolo: "Syne", "Geist", system-ui, sans-serif;
  --ba-vivo: #2fe0b5;
  background: var(--u-fondo);
}
.sito-ristrutturazione-bagno h1, .sito-ristrutturazione-bagno h2, .sito-ristrutturazione-bagno h3 { margin: 0; font-family: var(--ba-titolo); font-weight: 700; letter-spacing: -.03em; }

.ba-bottone { padding: 12px 22px; border: 0; border-radius: 999px; background: #fff; color: var(--u-testo); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--u-testo); transition: transform .4s var(--u-molla), background .3s, color .3s; }
.ba-bottone:hover { transform: translateY(-2px); background: var(--u-testo); color: #fff; }
.ba-bottone-pieno { background: var(--u-accento); color: #fff; box-shadow: 0 10px 24px -12px rgb(36 95 90 / .9); }
.ba-bottone-pieno:hover { background: #17423e; }
.ba-bottone-grande { padding: 18px 34px; font-size: 1.1rem; font-family: var(--ba-titolo); font-weight: 700; }

.ba-testa { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 3vw, 40px); background: rgb(238 245 242 / .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--u-filo); }
.ba-marchio { display: flex; align-items: center; gap: 12px; color: var(--u-testo); text-decoration: none; font: 700 1.02rem/1 var(--ba-titolo); }
.ba-sigla { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #5fd3b4, #1f7a6c); color: #fff; font-size: .8rem; box-shadow: inset 0 2px 0 rgb(255 255 255 / .45), inset 0 -3px 0 rgb(0 0 0 / .15); }
.ba-nav { display: flex; gap: 22px; margin-left: auto; }
.ba-nav a { color: var(--u-tenue); text-decoration: none; font-size: .95rem; }
.ba-nav a:hover { color: var(--u-accento); }

/* ---------- Portada: pared de azulejos que siguen la luz ---------- */
.ba-eroe { --px: .72; --py: .28; position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 90px); overflow: hidden; perspective: 1400px; }
.ba-muro { position: absolute; inset: -2% -1%; display: grid; grid-template-columns: repeat(16, 1fr); grid-template-rows: repeat(8, 1fr); gap: 4px; padding: 4px; background: #d9e6e1; }
/* La inclinación de cada azulejo solo con ratón (en móvil la pared queda quieta: 128 capas 3D pesan). */
@media (hover: hover) and (pointer: fine) {
  .ba-muro i { transform: perspective(500px) rotateY(calc((var(--px) * 16 - var(--c) - .5) * 1.6deg)) rotateX(calc((var(--py) * 8 - var(--r) - .5) * -1.6deg)); }
}
.ba-muro i { border-radius: 4px;
  background: linear-gradient(calc(120deg + var(--t) * 9deg), rgb(255 255 255 / .55), rgb(255 255 255 / 0) 42%), radial-gradient(circle at 70% 80%, rgb(0 0 0 / .08), transparent 60%),
    hsl(calc(160deg + var(--t) * 4deg) calc(30% + var(--t) * 5%) calc(80% - var(--t) * 3%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), 0 2px 4px rgb(15 38 35 / .12); }
.ba-luce { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(28rem 20rem at calc(var(--px) * 100%) calc(var(--py) * 100%), rgb(255 255 255 / .6), transparent 70%); mix-blend-mode: soft-light; }
.ba-eroe-dentro { position: relative; z-index: 1; width: min(1240px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.ba-doccia { position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; overflow: hidden; background: rgb(246 251 249 / .72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .9), 0 40px 80px -50px rgb(15 38 35 / .6); }
.ba-doccia::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(circle at 12% 18%, rgb(255 255 255 / .9) 0 2px, transparent 3px) 0 0 / 46px 52px, radial-gradient(circle at 60% 70%, rgb(255 255 255 / .8) 0 1.5px, transparent 2.5px) 0 0 / 33px 41px, radial-gradient(ellipse 3px 4px at 30% 40%, rgb(255 255 255 / .9), transparent) 0 0 / 71px 63px; }
.ba-gocce { position: absolute; inset: 0; pointer-events: none; }
.ba-gocce i { position: absolute; top: -20px; width: 6px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 35%, #fff, rgb(160 220 205 / .7)); box-shadow: 0 1px 2px rgb(15 38 35 / .2); opacity: 0; }
.ba-gocce i::after { content: ""; position: absolute; left: 2px; bottom: 100%; width: 2px; height: 60px; background: linear-gradient(transparent, rgb(255 255 255 / .7)); }
.ba-gocce i:nth-child(1) { left: 12%; --d: 7s; --a: 0s; } .ba-gocce i:nth-child(2) { left: 38%; --d: 9s; --a: -3s; } .ba-gocce i:nth-child(3) { left: 63%; --d: 8s; --a: -5s; } .ba-gocce i:nth-child(4) { left: 82%; --d: 10s; --a: -1s; } .ba-gocce i:nth-child(5) { left: 94%; --d: 7.5s; --a: -6s; }
@media (prefers-reduced-motion: no-preference) { .u-pronto .ba-gocce i { animation: ba-scende var(--d) cubic-bezier(.6, 0, .9, .6) var(--a) infinite; } }
@keyframes ba-scende { 0% { opacity: 0; translate: 0 0; } 10% { opacity: 1; } 40% { translate: 0 30%; } 100% { opacity: .8; translate: 0 900%; } }
.ba-stato { position: relative; margin: 0 0 18px; font-size: .88rem; color: var(--u-tenue); }
.ba-doccia h1 { position: relative; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1.02; font-weight: 700; overflow-wrap: anywhere; }
.ba-sotto { position: relative; margin: 16px 0 0; font-size: 1.2rem; color: var(--u-tenue); }
.ba-domanda { position: relative; margin-top: 26px; }
.ba-domanda label, .ba-cap label { display: block; margin: 0 0 8px 4px; font-size: .88rem; font-weight: 600; }
.ba-riga { display: flex; gap: 8px; }
.ba-riga input { flex: 1; min-width: 0; padding: 14px 18px; border: 0; border-radius: 999px; background: #fff; color: var(--u-testo); font: inherit; font-size: 1.02rem; box-shadow: inset 0 0 0 1.5px var(--u-filo); outline: none; }
.ba-riga input:focus { box-shadow: inset 0 0 0 2px var(--u-accento), 0 0 0 5px rgb(47 224 181 / .2); }
.ba-esempi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ba-esempi button { padding: 8px 14px; border: 0; border-radius: 999px; background: rgb(36 95 90 / .1); color: var(--u-testo); font-size: .9rem; font-weight: 500; }
.ba-esempi button:hover { background: var(--u-accento); color: #fff; }
.ba-nota { position: relative; margin: 12px 0 0 4px; font-size: .82rem; color: var(--u-tenue); }
.ba-specchio { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 200px 200px 24px 24px; overflow: hidden;
  box-shadow: 0 0 0 8px #e9eef0, 0 0 0 9px rgb(15 38 35 / .2), 0 0 0 12px #c9d1d4, 0 50px 80px -40px rgb(15 38 35 / .7); }
.ba-specchio img { width: 100%; height: 100%; object-fit: cover; }
.ba-specchio::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgb(255 255 255 / .35), transparent 30%, transparent 70%, rgb(255 255 255 / .15)); }

/* ---------- Secciones ---------- */
.ba-sezione { width: min(1240px, 100% - 32px); margin: 0 auto; padding: clamp(84px, 11vw, 150px) 0 0; }
.ba-intesta { margin-bottom: clamp(30px, 4.5vw, 52px); }
.ba-intesta p { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--u-accento); }
.ba-intesta p::before { content: ""; width: 18px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #8ee6cd, #2f8f7f); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6); }
.ba-intesta h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.02; max-width: 18ch; }

/* Mamparas empañadas: el vapor se aclara al pasar (y al entrar en pantalla, en móvil). */
.ba-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ba-anta { display: flex; flex-direction: column; }
.ba-vetro { position: relative; aspect-ratio: 3 / 4.2; margin-bottom: 16px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgb(15 38 35 / .15), 0 30px 50px -30px rgb(15 38 35 / .6); }
.ba-vetro img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--u-molla); }
.ba-vapore { position: absolute; inset: 0; background: rgb(236 245 242 / .45); backdrop-filter: blur(10px) saturate(.8); -webkit-backdrop-filter: blur(10px) saturate(.8); transition: opacity 1.1s ease, backdrop-filter 1.1s; }
.ba-scritta { position: absolute; left: 18px; top: 10px; font: 800 4rem/1 var(--ba-titolo); color: rgb(255 255 255 / .85); text-shadow: 0 1px 3px rgb(15 38 35 / .25); transition: opacity .8s; }
.ba-anta:hover .ba-vapore, .ba-anta:focus-within .ba-vapore { opacity: 0; }
.ba-anta:hover .ba-scritta, .ba-anta:focus-within .ba-scritta { opacity: 0; }
.ba-anta:hover .ba-vetro img { scale: 1.05; }
@media (hover: none) { .ba-anta.vista .ba-vapore { opacity: 0; transition-delay: .6s; } }
.ba-anta h3 { font-size: 1.45rem; line-height: 1.1; }
.ba-anta p { flex: 1; margin: 6px 0 14px; color: var(--u-tenue); }
.ba-link { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--u-accento); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--ba-vivo); }
.ba-altro { margin: 34px 0 0; padding: 20px 24px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--u-filo); font-weight: 600; }
.ba-altro .ba-link { margin-left: 8px; font-size: 1rem; }

/* La cinta: un mosaico de teselas verdes con el texto en blanco. */
.ba-mosaico { position: relative; margin-top: clamp(84px, 11vw, 150px); padding: 40px 0; --u-cinta-tempo: 48s;
  background: repeating-conic-gradient(#1f6f62 0 25%, #2a8574 0 50%) 0 0 / 28px 28px, #1f6f62;
  box-shadow: inset 0 0 0 9999px rgb(15 38 35 / .25); }
.ba-mosaico::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(255 255 255 / .5) 2px, transparent 2px) 0 0 / 14px 14px, linear-gradient(rgb(255 255 255 / .5) 2px, transparent 2px) 0 0 / 14px 14px; opacity: .35; }
.ba-mosaico span { position: relative; padding: 0 40px; font: 800 clamp(2.4rem, 5.2vw, 4.6rem)/1 var(--ba-titolo); letter-spacing: -.03em; color: #fff; white-space: nowrap; text-shadow: 0 2px 0 rgb(15 38 35 / .35); }
.ba-mosaico span::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: 80px; border-radius: 6px; vertical-align: middle; background: linear-gradient(135deg, #b6ffe9, var(--ba-vivo)); rotate: 45deg; }

.ba-confronto { aspect-ratio: 16 / 8; border-radius: 26px; box-shadow: 0 40px 80px -50px rgb(15 38 35 / .7); }
.ba-confronto .confronto-linea { width: 8px; margin-left: -4px; border-radius: 4px; background: linear-gradient(90deg, #c9d1d4, #fff, #c9d1d4); box-shadow: 0 0 0 1px rgb(15 38 35 / .2); }
.ba-et { position: absolute; top: 16px; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .9); color: var(--u-testo); font: 700 .85rem/1 var(--ba-titolo); pointer-events: none; }
.ba-et-prima { left: 16px; } .ba-et-dopo { right: 16px; }

.ba-galleria { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ba-galleria figure { margin: 0; border-radius: 16px; overflow: hidden; }
.ba-galleria figure:nth-child(2n) { margin-top: 40px; }
.ba-galleria img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: scale 1s var(--u-molla); }
.ba-galleria figure:hover img { scale: 1.05; }
.ba-galleria-nota { grid-column: 1 / -1; margin: 6px 0 0; font-size: .78rem; color: var(--u-tenue); }

/* Metodo: tres gotas que caen en su azulejo. */
.ba-passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ba-passi li { padding: 30px 26px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--u-filo); }
.ba-goccia { position: relative; z-index: 0; display: grid; place-items: center; width: 64px; height: 64px; color: #fff; font: 800 1.4rem/1 var(--ba-titolo); }
.ba-goccia::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 0 50% 50% 50%; rotate: 45deg; background: linear-gradient(135deg, #8ee6cd, var(--u-accento)); box-shadow: 0 12px 20px -10px rgb(36 95 90 / .8); }
.js .ba-passi li .ba-goccia { translate: 0 -40px; opacity: 0; transition: translate .9s cubic-bezier(.5, 1.7, .6, 1), opacity .4s; transition-delay: calc(var(--ritardo, 0ms) + 200ms); }
.js .ba-passi li.vista .ba-goccia { translate: none; opacity: 1; }
.ba-passi h3 { margin-top: 22px; font-size: 1.5rem; line-height: 1.1; }
.ba-passi p { margin: 10px 0 0; color: var(--u-tenue); }

.ba-domande { display: grid; gap: 10px; }
.ba-domande details { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--u-filo); overflow: hidden; }
.ba-domande summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font: 700 1.15rem/1.3 var(--ba-titolo); }
.ba-domande summary::-webkit-details-marker { display: none; }
.ba-domande summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #8ee6cd, #2f8f7f); transition: rotate .5s var(--u-molla); }
.ba-domande details[open] summary::after { rotate: 135deg; }
.ba-domande p { margin: 0; padding: 0 24px 22px; max-width: 46rem; color: var(--u-tenue); }

.ba-zona { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ba-zone { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ba-zone li { padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--u-filo); font: 700 1.3rem/1.2 var(--ba-titolo); }
.ba-cap { padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--u-filo), 0 30px 60px -40px rgb(15 38 35 / .6); }
.ba-cap input { font: 700 1.6rem/1 var(--ba-titolo); letter-spacing: .1em; }

.ba-finale { position: relative; width: min(1240px, 100% - 32px); margin: clamp(96px, 12vw, 170px) auto 0; padding: clamp(50px, 7vw, 90px) 24px; border-radius: 40px; text-align: center; overflow: hidden; color: #fff;
  background: repeating-conic-gradient(rgb(255 255 255 / .04) 0 25%, transparent 0 50%) 0 0 / 60px 60px, linear-gradient(160deg, #1f6f62, #0f2623); }
.ba-finale h2 { font-size: clamp(1.9rem, 6.4vw, 5.6rem); line-height: .98; font-weight: 800; overflow-wrap: anywhere; }
.ba-finale em { font-style: normal; color: var(--ba-vivo); }
.ba-finale .ba-bottone { margin-top: 30px; background: var(--ba-vivo); color: #06110d; }
.ba-finale p { margin: 24px 0 0; color: #bcd6cf; }
.ba-finale a { color: #fff; }

/* El asistente: un grifo cromado. Gotea de vez en cuando; al pasar, la maneta sube y corre el agua. */
.ba-rubinetto { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--u-testo); text-align: left; filter: drop-shadow(0 16px 22px rgb(15 38 35 / .35)); }
/* Vista de lado: base, cuerpo, caño horizontal con su boca hacia abajo y la maneta arriba. */
.ba-cromo { --cromo: linear-gradient(90deg, #8f999d, #f4f7f8 38%, #c3cbce 60%, #8f999d); position: relative; width: 76px; height: 84px; }
.ba-cromo::before { content: ""; position: absolute; left: 6px; bottom: 0; width: 40px; height: 9px; border-radius: 5px 5px 3px 3px; background: var(--cromo); }
.ba-canna { position: absolute; left: 16px; top: 24px; width: 20px; height: 54px; border-radius: 9px 9px 2px 2px; background: var(--cromo); }
.ba-canna::before { content: ""; position: absolute; left: 12px; top: 6px; width: 46px; height: 13px; border-radius: 0 7px 7px 0; background: linear-gradient(180deg, #f4f7f8, #b3bcc0 55%, #8f999d); }
.ba-canna::after { content: ""; position: absolute; left: 46px; top: 12px; width: 12px; height: 14px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #8f999d, #eef2f3, #a8b1b5); }
.ba-leva { position: absolute; left: 20px; top: 14px; width: 34px; height: 8px; border-radius: 4px; transform-origin: 6px 50%; rotate: 6deg; background: linear-gradient(180deg, #f4f7f8, #8f999d); transition: rotate .6s cubic-bezier(.3, 1.6, .5, 1); }
.ba-leva::before { content: ""; position: absolute; left: 0; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--cromo); }
.ba-getto { position: absolute; left: 65px; top: 50px; width: 7px; height: 0; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, rgb(47 224 181 / .5), rgb(220 255 245 / .95), rgb(47 224 181 / .5)); transition: height .45s ease-in; }
.ba-stilla { position: absolute; left: 65px; top: 50px; width: 7px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--ba-vivo); opacity: 0; }
.ba-rubinetto:hover .ba-leva, .ba-rubinetto:focus-visible .ba-leva { rotate: -28deg; }
.ba-rubinetto:hover .ba-getto, .ba-rubinetto:focus-visible .ba-getto { height: 46px; }
@media (prefers-reduced-motion: no-preference) { .u-pronto .ba-rubinetto:not(:hover) .ba-stilla { animation: ba-stilla 3.4s cubic-bezier(.6, 0, 1, .6) 1s infinite; } }
@keyframes ba-stilla { 0%, 55% { opacity: 0; translate: 0 0; scale: .3; } 70% { opacity: 1; translate: 0 0; scale: 1; } 100% { opacity: 0; translate: 0 44px; scale: 1; } }
.ba-rubinetto-testo { padding: 10px 16px; border-radius: 16px; background: #fff; font: 700 1rem/1.2 var(--ba-titolo); box-shadow: 0 0 0 1px var(--u-filo); }
.ba-rubinetto-testo small { display: block; margin-top: 2px; font: 500 .72rem/1.2 var(--u-font); color: var(--u-accento); }

/* Mapa: celadón y verde agua. */
.sito-ristrutturazione-bagno .mp-palco { margin-top: 56px; --mp-fondo: #f6fbf9; --mp-citta: #1f7a6c; --mp-testo: #0f2623; --mp-bordo: rgb(15 38 35 / .18); --mp-spessore: #cfe3dc; }
.sito-ristrutturazione-bagno .mp-cornice { border-radius: 26px; }

@media (max-width: 960px) {
  .ba-nav { display: none; }
  .ba-testa .ba-bottone { margin-left: auto; }
  .ba-eroe-dentro, .ba-zona, .ba-passi { grid-template-columns: minmax(0, 1fr); }
  .ba-specchio { aspect-ratio: 4 / 3; border-radius: 120px 120px 20px 20px; }
  .ba-box, .ba-galleria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-confronto { aspect-ratio: 4 / 3; }
  .ba-muro { grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(16, 1fr); }
}
/* Móvil: sin desenfoques de cristal ni sombras enormes (en un teléfono modesto bloquean la carga). */
@media (max-width: 760px) {
  .ba-doccia { background: rgb(246 251 249 / .94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ba-vapore { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(236 245 242 / .55); }
  .ba-specchio { box-shadow: 0 0 0 6px #e9eef0, 0 0 0 8px #c9d1d4; }
  .ba-testa { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(238 245 242 / .97); }
}
@media (max-width: 560px) {
  .ba-riga { flex-direction: column; }
  .ba-box { grid-template-columns: minmax(0, 1fr); }
  .ba-rubinetto-testo small { display: none; }
  .ba-testa { gap: 10px; }
  .ba-marchio { font-size: .88rem; gap: 8px; }
  .ba-testa .ba-bottone { padding: 9px 14px; font-size: .86rem; }
  .ba-galleria figure:nth-child(2n) { margin-top: 20px; }
}
