/*
 * PAGINE INTERNE (Progetto, Contatti, legali, 404): fondo scuro, intestazione Tank "page header",
 * contenuti e footer. Misure dall'originale a 1920 / 390 (Tank 4.5.1 + Elementor).
 */
body.bdc-dark { background: #111; color: #fff; }
/* Texture rumore animata sotto i contenuti (bg-noise di Tank: 1s steps(2)) */
.bdc-noise { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bdc-noise::before { position: absolute; top: -10rem; left: -10rem; width: calc(100% + 20rem); height: calc(100% + 20rem); content: ""; background: url("../img/bg-noise.png") 50% 50%; animation: bdc-noise 1s steps(2) infinite; }
@keyframes bdc-noise { 0% { transform: translate3d(0, 9rem, 0); } 10% { transform: translate3d(-1rem, -4rem, 0); } 20% { transform: translate3d(-8rem, 2rem, 0); } 30% { transform: translate3d(9rem, -9rem, 0); } 40% { transform: translate3d(-2rem, 7rem, 0); } 50% { transform: translate3d(-9rem, -4rem, 0); } 60% { transform: translate3d(2rem, 6rem, 0); } 70% { transform: translate3d(7rem, -8rem, 0); } 80% { transform: translate3d(-9rem, 1rem, 0); } 90% { transform: translate3d(6rem, -5rem, 0); } to { transform: translate3d(-7rem, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .bdc-noise::before { animation: none; } }
.bdc-wrap { width: min(1262px, calc(100% - 60px)); margin-inline: auto; }
.bdc-content a, .bdc-intro__text a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Intestazione pagina ---------- */
.bdc-ph { position: relative; z-index: 1; color: #fff; text-align: center; }
.bdc-ph__inner { position: relative; padding: 160px 4% 100px; }
.bdc-ph--full { display: flex; align-items: center; min-height: 100vh; }
.bdc-ph--full .bdc-ph__inner { width: 100%; padding-top: 5%; padding-bottom: 5%; }
.bdc-ph__image { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2; display: flex; align-items: center; width: 380px; transform: translateX(-50%); line-height: 0; }
.bdc-ph--full .bdc-ph__image { position: fixed; position: absolute; }
.bdc-ph__image img { position: relative; width: 100%; aspect-ratio: 1 / 1.4; height: auto; max-width: none; object-fit: cover; }
.bdc-ph__image::after { position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 1 / 1.4; content: ""; background: #040404; opacity: .4; transform: translateY(-50%); }
.bdc-ph__caption { position: relative; }
.bdc-ph__title { position: relative; z-index: 9; margin: 0; font-family: var(--bdc-font-serif); font-size: clamp(40px, 5vw, 94px); font-weight: 500; line-height: 1.3; color: #fff; }
.bdc-ph__ghost { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 1; display: flex; align-items: center; padding-top: 5%; font-family: var(--bdc-font-serif); font-size: calc(16px + 9vw); font-weight: 600; line-height: 1; color: #fff; white-space: nowrap; opacity: .04; transform: translateX(-50%); pointer-events: none; }
.bdc-ph__subtitle { position: relative; z-index: 9; margin-top: 40px; font-family: var(--bdc-font-serif); font-size: calc(15px + .5vw); font-weight: 600; color: #e4e4e4; }
.bdc-ph--xxlg .bdc-ph__title { font-size: clamp(48px, 10vw, 180px); }
.bdc-ph--xxlg .bdc-ph__ghost { font-size: calc(16px + 13vw); }
.bdc-ph--xlg .bdc-ph__title { font-size: clamp(48px, 8vw, 142px); }
.bdc-ph--xlg .bdc-ph__ghost { font-size: calc(16px + 10vw); }
.bdc-ph--lg .bdc-ph__title { font-size: clamp(48px, 6vw, 112px); }
.bdc-ph--lg .bdc-ph__ghost { font-size: calc(16px + 10vw); }

/* Cerchio "Scopri di più" che ruota */
.bdc-sdc { position: absolute; left: 3%; bottom: -100px; z-index: 9; display: block; width: 250px; height: 250px; }
.bdc-sdc svg { width: 100%; animation: bdc-sdc-rotate 8s linear infinite; overflow: visible; }
.bdc-sdc text { font-family: var(--bdc-font-serif); font-size: 33px; text-transform: uppercase; letter-spacing: 25px; fill: #bbb; transition: fill .2s; }
.bdc-sdc:hover text { fill: #fff; }
.bdc-sdc__icon { position: absolute; top: 50%; left: 50%; font-size: 16px; line-height: 0; color: #999; transform: translate(-50%, -50%); }
@keyframes bdc-sdc-rotate { to { transform: rotate(360deg); } }

/* Entrata dopo la transizione di pagina e animazioni allo scorrimento */
.bdc-loaded .bdc-appear { animation: bdc-up60-in 1.5s var(--bdc-ease-expo-out) both; animation-delay: 1.5s; }
.bdc-loaded .bdc-ph__ghost.bdc-appear { animation-name: bdc-ghost-in; animation-delay: 1.8s; }
.bdc-loaded .bdc-ph__subtitle.bdc-appear { animation-delay: 2.1s; }
.bdc-loaded .bdc-ph__image { animation: bdc-image-in 1.5s var(--bdc-ease-expo-out) 1.2s both; }
@keyframes bdc-up60-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes bdc-ghost-in { from { opacity: 0; transform: translate(-50%, 60px); } to { opacity: .04; transform: translate(-50%, 0); } }
@keyframes bdc-image-in { from { opacity: 0; transform: translate(-50%, 80px); } to { opacity: 1; transform: translate(-50%, 0); } }
.js .bdc-anim { opacity: 0; transform: translateY(100px); transition: opacity 1.5s var(--bdc-ease-expo-out), transform 1.5s var(--bdc-ease-expo-out); }
.js .bdc-anim.is-in { opacity: 1; transform: none; }
.js .bdc-zoom { opacity: 0; transform: scale(.6); transition: opacity 1.2s ease, transform 1.2s ease; }
.js .bdc-zoom.is-in { opacity: 1; transform: none; }

/* ---------- Progetto ---------- */
.bdc-intro { display: grid; grid-template-columns: minmax(0, 236fr) minmax(0, 1001fr); gap: 20px; padding-top: 90px; }
.bdc-intro__title { margin: 0; font-family: var(--bdc-font-serif); font-size: calc(24px + .5vw); font-weight: 600; line-height: 1.4; color: #b9b9b9; }
.bdc-intro__body { min-width: 0; }
.bdc-intro__text { display: flow-root; font-family: var(--bdc-font-serif); font-size: calc(19px + .4vw); line-height: 1.7; color: #fff; }
.bdc-intro__text p { margin: 0 0 1.7em; }
.bdc-btn { display: inline-block; border-radius: 0; background: transparent; margin-top: 45px; padding: 12px 24px; border: 2px solid #292929; font-family: "Roboto", sans-serif; font-size: 14px; font-weight: 600; line-height: 1; text-transform: uppercase; color: #fff; text-decoration: none; transition: all .3s; }
.bdc-btn:hover { background: #fff; color: #111; border-color: #fff; }

.bdc-gallery { margin-top: 170px; padding: 15px 0; overflow: hidden; cursor: grab; }
.bdc-gallery.is-dragging { cursor: grabbing; }
.bdc-gallery__track { display: flex; gap: 22px; width: max-content; will-change: transform; transition: transform .9s var(--bdc-ease-expo-out); }
.bdc-gallery.is-dragging .bdc-gallery__track { transition: none; }
.bdc-gallery__item { position: relative; flex: 0 0 auto; margin: 0; height: clamp(200px, 33.6vw, 645px); }
.bdc-gallery__item:nth-child(even) { transform: translateY(0); }
.bdc-gallery__item img { width: auto; height: 100%; max-width: none; pointer-events: none; user-select: none; }
.bdc-gallery__item::after { position: absolute; inset: 0; content: ""; background: #000; opacity: .1; }

.bdc-ts { margin-top: 240px; overflow: hidden; cursor: grab; text-align: center; }
.bdc-ts__track { display: flex; gap: 115px; will-change: transform; transition: transform .9s var(--bdc-ease-expo-out); }
.bdc-ts__item { flex: 0 0 min(800px, calc(100vw - 60px)); }
.bdc-ts__text { font-family: var(--bdc-font-serif); font-size: 22px; line-height: 1.6; color: #fff; }
.bdc-ts__author { margin-top: 25px; font-family: var(--bdc-font-serif); font-size: 16px; color: #999; }
.bdc-ts__text { font-style: italic; }
/* Puntini (creati da pagine.js) */
.bdc-ts__dots { display: flex; justify-content: center; align-items: center; gap: 10px; height: 10px; margin-top: 30px; }
.bdc-ts__dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #fff; opacity: .3; cursor: pointer; transition: opacity .3s, transform .3s; }
.bdc-ts__dot.is-active { opacity: 1; transform: scale(1.4); }

.bdc-collina { margin-top: 256px; text-align: center; }
.bdc-collina__title { margin: 0; font-family: "Playfair Display", serif; font-size: 24px; font-weight: 600; line-height: 1.4; font-style: italic; text-transform: capitalize; color: #fff; }
.bdc-collina__logo { display: block; width: 500px; max-width: 100%; margin: 0 auto; }
.bdc-collina__logo img { width: 200px; height: auto; margin: 0 auto; }
.bdc-progetto { padding-bottom: 247px; }

/* ---------- Contatti ---------- */
.bdc-contact { display: grid; grid-template-columns: minmax(0, 407fr) minmax(0, 698fr); column-gap: 157px; padding-top: 10px; }
.bdc-contact__title { margin: 0 0 40px; font-family: var(--bdc-font-serif); font-size: 42px; font-weight: 400; line-height: 1; color: #fff; }
.bdc-contact__address { margin: 0; font-family: "Roboto", sans-serif; font-size: 19px; line-height: 1.7; }
.bdc-contact__address a { color: #b9b9b9; text-decoration: none; }
.bdc-contact__address { color: #b9b9b9; }
/* Icona segnaposto come l'icon-list di Elementor (14px in un riquadro di 1,25em) */
.bdc-contact__pin { display: inline-block; width: 17.5px; color: #fff; font-size: 14px; line-height: 1; text-align: left; vertical-align: -1px; }
.bdc-contact__pin svg { width: 10.5px; height: 14px; fill: currentColor; }
/* Il CSS generico di cf7.css (griglia, margini, altezze minime, grassetto) qui non serve: campi come l'originale */
.bdc-contact .wpcf7-form { display: block; }
.bdc-contact .bdc-form__field { margin: 0 0 40px; }
.bdc-contact .bdc-form__field > label { font-weight: 400; }
.bdc-contact .wpcf7-form-control-wrap { margin-top: 0; }
.bdc-contact .wpcf7-form input[type="text"], .bdc-contact .wpcf7-form input[type="email"], .bdc-contact .wpcf7-form input[type="tel"], .bdc-contact .wpcf7-form textarea { min-height: 0; padding: 5px 14px; font-weight: 400; box-shadow: none; }
.bdc-contact .wpcf7-form textarea { padding-top: 10px; }
.bdc-contact .wpcf7-form .bdc-form__privacy { margin: 0 0 26px; }
.bdc-contact .bdc-form__privacy label { display: inline; min-height: 0; font-size: inherit; font-weight: 400; }
.bdc-contact .bdc-form__privacy input[type="checkbox"] { margin: 0 5px 0 0; accent-color: #fff; }
.bdc-contact .bdc-form__privacy a { text-decoration: none; }
.bdc-contact .wpcf7-form .wpcf7-submit { display: inline-block; min-height: 0; }
/* CF7 disattiva il pulsante finche' non si accetta la privacy: l'originale lo mostra sempre pieno */
.bdc-contact .wpcf7-form .wpcf7-submit:disabled { opacity: 1; }
.bdc-contact .wpcf7-form .bdc-form__privacy { margin-bottom: 40px; line-height: 32.3px; }
.bdc-contact .wpcf7-form ::placeholder { color: rgba(255, 255, 255, .5); }
.bdc-contact__form { min-width: 0; }
.bdc-form { display: flex; flex-wrap: wrap; column-gap: 10px; }
.bdc-form__field { flex: 0 0 100%; min-width: 0; margin: 0 0 40px; }
.bdc-form__field--half { flex-basis: calc(50% - 5px); }
.bdc-form__field > label { display: block; font-size: 0; line-height: 0; }
.bdc-contact .wpcf7-form-control-wrap { display: block; }
.bdc-contact input[type="text"], .bdc-contact input[type="email"], .bdc-contact input[type="tel"], .bdc-contact textarea { box-sizing: border-box; width: 100%; height: 40px; padding: 5px 0; border: 0; border-bottom: 1px solid #fff; border-radius: 0; background: transparent; font-family: "Roboto", sans-serif; font-size: 15px; line-height: 21px; color: #fff; outline: 0; }
.bdc-contact textarea { height: 137px; resize: vertical; }
.bdc-contact ::placeholder { color: rgba(255, 255, 255, .6); opacity: 1; }
.bdc-form__privacy { margin-bottom: 26px; font-family: "Roboto", sans-serif; font-size: 17px; line-height: 1.7; color: #fff; }
.bdc-form__privacy .wpcf7-list-item { margin: 0 5px 0 0; }
.bdc-form__privacy input[type="checkbox"] { width: 20px; height: 20px; margin: 0; vertical-align: middle; }.bdc-form__privacy a { color: #fff; }
.bdc-contact .wpcf7-submit { height: 40px; padding: 0 24px; border: 1px solid #fff; border-radius: 0; background: transparent; font-family: "Roboto", sans-serif; font-size: 15px; font-weight: 500; line-height: 1; color: #fff; cursor: pointer; transition: all .3s; }
.bdc-contact .wpcf7-submit:hover { background: #fff; color: #111; }
.bdc-contact .wpcf7-not-valid-tip { font-size: 13px; line-height: 1.4; }
.bdc-contact .wpcf7-response-output { margin: 0; font-size: 15px; }
.bdc-contact .wpcf7-spinner { margin: 0 0 0 10px; }

.bdc-pn { position: relative; margin-top: 92px; text-align: center; }
.bdc-pn__link { position: relative; display: block; width: min(800px, 100%); margin: 0 auto; color: #fff; text-decoration: none; }
.bdc-pn__title { display: block; font-family: var(--bdc-font-serif); font-size: clamp(48px, 5.73vw, 110px); font-weight: 500; line-height: 1.6; opacity: .4; transition: opacity .3s; }
.bdc-pn__hover { position: absolute; inset: 0; z-index: 2; display: block; font-family: var(--bdc-font-serif); font-size: clamp(48px, 5.73vw, 110px); font-weight: 500; line-height: 1.6; opacity: 0; transition: opacity .3s; }
.bdc-pn__link:hover .bdc-pn__hover { opacity: 1; }
.bdc-pn__subtitle { margin-top: 20px; font-family: var(--bdc-font-serif); font-size: calc(16px + .1vw); line-height: 1.7; }
.bdc-pn__image { position: absolute; top: 50%; left: 50%; z-index: 1; width: 300px; opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.9); transition: .3s; pointer-events: none; }
.bdc-pn__link:hover ~ .bdc-pn__image { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.bdc-contatti { padding-bottom: 51px; }

/* ---------- Legali ---------- */
.bdc-legal__content { width: min(1150px, calc(100% - 60px)); padding: 60px 0 120px; font-family: "Roboto", sans-serif; font-size: 19px; line-height: 1.7; color: #aaa; }
.bdc-legal__content h1, .bdc-legal__content h2, .bdc-legal__content h3, .bdc-legal__content h4 { margin: 1.2em 0 .6em; font-family: var(--bdc-font-serif); font-weight: 400; line-height: 1.3; color: #888; }
.bdc-legal__content h2 { font-size: 42px; }
.bdc-legal__content h3 { font-size: 38px; }
/* Schede espandibili come quelle di iubenda: riquadro bordato, "+" e titolo azzurro in grassetto, chiuse */
.bdc-legal-scheda { margin: 0 0 15px; padding: 10px 15px; border: 1px solid rgba(255, 255, 255, .6); }
.bdc-legal-scheda > summary { display: block; padding-left: 22px; text-indent: -22px; font-weight: 700; line-height: 1.2; color: #6fb2e0; cursor: pointer; list-style: none; }
.bdc-legal-scheda > summary::-webkit-details-marker { display: none; }
.bdc-legal-scheda > summary::before { display: inline-block; content: "+"; width: 22px; text-indent: 0; font-size: 1.3em; line-height: 1; }
.bdc-legal-scheda[open] > summary::before { content: "\2212"; }
.bdc-legal-scheda__body { padding-top: 15px; }
.bdc-legal__content > :first-child { margin-top: 0; }
.bdc-legal__content { overflow-wrap: anywhere; }
.bdc-legal__content svg { display: none; }
.bdc-legal__content img { height: auto; }

/* ---------- 404 ---------- */
.bdc-404 { position: relative; min-height: 100vh; background: #111 var(--bdc-404-bg) center / cover no-repeat; }
.bdc-404::before { position: absolute; inset: 0; content: ""; background: #000; opacity: .3; }
.bdc-ph--404 .bdc-sdc { display: none; }
.bdc-ph--404 .bdc-ph__subtitle { font-weight: 500; color: #fff; }
.error404 .bdc-ft { position: absolute; left: 0; right: 0; bottom: 0; background: transparent; }

/* ---------- Footer ---------- */
.bdc-ft { position: relative; padding: 30px 0; font-family: var(--bdc-font-serif); font-size: 14px; line-height: 1.7; color: #fff; }
.bdc-ft__inner { display: grid; grid-template-columns: 124px minmax(0, 1fr) 124px; align-items: center; padding: 0 3.5%; }
.bdc-ft__col--center { text-align: center; }
.bdc-ft__copy { display: inline-block; color: #888; text-align: center; }
.bdc-ft__copy a { color: #888; text-decoration: none; transition: color .3s; }
.bdc-ft__copy a:hover { color: #fff; }
.bdc-ft__btn { position: relative; display: inline-block; overflow: hidden; padding: 14px 0; font-weight: 500; line-height: 1.6; color: #fff; text-decoration: none; }
.bdc-ft__btn span { display: inline-block; transition: transform .3s; }
.bdc-ft__btn::before { display: none; }
/* Linea dopo "Contattaci" (tt-btn-link di Tank) */
.bdc-ft__btn::after { display: inline-block; content: ""; width: 40px; height: 1px; margin-left: 12px; background: currentColor; vertical-align: middle; }
.bdc-ft__btn:hover span { opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 1600px) {
	.bdc-ph__image { width: 320px; }
}
@media (max-width: 1400px) {
	.bdc-ph:not(.bdc-ph--full) .bdc-ph__inner { padding-left: 8%; padding-right: 8%; }
}
@media (max-width: 1024px) {
	.bdc-ph:not(.bdc-ph--full) .bdc-ph__inner { padding: 250px 8%; }
	.bdc-ph--full .bdc-ph__inner { padding: 0 8%; }
	.bdc-ph:not(.bdc-ph--full) .bdc-ph__image { top: 160px; bottom: auto; display: block; }
	.bdc-ph__image { width: 50%; max-width: 380px; }
	.bdc-ph__image img, .bdc-ph__image::after { aspect-ratio: 1 / 1.3; }
	.bdc-ph__image::after { top: 0; transform: none; }
	.bdc-sdc { display: none; }
	.bdc-intro { grid-template-columns: minmax(0, 1fr); }
	.bdc-intro__title { display: none; }
	.bdc-intro { padding-top: 46px; }
	.bdc-intro__text p { margin-bottom: 32px; }
	.bdc-gallery__item { height: 72vw; }
	/* Galleria tablet/telefono: una foto a tutta larghezza per volta, ritagliata (come lo Swiper originale) */
	.bdc-gallery { margin-top: 0; }
	.bdc-gallery__track { gap: 0; }
	.bdc-gallery__item { width: 100vw; overflow: hidden; }
	.bdc-gallery__item img { width: 100%; object-fit: cover; }
	.bdc-ts { margin-top: 112px; }
	.bdc-progetto .bdc-collina.bdc-wrap { width: calc(100% - 20px); margin-top: 113px; }
	.bdc-progetto { padding-bottom: 143px; }
	/* Sotto 1025px l'intestazione di Tank non e' piu' a tutto schermo: immagine 320px a 160px dall'alto */
	.bdc-ph--full:not(.bdc-ph--404) { display: block; min-height: 0; }
	.bdc-ph--full:not(.bdc-ph--404) .bdc-ph__inner { padding: 300px 8% 260px; }
	.bdc-ph--full:not(.bdc-ph--404) .bdc-ph__image { top: 160px; bottom: auto; display: block; width: 320px; }
	.bdc-contact.bdc-wrap { width: calc(100% - 80px); grid-template-columns: minmax(0, 1fr); row-gap: 90px; text-align: center; }
	.bdc-contact__title { display: none; }
	.bdc-contact__form { text-align: left; }
	.bdc-ft__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.bdc-ft__col--right { display: none; }
	.bdc-ft__col--center { order: 3; margin-top: 25px; }
	.bdc-ft { padding-bottom: 44px; }
}
@media (max-width: 767px) {
	.bdc-ph:not(.bdc-ph--full) .bdc-ph__inner { padding: 240px 30px 156px; }
	.bdc-ph--full .bdc-ph__inner { padding: 0 30px; }
	.bdc-progetto .bdc-wrap { width: calc(100% - 60px); }
	.bdc-intro__text p { margin-bottom: 15px; }
	.bdc-gallery__item { height: 59.5vw; }
	.bdc-progetto { padding-bottom: 61px; }
	.bdc-form__privacy { font-size: 17px; }
	.bdc-ph--404.bdc-ph--full { align-items: flex-start; }
	.bdc-ph--404 .bdc-ph__inner { padding-top: 200px; }
	.bdc-ph__title, .bdc-ph--xxlg .bdc-ph__title, .bdc-ph--xlg .bdc-ph__title, .bdc-ph--lg .bdc-ph__title { font-size: 48px; }
	.bdc-ph__subtitle { margin-top: 40px; }
	/* Pagine semplici (legali): titolo 40px come l'originale */
	.bdc-ph:not(.bdc-ph--xxlg):not(.bdc-ph--xlg):not(.bdc-ph--lg) .bdc-ph__title { font-size: 40px; }
	.bdc-intro { padding-top: 39px; }
	.bdc-gallery { margin-top: 80px; }
	.bdc-ts { margin-top: 70px; }
	.bdc-progetto .bdc-collina.bdc-wrap { width: calc(100% - 20px); margin-top: 0; }
	.bdc-form__field--half { flex-basis: 100%; }
	.bdc-ph--full:not(.bdc-ph--404) .bdc-ph__inner { padding: 240px 30px 156px; }
	.bdc-ph--full:not(.bdc-ph--404) .bdc-ph__image { width: 50%; }
	.bdc-contact.bdc-wrap { row-gap: 55px; }
	.bdc-contact__address { font-size: 14px; }
	.bdc-ft { padding: 60px 0 94px; }
	.bdc-ft__inner { padding: 0 3.5%; }
}
