/* ==========================================================================
   Barberia Aurora — main.css
   Design token dal brief: palette, tipografia, bottoni pillola, card,
   shadow. Nessun framework, CSS puro.
   ========================================================================== */

:root {
	--bg-page: #EFF6FF;
	--text-primary: #1E3A5F;
	--text-secondary: #64748B;

	--accent-start: #2563EB;
	--accent-end: #1D4ED8;
	--accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));

	--chip-bg: #DBEAFE;
	--chip-text: #1D4ED8;

	--dark-start: #1E293B;
	--dark-end: #0F172A;
	--dark-gradient: linear-gradient(160deg, var(--dark-start), var(--dark-end));
	--dark-text: #93C5FD;

	--border: #BFDBFE;

	--white: #FFFFFF;

	--shadow-card: 0 2px 12px rgba(37, 99, 235, 0.08);
	--shadow-card-hover: 0 12px 32px -8px rgba(37, 99, 235, 0.28);

	--font-display: 'Poppins', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;

	--radius-pill: 999px;
	--radius-card: 10px;

	--container-width: 1180px;
}

/* --------------------------------------------------------------------
   Reset essenziale
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg-page);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--text-primary);
	margin: 0;
	line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

button { font-family: inherit; cursor: pointer; }

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

.bba-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent-start);
	color: #fff;
	padding: 12px 20px;
	z-index: 999;
	border-radius: 0 0 8px 0;
}
.bba-skip-link:focus { left: 0; }

:focus-visible {
	outline: 3px solid var(--accent-start);
	outline-offset: 2px;
}

.bba-container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* --------------------------------------------------------------------
   Elementi comuni: bottoni, chip, badge, card foto placeholder
   ------------------------------------------------------------------ */
.bba-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	padding: 14px 28px;
	border: 2px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}
.bba-btn--sm { padding: 10px 22px; font-size: 14px; }

.bba-btn--primary {
	background: var(--accent-gradient);
	color: #fff;
	box-shadow: var(--shadow-card);
}
.bba-btn--primary:hover {
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-3px);
}

.bba-btn--outline {
	background: transparent;
	color: var(--accent-end);
	border-color: var(--accent-end);
}
.bba-btn--outline:hover {
	background: var(--chip-bg);
	transform: translateY(-3px);
}

.bba-btn--outline-dark {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,0.35);
}
.bba-btn--outline-dark:hover {
	background: rgba(255,255,255,0.08);
	border-color: #fff;
	transform: translateY(-3px);
}

.bba-btn--glow { position: relative; }
.bba-btn--glow::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: var(--radius-pill);
	background: var(--accent-gradient);
	filter: blur(16px);
	opacity: 0.55;
	z-index: -1;
	animation: bba-glow-pulse 2.4s ease-in-out infinite;
}
@keyframes bba-glow-pulse {
	0%, 100% { opacity: 0.4; transform: scale(1); }
	50% { opacity: 0.75; transform: scale(1.08); }
}

