/*
	Honey & Fire — Custom Styles
*/

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,700;0,900;1,700;1,900&display=swap');

/* ─── Mobile hamburger menu ─── */

#menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 0;
	width: 32px;
	height: 32px;
	cursor: pointer;
	position: relative;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

#menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #1A1A2E;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

#menu-toggle.open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
	opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Hamburger breakpoint — bumped from 736px to 1100px because the nav now
   carries 12 items (7 menu links + 3 social icons + 2 language flags),
   so the desktop layout overlaps the wordmark on narrow desktop windows.
   Mirror HTML5UP's mobile-mode header resets (which fire at 736px) so the
   wordmark and toggle don't collide between 737–1100px. */
@media screen and (max-width: 1100px) {
	#header {
		height: 2.5em;
		line-height: 2.5em;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	#header h1 {
		text-align: center;
		position: relative;
		left: 0;
		top: 0;
		height: 2.5em;
		line-height: 2.5em;
	}
	#header h1 a { font-size: 1em; }
	body { padding-top: 2.5em; }

	#menu-toggle {
		display: flex;
	}

	#header nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: auto;
		line-height: 1.5;
		background: #fff;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
		padding: 0.5em 0;
		z-index: 10001;
	}

	#header nav.open {
		display: block !important;
	}

	#header nav ul {
		display: flex;
		flex-direction: column;
		padding: 0;
		margin: 0;
		list-style: none;
	}

	#header nav ul li {
		display: block;
		width: 100%;
	}

	#header nav ul li a {
		display: block;
		padding: 0.8em 1.5em;
		color: #1A1A2E;
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}

	#header nav ul li:last-child a {
		border-bottom: none;
	}

	/* Mobile: Instagram / Facebook / Spotify + IT / UK flags share one
	   centred row at the bottom of the dropdown instead of stacking. */
	#header nav ul {
		display: block;
		text-align: center;
	}
	#header nav ul li.nav-icon,
	#header nav ul li.nav-lang {
		display: inline-block;
		width: auto;
	}
	#header nav ul li.nav-icon a,
	#header nav ul li.nav-lang a {
		display: inline-block;
		padding: 0.7em 0.55em;
		border-bottom: 0;
	}
	#header nav ul li.nav-icon:first-of-type {
		margin: 0.3em 0 0 0;
		padding-top: 0.3em;
		border-top: 1px solid rgba(0, 0, 0, 0.05);
	}
	#header nav ul li.nav-icon:first-of-type,
	#header nav ul li.nav-icon ~ li.nav-icon,
	#header nav ul li.nav-lang {
		border-top-color: transparent;
	}
	/* Re-add a single divider strip ABOVE the whole icon row */
	#header nav ul li.nav-icon:first-of-type {
		border-top: 1px solid rgba(0, 0, 0, 0.05);
	}
	#header nav ul li.nav-lang svg {
		width: 26px;
		height: 17px;
	}
}

/* ─── Galleria — masonry layout for mixed aspect ratios ─── */

.gallery {
	display: block !important;
	column-count: 3;
	column-gap: 0.8em;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto 2em;
}

.gallery article {
	display: block;
	width: 100% !important;
	break-inside: avoid;
	margin: 0 0 0.8em;
	page-break-inside: avoid;
}

.gallery article .image,
.gallery article img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

@media screen and (max-width: 1000px) {
	.gallery {
		column-count: 2;
	}
}

@media screen and (max-width: 736px) {
	#galleria { display: none; }
	#header nav ul li a[href="#galleria"] { display: none; }

	/* HTML5UP forces .main.fullscreen to height: auto on phones, which
	   lets the hero (and Chi Siamo) size to their text content and end
	   well before the viewport bottom — exposing the next section's
	   honeycomb pattern at the bottom of the screen. Reinstate at-least
	   one full viewport height. 100dvh accounts for Safari's dynamic
	   URL-bar; 100vh is the desktop fallback. */
	.main.fullscreen {
		min-height: 100vh;
		min-height: 100dvh;
	}
}

/* ─── Chi Siamo — wider content box ─── */

@media screen and (min-width: 737px) {
	#chi-siamo .content {
		width: 60%;
		max-width: 700px;
	}
}

/* ─── Hero ─── */

#hero h2 {
	font-family: 'Great Vibes', cursive;
	font-weight: 400;
	font-size: 7em;
	letter-spacing: 0.02em;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
	line-height: 1.1;
}

#hero h2 .amp {
	color: #D4A030;
}

/* ─── Header logo (top nav) — same elegant script ─── */

#header h1 a {
	font-family: 'Great Vibes', cursive;
	font-weight: 400;
	font-size: 1.6em;
	letter-spacing: 0.02em;
}

#hero p {
	font-size: 1.4em;
	letter-spacing: 0.1em;
	text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 736px) {
	#hero h2 {
		font-size: 4.5em;
	}
	#hero p {
		font-size: 1.1em;
	}
}

/* ─── La Band — Members Grid ─── */

.members-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5em;
	max-width: 900px;
	margin: 0 auto;
}

