/*
 * PAGINE VINI: pagina Vini (elenco) e singolo vino. Caricato solo su questi template.
 * Misure dal tema originale (Tank 4.5.1: page header, portfolio interactive, scroll text) e da Elementor/PowerPack.
 */
body.bdc-page-vini { background: #0a0a0a; color: #fff; }
.bdc-page-vini #bdc-vini-content { position: relative; }

/* ---------- Comparsa in testata (ph-appear) ---------- */
.js .bdc-appear { opacity: 0; transform: translate3d(0, 60px, 0); }
.js .bdc-loaded .bdc-appear, .js body.bdc-vini-ready .bdc-appear { opacity: 1; transform: none; transition: opacity 1.5s var(--bdc-ease-expo-out), transform 1.5s var(--bdc-ease-expo-out); transition-delay: .7s; }

/* ---------- Entrate allo scorrimento ---------- */
.js .bdc-anim { opacity: 0; transition: opacity 1.5s var(--bdc-ease-expo-out), transform 1.5s var(--bdc-ease-expo-out); }
.js .bdc-anim[data-anim="fadeinup"] { transform: translate3d(0, 100px, 0); }
.js .bdc-anim[data-anim="skewinup"] { transform: translate3d(0, 100px, 0) skewY(5deg); }
.js .bdc-anim[data-anim="slideinright"] { transform: translate3d(100%, 0, 0); transition-duration: 1.25s; }
.js .bdc-anim[data-anim="zoomin"] { transform: scale3d(.3, .3, .3); transition-duration: 1.25s; }
.js .bdc-anim[data-anim="fadein"] { transition-duration: 2s; transition-delay: 1s; }
.js .bdc-anim.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .bdc-anim, .js .bdc-appear { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Cerchio "Scopri di piu'" ---------- */
.bdc-sdc { position: absolute; left: 3%; bottom: -100px; width: 250px; height: 250px; z-index: 9; color: #fff; font-family: var(--bdc-font-serif); text-decoration: none; }
.bdc-sdc__inner { position: absolute; inset: 0; display: block; }
.bdc-sdc__text { width: 100%; height: 100%; animation: bdc-sdc-spin 10s linear infinite; }
.bdc-sdc__text text { font-size: 33px; letter-spacing: 25px; fill: #bbb; }
.bdc-sdc__icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - 6px)); line-height: 0; color: #999; transition: transform .3s; }
.bdc-sdc__icon svg { width: 16px; height: 16px; }
.bdc-sdc:hover .bdc-sdc__icon { transform: translate(-50%, calc(-30% - 6px)); }
/* Scorrendo il cerchio va a sinistra e sfuma (valori impostati da vini-pagine.js) */
.bdc-sdc { will-change: transform, opacity; }
@keyframes bdc-sdc-spin { to { transform: rotate(360deg); } }
@media (max-width: 1024px) { .bdc-sdc { display: none; } }

/* ---------- Testata pagina Vini (immagine ritagliata a destra, titolo, filigrana) ---------- */
.bdc-vh { position: relative; z-index: 1; }
/* Inner NON posizionato (come Tank): la foto si allinea alla testata intera (right 18vw / 10vw)
   e titolo (z 9), foto (z 2) e filigrana (z 1) restano nello stesso contesto: il testo sta sempre sopra. */
.bdc-vh__inner { position: static; width: 100%; padding: 300px 8% 260px; }
.bdc-vh__caption { position: relative; max-width: 1000px; }
.bdc-vh__title { position: relative; margin: 0; font-family: var(--bdc-font-serif); font-size: clamp(40px, 4vw, 68px); font-weight: 400; line-height: 1.3; color: #fff; z-index: 9; }
.bdc-vh__title b, .bdc-vh__title strong { font-weight: 700; }
.bdc-vh__ghost { position: absolute; display: flex; align-items: center; top: 0; bottom: 0; left: -6%; padding-top: 3%; font-family: var(--bdc-font-serif); font-size: calc(16px + 8vw); font-weight: 600; line-height: 1; color: #fff; white-space: nowrap; opacity: .04; z-index: 1; pointer-events: none; }
.bdc-vh__ghost { animation: bdc-vh-ghost 1.5s var(--bdc-ease-expo-out) .7s both; }
@keyframes bdc-vh-ghost { from { opacity: 0; transform: translate3d(0, 60px, 0); } to { opacity: .04; transform: none; } }
.bdc-vh__image { position: absolute; top: 160px; right: 10vw; width: 320px; z-index: 2; line-height: 0; }
.bdc-vh__image-inner { position: relative; width: 100%; padding-bottom: 130%; }
.bdc-vh__image-inner::before { position: absolute; inset: -1px; content: ""; background: #040404; opacity: .2; z-index: 1; }
.bdc-vh__image-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 540px) {
	.bdc-vh__inner { padding-top: 240px; padding-bottom: 40vw; }
	.bdc-vh__image { width: 50%; }
}
@media (min-width: 1025px) {
	.bdc-vh { display: flex; align-items: center; min-height: 100vh; }
	.bdc-vh__inner { padding-top: 5%; padding-bottom: 5%; }
	.bdc-vh__image { top: 0; bottom: 0; right: 18vw; width: 320px; display: flex; align-items: center; height: 100%; }
	.bdc-vh__image-inner { padding-bottom: 140%; }
}
@media (min-width: 1601px) { .bdc-vh__image { width: 480px; } }
@media (min-width: 1921px) { .bdc-vh__image { width: clamp(340px, 18vw, 800px); } }

/* Contenitore come .tt-wrap di Tank (tt-boxed): largo al massimo 1282px, 8% ai lati fino a 1400px, poi 15px */
.bdc-vh__inner, .bdc-wh__inner { max-width: 1282px; margin-left: auto; margin-right: auto; }
@media (min-width: 1401px) {
	.bdc-vh__inner, .bdc-wh__inner { padding-left: 15px; padding-right: 15px; }
}

/* ---------- Testata singolo vino (immagine di sfondo, titolo, scheda) ---------- */
.bdc-wh { position: relative; z-index: 1; min-height: 100vh; }
.bdc-wh__bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.bdc-wh__bg::before { position: absolute; inset: -1px; content: ""; background: #040404; opacity: .5; z-index: 1; }
.bdc-wh__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.bdc-wh::after { position: absolute; content: ""; bottom: -1px; left: 0; width: 100%; height: 35vh; z-index: 3; pointer-events: none; background: linear-gradient(0deg, #0d0d0d 0%, rgba(13, 13, 13, 0) 100%); }
.bdc-wh__inner { position: relative; width: 100%; padding: 200px 8% 80px; z-index: 4; }
.bdc-wh__caption { position: relative; }
.bdc-wh__title { position: relative; margin: 0; font-family: var(--bdc-font-serif); font-size: clamp(40px, 5vw, 94px); font-weight: 500; line-height: 1.3; color: #fff; z-index: 9; }
.bdc-wh__subtitle { position: relative; margin: 40px 0 0; font-family: var(--bdc-font-serif); font-size: calc(15px + .5vw); font-weight: 600; line-height: 1.4; color: #e4e4e4; z-index: 9; }
.bdc-wh__info { position: relative; margin-top: 60px; font-family: var(--bdc-font-serif); z-index: 9; }
.bdc-wh__info ul { margin: 0; padding: 0; list-style: none; }
.bdc-wh__info li { position: relative; display: block; width: 100%; margin: 15px 0 25px; }
.bdc-wh__info-head, .bdc-wh__info-cont { font-size: calc(17px + .1vw); line-height: 1.7; }
.bdc-wh__info-head { margin-bottom: 5px; opacity: .7; }
@media (min-width: 769px) {
	.bdc-wh { min-height: 0; }
	.bdc-wh__inner { padding-top: 250px; padding-bottom: 140px; }
	.bdc-wh__info li { display: inline-block; width: auto; max-width: 320px; vertical-align: top; padding-right: 30px; margin: 15px 25px 15px 0; }
	.bdc-wh__info li:last-child { padding-right: 0; margin-right: 0; }
	.bdc-wh__info li::after { position: absolute; display: block; content: ""; top: 24px; right: 0; width: 1px; height: 60px; margin-top: -18px; background: rgba(255, 255, 255, .4); }
	.bdc-wh__info li:last-child::after { display: none; }
}
@media (min-width: 1025px) {
	.bdc-wh { display: flex; align-items: center; min-height: 100vh; }
	.bdc-wh__inner { display: flex; padding-top: 5%; padding-bottom: 5%; }
	.bdc-wh__caption { flex: 0 0 75%; max-width: 75%; align-self: center; padding-right: 10%; }
	.bdc-wh__subtitle { margin-bottom: 30px; }
	.bdc-wh__info { flex: 0 0 25%; max-width: 25%; align-self: center; margin: 60px 0 0; }
	.bdc-wh__info li { display: block; width: 100%; max-width: 100%; padding: 0; margin: 0 0 25px; }
	.bdc-wh__info li:last-child { margin: 0; }
	.bdc-wh__info li::after { display: none; }
}
/* Sopra 1400px Tank passa da 8% a 15px di margine interno (come .bdc-vh__inner) */
@media (min-width: 1401px) {
	.bdc-wh__inner { padding-left: 15px; padding-right: 15px; }
}

/* ---------- Sezioni del singolo vino (contenitore 1140px come Elementor) ---------- */
.bdc-ws { position: relative; }
.bdc-ws--terr { padding: 100px 0 60px; }
.bdc-ws--wine { padding: 10% 0; }
.bdc-ws__row { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1140px; margin: 0 auto; }
.bdc-ws__col { min-width: 0; padding: 10px; }
.bdc-ws__col--text, .bdc-ws__col--desc { padding: 0 30px; }
.bdc-ws__col--bottle { padding: 0 0 40px; }
.bdc-ws__text { font-size: 16px; line-height: 1.7; color: #b9b9b9; }
.bdc-ws__text p { margin: 0 0 30px; }
.bdc-ws__text--wine { margin-bottom: 20px; font-size: 19px; }
.bdc-ws__col--desc { padding: 0 44px; }
@media (min-width: 768px) { .bdc-ws__col--desc { padding: 0 40px; } }
.bdc-ws__img { text-align: center; line-height: 0; }
.bdc-ws__img img { display: inline-block; height: auto; }
.bdc-ws__img--map img { width: 70%; }
.bdc-ws__img--bottle img { width: 60%; }
.bdc-ws__btn { display: inline-block; padding: 12px 24px; border: 2px solid #292929; border-radius: 0; background: transparent; font-family: Roboto, Arial, sans-serif; font-size: 14px; font-weight: 600; line-height: 1; text-transform: uppercase; color: #fff; text-decoration: none; transition: transform .3s; }
.bdc-ws__btn:hover, .bdc-ws__btn:focus-visible { color: #fff; transform: scale(1.1); }
@media (min-width: 768px) {
	.bdc-ws--wine { padding: 6% 0; }
	.bdc-ws--wine .bdc-ws__row { grid-template-columns: 49.552% 50%; align-items: center; }
	.bdc-ws__col--bottle { padding: 10px; }
}
@media (min-width: 1025px) {
	.bdc-ws--terr .bdc-ws__row { grid-template-columns: 40% 60%; }
	.bdc-ws__col--text { padding: 10px; }
	.bdc-ws--wine { padding: 0 0 100px; }
	.bdc-ws__col--desc { padding: 80px 200px 80px 0; }
}

/* ---------- Sezione elenco vini ---------- */
.bdc-vsec { position: relative; padding: 10% 10px; }
.bdc-vsec--list { padding-top: 10%; }
@media (min-width: 768px) { .bdc-vsec { padding: 6% 10px; } }
@media (min-width: 1025px) {
	.bdc-vsec--list { padding: 80px 10px 150px; }
	.bdc-vsec--single { padding: 0 10px 150px; }
}

/* Titolo "I NOSTRI VINI" (tt-heading lg + stroke) */
.bdc-vtitle { margin: 0 0 10%; font-family: var(--bdc-font-serif); font-size: calc(28px + 2vw); font-weight: 800; line-height: 1.3; text-align: center; color: #fff; -webkit-text-stroke: 1px #fff; -webkit-text-fill-color: transparent; }

/* ---------- Elenco desktop (portfolio interactive: compact + borders) ---------- */
.bdc-vl { display: none; }
@media (min-width: 1025px) {
	.bdc-vl { display: block; position: relative; z-index: 0; isolation: isolate; margin-top: -70px; padding: 0 10%; font-family: var(--bdc-font-serif); }
	.bdc-vl__item { position: relative; padding: 35px 15% 45px 0; border-bottom: 1px solid rgba(144, 144, 144, .35); }
	.bdc-vl__link { position: relative; display: flex; align-items: center; overflow: hidden; color: #fff; text-decoration: none; }
	.bdc-vl__title, .bdc-vl__hover { margin: 0; padding: 0; font-family: var(--bdc-font-serif); font-size: calc(14px + 3.2vw); font-weight: 500; line-height: 1.5; color: #fff; white-space: nowrap; transition: transform .6s cubic-bezier(.51, .57, .17, 1); }
	.bdc-vl__title { position: relative; display: block; overflow: hidden; text-overflow: ellipsis; opacity: .7; }
	.bdc-vl__hover { position: absolute; left: 0; display: flex; width: fit-content; transform: translate3d(0, 100%, 0); }
	.bdc-vl__hover span { position: relative; display: block; padding-right: 5vw; animation: bdc-marquee 3s linear infinite paused; }
	.bdc-vl__hover span::after { position: absolute; display: block; content: ""; right: 1.9vw; top: 56%; width: .8vw; height: .8vw; background: #fff; border-radius: 100px; transform: translate3d(0, -50%, 0); }
	.bdc-vl__link:hover .bdc-vl__title { transform: translate3d(0, -100%, 0); transition-delay: .1s; }
	.bdc-vl__link:hover .bdc-vl__hover { transform: translate3d(0, 0, 0); transition-delay: .1s; }
	.bdc-vl__link:hover .bdc-vl__hover span { animation-play-state: running; }
	.bdc-vl__cat-wrap { position: absolute; left: 0; bottom: 10%; line-height: 1; overflow: hidden; z-index: 1; }
	.bdc-vl__cat { position: relative; display: inline-block; font-size: calc(13px + .1vw); line-height: 1.4; color: #b3b3b3; transform: translate3d(0, 100%, 0); transition: transform .6s cubic-bezier(.51, .57, .17, 1); }
	.bdc-vl__link:hover ~ .bdc-vl__cat-wrap .bdc-vl__cat { transform: none; transition-delay: .2s; }
	.bdc-vl__image { display: none; }
}
@keyframes bdc-marquee { to { transform: translate3d(-100%, 0, 0); } }

/* Immagine che segue il mouse (cerchio dietro ai titoli, come il cursore di Tank) */
.bdc-vl__reveal { position: fixed; top: 0; left: 0; width: 20vw; height: 20vw; margin: -10vw 0 0 -10vw; border-radius: 50%; overflow: hidden; z-index: -1; pointer-events: none; opacity: 0; transform: scale(.2); transition: opacity .3s, transform .3s; }
.bdc-vl__reveal.is-on { opacity: 1; transform: scale(1); }
.bdc-vl__reveal img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Griglia tablet/telefono (PowerPack posts card) ---------- */
.bdc-vg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; margin: 15px; }
@media (min-width: 768px) { .bdc-vg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .bdc-vg { display: none; } }
.bdc-vg__card { display: flex; flex-direction: column; border: 1px solid #fff; overflow: hidden; }
.bdc-vg__thumb { display: block; line-height: 0; }
.bdc-vg__thumb img { width: 100%; height: auto; aspect-ratio: 2560 / 1696; object-fit: cover; }
.bdc-vg__body { padding: 20px; text-align: center; }
.bdc-vg__terms { margin-bottom: -5px; font-size: 19px; line-height: 1.7; }
.bdc-vg__term { font-family: var(--bdc-font-serif); font-size: 12px; }
.bdc-vg__title { margin: 0 0 10px; font-family: var(--bdc-font-serif); font-size: 24px; font-weight: 600; line-height: 1.4; }
.bdc-vg__title a { color: #fff; text-decoration: none; }

/* ---------- Testo scorrevole (due righe, la seconda al contrario) ---------- */
.bdc-st { position: relative; padding: 10% 0; overflow: hidden; }
@media (min-width: 768px) { .bdc-st { padding: 6% 0; } }
@media (min-width: 1025px) { .bdc-st { padding: 150px 0; } }
.bdc-st__row { display: flex; position: relative; pointer-events: none; }
.bdc-st__inner { padding-left: 2vw; font-family: var(--bdc-font-serif); font-size: 7.5vw; font-style: italic; font-weight: 500; line-height: 1.1; color: #fff; white-space: nowrap; animation: bdc-st-move 15s linear infinite; }
.bdc-st__inner::after { content: attr(data-text); padding-left: 2vw; }
.bdc-st__row--rev .bdc-st__inner { animation-direction: reverse; }
@media (min-width: 1025px) {
	.bdc-st__inner { font-weight: 700; color: transparent; -webkit-text-stroke: 2px #aaa; -webkit-text-fill-color: transparent; }
}
@keyframes bdc-st-move { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .bdc-st__inner, .bdc-sdc__text, .bdc-vl__hover span { animation: none; } }
