/* =====================================================================
   04 – FŐOLDAL (front-page.php) – olasz bottegaverde.com felépítés
   Slider: teljes szélesség · többi szakasz: .bv-wrap (1240 px)
   ===================================================================== */

.bv-home .bv-section,
.bv-home .bv-band,
.bv-home .bv-insta { margin-top: max(48px, min(5vw, 80px)); }
.bv-band { padding-top: max(32px, min(3.5vw, 56px)); padding-bottom: max(32px, min(3.5vw, 56px)); }
.bv-band--grey { background: var(--bv-grey); }
.bv-band--beige { background: var(--bv-cream); }
.bv-sub { margin: -18px 0 26px; text-align: center; font-size: 15px; }

/* ---------- Slider ---------- */
.bv-hero { position: relative; padding-left: var(--bv-gutter); padding-right: var(--bv-gutter); }
.bv-hero__track {
	position: relative; overflow: hidden;
	height: max(380px, min(39vw, 880px));
	border-radius: 14px; background: var(--bv-cream);
}
.bv-hero__slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.bv-hero__slide.is-active { opacity: 1; visibility: visible; }
.bv-hero__slide::after {
	content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
	background: linear-gradient(90deg, rgba(247,246,245,.92) 0%, rgba(247,246,245,.7) 32%, rgba(247,246,245,0) 60%);
}
/* a slider képein a termék jobbra (kb. 72%-nál) áll: keskeny kijelzőn is az maradjon a képben */
.bv-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.bv-hero__content {
	position: absolute; z-index: 1; top: 50%; transform: translateY(-50%);
	left: max(24px, min(4vw, 90px)); max-width: max(320px, min(36vw, 600px));
}
/* Ahol a nyilak látszanak, a szöveg ne kerüljön alájuk */
@media (min-width: 1000px) { .bv-hero__content { left: max(88px, min(6vw, 120px)); } }
/* Tablet és kis laptop: a szöveg a kép közepéig is elér, ezért erősebb a világos átmenet */
@media (min-width: 761px) and (max-width: 1200px) {
	.bv-hero__slide::after { background: linear-gradient(90deg, rgba(247,246,245,.94) 0%, rgba(247,246,245,.82) 40%, rgba(247,246,245,0) 72%); }
	.bv-hero__content { max-width: 46%; }
}
.bv-hero__title { margin: 0 0 14px; font-size: max(24px, min(16px + 1.4vw, 44px)); line-height: 1.2; }
.bv-hero__title .bv-script { display: inline-block; font-size: 1.15em; line-height: 1; padding-right: .08em; color: var(--bv-rust); }
.bv-hero__text { margin: 0 0 22px; font-size: 16px; }
.bv-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--bv-white); color: var(--bv-text); font-size: 24px; line-height: 1;
	box-shadow: 0 4px 14px rgba(61,43,36,.15);
}
.bv-hero__arrow--prev { left: calc(var(--bv-gutter) + 16px); }
.bv-hero__arrow--next { right: calc(var(--bv-gutter) + 16px); }
.bv-hero__dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.bv-hero__dot { width: 9px; height: 9px; padding: 0; border: 1px solid var(--bv-text); border-radius: 50%; background: transparent; cursor: pointer; }
.bv-hero__dot.is-active { background: var(--bv-text); }

/* ---------- 2 promó kártya ---------- */
.bv-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: max(32px, min(3vw, 48px)); }
.bv-promo { display: grid; grid-template-columns: 36% 1fr; overflow: hidden; background: var(--bv-white); border: 1px solid var(--bv-line); border-radius: var(--bv-radius); }
.bv-promo a { text-decoration: none; }
.bv-promo__img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.bv-promo__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 22px; }
.bv-promo__body h3 { margin: 0; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: 18px; font-weight: 700; color: var(--bv-text); }
.bv-promo__body p { margin: 0; font-size: 14px; line-height: 1.45; }
.bv-promo__body small { font-size: 11px; color: var(--bv-muted); }
.bv-promo__body .button { margin-top: 10px; }