.member {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.member-photo {
	width: 160px;
	height: 160px;
	min-height: 160px;
	max-height: 160px;
	box-sizing: border-box;
	border-radius: 50%;
	margin: 0 0 1em;
	overflow: hidden;
	border: 3px solid rgba(0, 0, 0, 0.1);
	transition: border-color 0.3s ease, transform 0.3s ease;
	flex: none;
	position: relative;
}

.member-photo > * {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.member:hover .member-photo {
	border-color: #D4A030;
	transform: scale(1.05);
}

.member-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.member-photo.placeholder {
	background: linear-gradient(135deg, #D4A030, #C0392B);
}

.member-photo.placeholder .initial {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3em;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.9);
	font-family: 'Playfair Display', serif;
}

.member h3 {
	margin: 0 0 0.2em;
	font-size: 1.3em;
	color: #1A1A2E;
	line-height: 1.4em;
	min-height: 1.4em;
}

.member h3:empty::before {
	content: "\00a0";
}

.member-role {
	color: #D4A030;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 0.85em;
	margin: 0 0 0.5em;
}

.member-bio {
	font-size: 0.9em;
	color: rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 1000px) {
	.members-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 480px) {
	.members-grid {
		grid-template-columns: 1fr;
	}
	.member-photo {
		width: 130px;
		height: 130px;
		min-height: 130px;
		max-height: 130px;
	}
}

/* ─── Video ─── */

.video-grid {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 1.5em;
	max-width: 900px;
	margin: 0 auto;
}

/* Two independent columns pack tightly (no rigid row-bands), so the tallest
   clip sits directly below the shortest and both columns end about even. */
.video-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5em;
	flex: 1;
	min-width: 0;
}

@media screen and (max-width: 736px) {
	.video-grid {
		flex-direction: column;
		align-items: center;
	}

	.video-col {
		width: 100%;
	}
}

.video-container {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Portrait clips render tall; cap width so they stay reasonable and centered. */
.video-container.portrait {
	max-width: 20em;
}

.video-container iframe,
.video-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ─── Repertorio ─── */

#repertorio > .content {
	width: 65em;
}

.repertorio-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 2em;
}

.repertorio-tabs .tab {
	background: transparent;
	border: 2px solid rgba(0, 0, 0, 0.15);
	color: #1A1A2E;
	padding: 0.5em 1.6em;
	border-radius: 30px;
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.4em;
}

.repertorio-tabs .tab:hover {
	border-color: #D4A030;
	color: #D4A030;
	background: rgba(212, 160, 48, 0.08);
}

.repertorio-tabs .tab.active {
	background: #D4A030;
	border-color: #D4A030;
	color: #fff;
}

.repertorio-search {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1em;
	margin-bottom: 2em;
}

.repertorio-search input {
	width: 300px;
	padding: 0.5em 1em;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-radius: 30px;
	font-size: 0.9em;
	background: rgba(255, 255, 255, 0.8);
	color: #1A1A2E;
	outline: none;
	transition: border-color 0.3s ease;
}

.repertorio-search input:focus {
	border-color: #D4A030;
}

.repertorio-search input::placeholder {
	color: #999;
}

.search-stat {
	display: none;
	font-size: 0.85em;
	color: #888;
	font-style: italic;
}

.repertorio-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5em;
}

.repertorio-grid > * {
	width: 100%;
	max-width: 800px;
}

.repertorio-category {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 10px;
	padding: 1.5em;
	border-left: 4px solid #D4A030;
	display: none;
}

.repertorio-category[data-category="soft"] {
	border-left-color: #D4A030;
}

.repertorio-category[data-category="upbeat"] {
	border-left-color: #C0392B;
}

.repertorio-category[data-category="italiano"] {
	border-left-color: #2E7D32;
}

.repertorio-category[data-category="rock"] {
	border-left-color: #6A1B9A;
}

.repertorio-category[data-category="strumentali"] {
	border-left-color: #5C6BC0;
}

.category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-header h3 {
	margin: 0;
	font-size: 1.2em;
	color: #1A1A2E;
}

.song-count {
	display: none;
}

.song-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.song-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.35em 0;
	border-bottom: 1px dotted rgba(0, 0, 0, 0.12);
}

.song-list li:last-child {
	border-bottom: none;
}

.song-title {
	font-weight: 900;
	color: #1A1A2E;
	font-size: 0.9em;
	flex: 1;
	min-width: 0;
	text-align: left;
}

.song-artist {
	color: #888;
	font-style: italic;
	font-size: 0.85em;
	text-align: right;
	flex-shrink: 0;
	margin-left: 1em;
}

.song-artist .emoji {
	font-style: normal;
}

.spotify-embed {
	max-width: 800px;
	margin: 0 auto 2.5em;
}

.spotify-embed h3 {
	color: #1A1A2E;
	font-size: 1.1em;
	margin-bottom: 1em;
}

.spotify-embed iframe {
	border-radius: 12px;
}

.repertorio-footer {
	text-align: center;
	font-size: 1.3em;
	font-style: italic;
	color: #C0392B;
	margin-top: 1.5em;
	font-weight: 700;
}