.bba-chip {
	display: inline-flex;
	align-items: center;
	background: var(--chip-bg);
	color: var(--chip-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 6px 16px;
	border-radius: var(--radius-pill);
}
.bba-chip--dark {
	background: rgba(255,255,255,0.15);
	color: #fff;
	backdrop-filter: blur(4px);
}
.bba-chip--link:hover { background: var(--accent-start); color: #fff; }

.bba-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	background: #fff;
	border: 1px solid var(--border);
	padding: 6px 14px;
	border-radius: var(--radius-pill);
}
.bba-badge--small { margin-bottom: 8px; }

.bba-placeholder-photo {
	width: 100%;
	height: 100%;
	min-height: 220px;
	background:
		repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
		linear-gradient(160deg, #93C5FD, #2563EB 55%, #1D4ED8);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	position: relative;
}

/* Varia leggermente il gradiente in base alla posizione, cosi' le
   card affiancate (team/galleria) non sembrano tutte fotocopiate. */
.bba-team-card:nth-child(2) .bba-placeholder-photo,
.bba-gallery__item:nth-child(3n+2) .bba-placeholder-photo {
	background:
		repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
		linear-gradient(160deg, #60A5FA, #1D4ED8 55%, #1E3A5F);
}
.bba-team-card:nth-child(3) .bba-placeholder-photo,
.bba-gallery__item:nth-child(3n) .bba-placeholder-photo {
	background:
		repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
		linear-gradient(160deg, #1E3A5F, #2563EB 55%, #60A5FA);
}

.bba-placeholder-photo__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	border: 1.5px solid rgba(255,255,255,0.3);
}
.bba-placeholder-photo__icon svg { width: 42px; height: 42px; }

.bba-placeholder-photo__initials {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.12em;
	color: rgba(255,255,255,0.75);
	text-transform: uppercase;
}

.bba-placeholder-photo--team .bba-placeholder-photo__icon { width: 64px; height: 64px; }
.bba-placeholder-photo--team .bba-placeholder-photo__icon svg { width: 32px; height: 32px; }

.bba-photo-credit {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: rgba(15, 23, 42, 0.55);
	color: #fff;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
}

.bba-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.bba-section-head .bba-chip { margin-bottom: 16px; }
.bba-section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; margin-bottom: 12px; }
.bba-section-sub { color: var(--text-secondary); font-size: 16px; }

/* --------------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------------ */
.bba-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.bba-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.bba-reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
	.bba-btn--glow::after { animation: none; }
	.bba-marquee__track { animation: none; }
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */
.bba-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(239, 246, 255, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.bba-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.bba-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--text-primary);
}
.bba-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--accent-gradient);
	color: #fff;
	font-weight: 800;
	font-size: 16px;
}

.bba-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
	font-size: 15px;
	font-weight: 500;
}
.bba-nav__list a:hover { color: var(--accent-end); }

.bba-header__cta { margin-left: auto; }

.bba-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 0;
	align-items: center;
}
.bba-hamburger__bar {
	width: 18px;
	height: 2px;
	background: var(--text-primary);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.bba-header.is-menu-open .bba-hamburger__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.bba-header.is-menu-open .bba-hamburger__bar:nth-child(3) { opacity: 0; }
.bba-header.is-menu-open .bba-hamburger__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   2. HERO
   ========================================================================== */
.bba-hero { padding: 56px 0 0; overflow: hidden; }

.bba-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.bba-hero__content { position: relative; z-index: 1; }

.bba-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.bba-hero__title {
	font-size: clamp(36px, 5vw, 52px);
	font-weight: 800;
	margin-bottom: 20px;
	letter-spacing: -0.01em;
}

.bba-hero__text { font-size: 17px; max-width: 46ch; margin-bottom: 32px; }

.bba-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.bba-hero__watermark {
	position: absolute;
	left: -10px;
	bottom: -40px;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(70px, 11vw, 150px);
	color: var(--accent-start);
	opacity: 0.08;
	z-index: -1;
	white-space: nowrap;
	pointer-events: none;
}

.bba-hero__media { position: relative; }

.bba-hero__photo {
	margin: 0;
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-card);
	overflow: hidden;
	clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 92%);
	box-shadow: var(--shadow-card);
}
.bba-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.bba-hero__floating-badge {
	position: absolute;
	left: -20px;
	bottom: 32px;
	background: #fff;
	color: var(--text-primary);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	padding: 14px 22px;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card-hover);
}

/* ==========================================================================
   3. MARQUEE + STATISTICHE
   ========================================================================== */