/* ---------- 3 nagy csempe ---------- */
.bv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bv-tile { position: relative; display: block; aspect-ratio: 9 / 10; overflow: hidden; border-radius: var(--bv-radius); color: var(--bv-white); text-decoration: none; }
.bv-tile:hover { color: var(--bv-white); }
.bv-tile img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bv-tile:hover img { transform: scale(1.04); }
.bv-tile::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); }
.bv-tile__body { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bv-tile__body strong { font-size: 16px; }
@supports not (aspect-ratio: 1 / 1) { .bv-tile::before { content: ""; display: block; padding-top: 111.11%; } } /* 9:10 régebbi böngészőkben */
.bv-tile__body span { font-size: 14px; line-height: 1.45; }
.bv-tile__btn { margin-top: 10px; padding: 8px 18px; border: 1.5px solid var(--bv-white); border-radius: var(--bv-pill); font-weight: 600; }
.bv-tile:hover .bv-tile__btn { background: var(--bv-white); color: var(--bv-text); }

/* ---------- Kategória gombok ---------- */
.bv-catpills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bv-catpills a {
	display: inline-flex; align-items: center; gap: 14px; padding: 6px 18px 6px 6px;
	background: var(--bv-white); border: 1.5px solid var(--bv-text); border-radius: var(--bv-pill);
	color: var(--bv-text); text-decoration: none;
}
.bv-catpills a:hover { background: var(--bv-cream-light); color: var(--bv-text); }
.bv-catpills__img { flex: none; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: var(--bv-card-bg); }
.bv-catpills__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.bv-catpills__name { font-size: 15px; font-weight: 700; }
.bv-catpills__arrow { font-size: 18px; }

/* ---------- Szolgáltatás kártyák ---------- */
.bv-svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bv-svc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 18px 22px; background: var(--bv-white); border: 1px solid var(--bv-line); border-radius: var(--bv-radius); }
.bv-svc-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 8px; border-radius: 50%; background: var(--bv-cream); }
.bv-svc-card h3 { margin: 0; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: 17px; font-weight: 700; color: var(--bv-text); }
.bv-svc-card p { flex: 1; margin: 0 0 12px; font-size: 14px; line-height: 1.45; }

/* ---------- Instagram sáv (teljes szélesség) ---------- */
.bv-insta__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-left: 4px; padding-right: 4px; }
.bv-insta__row a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; }
.bv-insta__row img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bv-insta__row a:hover img { transform: scale(1.05); }
@supports not (aspect-ratio: 1 / 1) {
	.bv-insta__row a { position: relative; }
	.bv-insta__row a::before { content: ""; display: block; padding-top: 100%; }
	.bv-insta__row img { position: absolute; top: 0; left: 0; }
}

/* ---------- Reszponzív ---------- */
@media (max-width: 1200px) {
	.bv-svc-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 999px) {
	.bv-hero__arrow { display: none; }
	.bv-hero__content { max-width: 360px; }
}
@media (max-width: 900px) {
	.bv-promos { grid-template-columns: 1fr; }
	.bv-tiles { grid-template-columns: 1fr 1fr; }
	.bv-tiles .bv-tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
	@supports not (aspect-ratio: 1 / 1) { .bv-tiles .bv-tile:last-child::before { padding-top: 56.25%; } }
	.bv-insta__row { grid-template-columns: repeat(3, 1fr); }
	.bv-insta__row a:nth-child(n+4) { display: none; }
}
@media (max-width: 999px) {
	.bv-hero__track { touch-action: pan-y; } /* a vízszintes húzás a slideré (js/home.js), a függőleges görgetés az oldalé */
	/* váltáskor a távozó dia szövege gyorsan eltűnik, az új kicsit később jelenik meg – így a kettő nem csúszik egymásra */
	.bv-hero__content { transition: opacity .25s ease; }
	.bv-hero__slide:not(.is-active) .bv-hero__content { opacity: 0; }
	.bv-hero__slide.is-active .bv-hero__content { transition-delay: .35s; }
}
@media (max-width: 760px) {
	.bv-hero__track { height: max(420px, min(120vw, 520px)); border-radius: 12px; }
	.bv-hero__slide::after { background: linear-gradient(0deg, rgba(247,246,245,.95) 0%, rgba(247,246,245,.75) 45%, rgba(247,246,245,0) 75%); }
	.bv-hero__content { top: auto; bottom: 24px; left: 20px; right: 20px; transform: none; max-width: none; }
	.bv-hero__text { font-size: 14px; margin-bottom: 16px; }
}
@media (max-width: 600px) {
	.bv-promo { grid-template-columns: 1fr; }
	.bv-promo__img { height: 170px; }
	.bv-tiles { grid-template-columns: 1fr; }
	.bv-tiles .bv-tile, .bv-tiles .bv-tile:last-child { grid-column: auto; aspect-ratio: 4 / 3; }
	@supports not (aspect-ratio: 1 / 1) { .bv-tiles .bv-tile::before, .bv-tiles .bv-tile:last-child::before { padding-top: 75%; } }
	/* Telefonon tömör sorok: ikon balra, cím + szöveg + szöveges link mellette */
	.bv-svc-cards { grid-template-columns: 1fr; gap: 10px; }
	.bv-svc-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 16px; }
	.bv-svc-card__icon { grid-row: span 3; width: 44px; height: 44px; margin: 0; }
	.bv-svc-card h3 { font-size: 15px; }
	.bv-svc-card p { margin: 0 0 4px; font-size: 13px; }
	.bv-svc-card .bv-btn-ghost {
		justify-self: start; min-height: 0; padding: 0 !important;
		border: 0 !important; color: var(--bv-brown) !important;
		font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
	}
	.bv-svc-card .bv-btn-ghost:hover { background: transparent !important; color: var(--bv-rust) !important; }
	.bv-catpills a { gap: 10px; padding-right: 14px; }
	.bv-catpills__img { width: 38px; height: 38px; }
	.bv-catpills__name { font-size: 14px; }
	.bv-insta__row { grid-template-columns: repeat(2, 1fr); }
	.bv-insta__row a:nth-child(n+3) { display: none; }
}