.repertorio-all {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 10px;
	padding: 1.5em;
}

.song-list-all {
	column-count: 2;
	column-gap: 3em;
}

.song-list-all li {
	break-inside: avoid;
}

@media screen and (max-width: 1000px) {
	.repertorio-grid {
		grid-template-columns: 1fr;
	}
	.song-list-all {
		column-count: 1;
	}
}

@media screen and (max-width: 480px) {
	.repertorio-tabs .tab {
		padding: 0.4em 1em;
		font-size: 0.8em;
	}
	.song-title,
	.song-artist {
		font-size: 0.8em;
	}
}

/* ─── Contatti — plain email link on top, two QR cards below ─── */

.contact-email {
	text-align: center;
	margin-top: 1.5em;
}

.contact-email a {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-size: 1.4em;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.85);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	padding-bottom: 0.15em;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email a:hover {
	color: #D4A030;
	border-bottom-color: #D4A030;
}

.contact-email .icon {
	color: #D4A030;
}

/* QR cards: only IG + FB get the boxed treatment. */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
	justify-content: center;
	gap: 2em;
	max-width: 720px;
	margin: 2.5em auto 0;
}

.contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	text-decoration: none;
	color: inherit;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(212, 160, 48, 0.25);
	border-radius: 6px;
	padding: 1.4em 1.2em;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
	transform: translateY(-4px);
	border-color: #D4A030;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.contact-qr {
	width: 200px;
	height: 200px;
	object-fit: contain;
	background: #1D0D00;
	border-radius: 4px;
	display: block;
	margin-bottom: 0.9em;
}

.contact-label {
	font-family: 'Oswald', 'Source Sans Pro', sans-serif;
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #D4A030;
	margin-bottom: 0.35em;
}

.contact-value {
	font-size: 1.05em;
	word-break: break-word;
	line-height: 1.3;
}

@media screen and (max-width: 480px) {
	.contact-email a { font-size: 1.1em; }
	.contact-grid { gap: 1.4em; }
	.contact-qr {
		width: 180px;
		height: 180px;
	}
	.contact-value { font-size: 0.95em; }
}

/* ─── Footer Spotify icon color ─── */

#footer .icons .fa-spotify {
	color: #1DB954;
}

/* ─── Header social icons (top nav) ─── */

#header nav ul li.nav-icon a {
	font-size: 1.05em;
	padding: 0 0.4em;
}
#header nav ul li.nav-icon a .label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
#header nav ul li.nav-icon:first-of-type {
	margin-left: 1em;
}
#header nav ul li.nav-icon a.fa-spotify {
	color: #1DB954;
}

/* ─── Header language switcher ─── */

#header nav ul li.nav-lang {
	display: inline-flex;
	align-items: center;
}
#header nav ul li.nav-lang:first-of-type {
	margin-left: 0.8em;
}
#header nav ul li.nav-lang a {
	display: inline-flex;
	align-items: center;
	padding: 0 0.25em;
	height: 3em;
	line-height: 0;
	text-decoration: none;
	border-bottom: 0;
}
#header nav ul li.nav-lang svg {
	display: block;
	width: 28px;
	height: 18px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	opacity: 0.45;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
#header nav ul li.nav-lang a:hover svg {
	opacity: 0.85;
	transform: scale(1.05);
}
#header nav ul li.nav-lang.nav-lang-active svg {
	opacity: 1;
	box-shadow: 0 0 0 1px rgba(212, 160, 48, 0.6);
}

/* ─── Prossimi Eventi — locandina-as-card ─── */

.events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2em;
	max-width: 900px;
	margin: 0 auto;
	justify-items: center;
}

.event-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 360px;
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(212, 160, 48, 0.3);
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid rgba(212, 160, 48, 0.3); /* override base anchor underline */
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
	transform: translateY(-4px);
	border-color: #D4A030;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.event-card-img {
	width: 100%;
	aspect-ratio: 1075 / 1521;  /* matches the locandina A4 ratio */
	overflow: hidden;
	background: #1D0D00;
}

.event-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.event-card:hover .event-card-img img {
	transform: scale(1.03);
}

.event-card-info {
	padding: 1.2em 1.4em 1.4em;
	text-align: left;
}

.event-card-date {
	display: block;
	font-family: 'Oswald', 'Source Sans Pro', sans-serif;
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #D4A030;
	margin-bottom: 0.4em;
}

.event-card-info h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.5em;
	margin: 0 0 0.25em;
	color: inherit;
	letter-spacing: 0.01em;
}

.event-card-meta {
	font-size: 0.92em;
	margin: 0 0 1em;
	opacity: 0.78;
}

.event-card-cta {
	display: inline-block;
	font-family: 'Oswald', 'Source Sans Pro', sans-serif;
	font-size: 0.82em;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #D4A030;
	transition: color 0.2s ease, letter-spacing 0.25s ease;
}

.event-card:hover .event-card-cta {
	color: #f0b340;
	letter-spacing: 0.22em;
}