.bba-marquee-bar {
	background: var(--dark-gradient);
	overflow: hidden;
	padding: 14px 0;
	margin-top: 48px;
	border-top: 1px solid rgba(147, 197, 253, 0.15);
	border-bottom: 1px solid rgba(147, 197, 253, 0.15);
}
.bba-marquee { width: 100%; }
.bba-marquee__track {
	display: flex;
	gap: 40px;
	width: max-content;
	animation: bba-marquee-scroll 26s linear infinite;
}
.bba-marquee__item {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dark-text);
	white-space: nowrap;
}
@keyframes bba-marquee-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.bba-stats { background: var(--dark-gradient); padding: 56px 0; }
.bba-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: center;
}
.bba-stat { display: flex; flex-direction: column; gap: 6px; }
.bba-stat__number {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(28px, 4vw, 40px);
	color: #fff;
}
.bba-stat__label { font-size: 13px; color: var(--dark-text); }

/* ==========================================================================
   4. RELAX / BARBER CLUB
   ========================================================================== */
.bba-relax { padding: 96px 0; }
.bba-relax__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
.bba-relax__photo {
	margin: 0;
	position: relative;
	aspect-ratio: 5 / 4;
	border-radius: var(--radius-card);
	overflow: hidden;
	clip-path: polygon(0 0, 92% 0, 100% 100%, 0% 100%);
	box-shadow: var(--shadow-card);
}
.bba-relax__photo img { width: 100%; height: 100%; object-fit: cover; }

.bba-relax__content .bba-chip { margin-bottom: 16px; }
.bba-relax__content .bba-section-title { margin-bottom: 20px; }
.bba-relax__content p { font-size: 15.5px; }
.bba-relax__claim { margin-top: 20px; font-size: 16px; color: var(--text-primary); }

/* ==========================================================================
   5. TEAM
   ========================================================================== */
.bba-team { padding: 96px 0; }
.bba-team__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.bba-team-card {
	background: #fff;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bba-team-card:hover {
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-3px);
}
.bba-team-card__photo {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}
.bba-team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.bba-team-card__overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 20px;
	background: linear-gradient(0deg, rgba(15,23,42,0.85) 10%, rgba(15,23,42,0) 100%);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.bba-team-card__name { color: #fff; font-size: 18px; font-weight: 700; }
.bba-team-card__overlay .bba-chip--dark { align-self: flex-start; }
.bba-team-card__cta {
	display: block;
	text-align: center;
	padding: 16px;
	font-weight: 600;
	font-size: 14px;
	color: var(--accent-end);
	background: var(--chip-bg);
	transition: background 0.2s ease, color 0.2s ease;
}
.bba-team-card__cta:hover { background: var(--accent-gradient); color: #fff; }

/* ==========================================================================
   6. GALLERIA
   ========================================================================== */
.bba-gallery { padding: 96px 0; background: #E4EEFF; }
.bba-gallery__scroller {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 24px 12px;
	scrollbar-width: thin;
}
.bba-gallery__scroller::-webkit-scrollbar { height: 8px; }
.bba-gallery__scroller::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.bba-gallery__item {
	position: relative;
	flex: 0 0 auto;
	width: min(260px, 70vw);
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-card);
	overflow: hidden;
	scroll-snap-align: start;
	margin: 0;
	box-shadow: var(--shadow-card);
}
.bba-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.bba-gallery__label {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	background: rgba(15,23,42,0.65);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
}
.bba-gallery__hint {
	text-align: center;
	margin-top: 16px;
	font-size: 13px;
	color: var(--text-secondary);
}

/* ==========================================================================
   7. RECENSIONI
   ========================================================================== */
.bba-reviews { padding: 96px 0; }
.bba-reviews__scroller {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding: 4px 24px 12px;
	scroll-snap-type: x proximity;
}
.bba-review-card {
	flex: 0 0 auto;
	width: min(280px, 80vw);
	background: #fff;
	border-radius: var(--radius-card);
	padding: 24px;
	box-shadow: var(--shadow-card);
	scroll-snap-align: start;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bba-review-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.bba-review-card__stars { color: #F59E0B; letter-spacing: 2px; margin-bottom: 12px; font-size: 15px; }
.bba-review-card__text { font-size: 14.5px; font-style: italic; margin-bottom: 16px; }
.bba-review-card__name { font-size: 14px; color: var(--text-primary); margin: 0; }

/* ==========================================================================
   8. ORARI & DOVE SIAMO
   ========================================================================== */
.bba-orari { padding: 96px 0; background: #E4EEFF; }
.bba-orari__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 24px;
	align-items: stretch;
}
.bba-orari__card {
	background: #fff;
	border-radius: var(--radius-card);
	padding: 32px;
	box-shadow: var(--shadow-card);
}
.bba-orari__title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.bba-orari__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.bba-orari__list li {
	display: flex;
	justify-content: space-between;
	font-size: 14.5px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--border);
	color: var(--text-secondary);
}
.bba-orari__list li strong { color: #16A34A; font-weight: 600; }
.bba-orari__list li strong.bba-orari__closed { color: var(--text-secondary); }
.bba-orari__contact p { margin: 0 0 10px; font-size: 14.5px; }
.bba-orari__contact a:hover { color: var(--accent-end); }

.bba-orari__map {
	position: relative;
	border-radius: var(--radius-card);
	overflow: hidden;
	min-height: 320px;
	box-shadow: var(--shadow-card);
}
.bba-orari__map iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	display: block;
}
.bba-orari__map-link {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-card);
}

/* ==========================================================================
   9. CTA FINALE
   ========================================================================== */
.bba-cta-finale {
	background: var(--dark-gradient);
	padding: 96px 0;
	text-align: center;
}
.bba-cta-finale__inner { max-width: 640px; margin: 0 auto; }
.bba-cta-finale__title {
	color: #fff;
	font-weight: 700;
	font-size: clamp(28px, 4.2vw, 42px);
	margin-bottom: 16px;
}
.bba-cta-finale__text { color: var(--dark-text); margin-bottom: 32px; }
.bba-cta-finale__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.bba-footer { background: var(--dark-end); padding: 64px 0 0; }
.bba-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(147,197,253,0.15);
}
.bba-logo--footer { color: #fff; margin-bottom: 12px; }
.bba-footer__brand p { color: var(--dark-text); font-size: 14px; max-width: 32ch; }
.bba-footer__title { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.bba-footer__list { display: flex; flex-direction: column; gap: 10px; }
.bba-footer__list a, .bba-footer__list li { color: var(--dark-text); font-size: 14px; }
.bba-footer__list a:hover { color: #fff; }
.bba-footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.bba-footer__social .bba-chip {
	background: rgba(147,197,253,0.12);
	color: var(--dark-text);
}
.bba-footer__bottom {
	text-align: center;
	padding: 20px 0;
	font-size: 12.5px;
	color: var(--dark-text);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
	.bba-hero__grid { grid-template-columns: 1fr; }
	.bba-hero__watermark { display: none; }
	.bba-relax__grid { grid-template-columns: 1fr; }
	.bba-team__grid { grid-template-columns: repeat(2, 1fr); }
	.bba-orari__grid { grid-template-columns: 1fr; }
	.bba-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.bba-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(320px, 85vw);
		height: 100vh;
		background: #fff;
		box-shadow: -8px 0 24px rgba(15,23,42,0.12);
		padding: 96px 32px 32px;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		z-index: 90;
	}
	.bba-header.is-menu-open .bba-nav { transform: translateX(0); }
	.bba-nav__list { flex-direction: column; align-items: flex-start; gap: 24px; font-size: 18px; }
	.bba-hamburger { display: inline-flex; }
	.bba-header__cta { display: none; }

	.bba-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.bba-team__grid { grid-template-columns: 1fr; }
	.bba-footer__grid { grid-template-columns: 1fr; }
	.bba-hero { padding-top: 32px; }
	.bba-relax, .bba-team, .bba-gallery, .bba-reviews, .bba-orari, .bba-cta-finale {
		padding-top: 64px;
		padding-bottom: 64px;
	}
}
