/* Modern CSS Reset & Variables */
:root {
	--primary: #c1272d;
	--secondary: #f1bc49;
	--bg-color: #fafafa;
	--text-color: #333333;
	--text-light: #555555;
	--card-bg: #ffffff;
	--accent: #0687f5;

	--font-sans: 'open_sans', system-ui, -apple-system, sans-serif;
	--font-heading: 'hertical_sans', impact, sans-serif;
	--font-serif: 'hertical_serif', georgia, serif;
	--font-nav: 'inlander_smooth', sans-serif;

	--shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);

	--radius: 12px;
	--transition: all 0.3s ease;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

/* Typography elements */
h1,
h2,
h3,
h4 {
	margin-bottom: 1rem;
	line-height: 1.2;
}

a {
	color: var(--text-color);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--secondary);
}

img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}

/* Layout */
#page {
	max-width: 1000px;
	margin: 0 auto;
	background-color: var(--card-bg);
	box-shadow: var(--shadow-sm);
	min-height: 100vh;
	overflow: hidden;
}

/* Header & Hero */
header {
	padding: 4rem 2rem 2rem;
	text-align: center;
}

.hero-title {
	font-family: var(--font-heading);
	font-size: clamp(3rem, 8vw, 5rem);
	color: var(--text-color);
	text-shadow: 3px 3px var(--secondary);
	line-height: 1;
	margin-bottom: 0.5rem;
}

.hero-title sup {
	font-size: 0.4em;
	vertical-align: super;
}

.hero-subtitle {
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 4vw, 2rem);
	color: var(--text-color);
	text-shadow: 2px 2px var(--primary);
	margin-bottom: 2rem;
}

.festival-badge {
	display: inline-block;
	font-size: clamp(1.2rem, 3vw, 1.8rem);
	font-family: var(--font-serif);
	color: var(--primary);
	background-color: var(--secondary);
	padding: 0.5rem 2rem;
	box-shadow: 0 4px 15px rgba(241, 188, 73, 0.4);
	transform: rotate(-2deg);
	margin-bottom: 3rem;
	position: relative;
	border: 3px solid var(--primary);
}

/* Navigation */
nav {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	z-index: 100;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	margin-bottom: 3rem;
}

.nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2rem;
	font-family: var(--font-nav);
	font-size: 1.2rem;
	letter-spacing: 1px;
	padding: 0 1rem;
}

.nav-links a {
	position: relative;
	padding: 0.5rem 0;
	font-weight: 600;
}

.nav-links a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: var(--primary);
	transition: var(--transition);
}

.nav-links a:hover::after {
	width: 100%;
}

.nav-links .highlight {
	color: var(--primary);
}

/* Sections & Cards */
section {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.section-divider {
	width: 100px;
	margin: 2rem auto;
	display: block;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
	transition: transform 0.3s;
}

.section-divider:hover {
	transform: scale(1.1) rotate(5deg);
}

.section-title {
	font-size: 2.5rem;
	font-family: var(--font-heading);
	color: var(--primary);
	text-shadow: 2px 2px var(--secondary);
	text-align: center;
	margin-bottom: 2.5rem;
}

.artist-card {
	background: var(--bg-color);
	border-radius: var(--radius);
	padding: 2.5rem;
	margin-bottom: 3rem;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
	border: 1px solid rgba(0, 0, 0, 0.05);
	width: 100%;
	max-width: 800px;
}

.artist-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.artist-title {
	font-size: 2.2rem;
	font-family: var(--font-serif);
	color: var(--primary);
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
	margin-bottom: 0.5rem;
	text-align: center;
}

.artist-subtitle {
	text-align: center;
	font-size: 1.2rem;
	color: var(--text-light);
	margin-bottom: 2rem;
	font-weight: 600;
}

.artist-image {
	width: 100%;
	max-width: 600px;
	height: auto;
	margin: 0 auto 2rem;
	display: block;
	box-shadow: var(--shadow-sm);
	object-fit: cover;
}

.artist-desc {
	text-align: justify;
	margin-bottom: 2rem;
	font-size: 1.05rem;
	color: var(--text-color);
}

.artist-desc p {
	margin-bottom: 1rem;
}

.artist-desc em {
	color: var(--primary);
	font-style: italic;
}

.artist-desc strong {
	color: #000;
	font-weight: 700;
}

.artist-links {
	text-align: center;
	margin-bottom: 2rem;
}

.artist-links a {
	color: var(--accent);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.artist-links a:hover {
	text-decoration: underline;
}

.video-container {
	position: relative;
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	aspect-ratio: 16 / 9;
}

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

/* Contacts / Footer */
.contact-section {
	text-align: center;
	padding: 4rem 2rem;
	background: linear-gradient(to bottom, #ffffff, #f0f0f0);
	border-radius: var(--radius);
}

.btn-primary {
	display: inline-block;
	background-color: var(--primary);
	color: white;
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-family: var(--font-nav);
	font-size: 1.2rem;
	font-weight: bold;
	letter-spacing: 1px;
	box-shadow: 0 4px 15px rgba(193, 39, 45, 0.3);
	margin: 1.5rem 0;
	border: 2px solid transparent;
}

.btn-primary:hover {
	background-color: white;
	color: var(--primary);
	border-color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(193, 39, 45, 0.4);
}

.calandreta-logo {
	max-width: 250px;
	margin: 3rem auto 2rem;
	display: block;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
	transition: var(--transition);
}

.calandreta-logo:hover {
	transform: scale(1.05);
}

.contact-info {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.contact-info a {
	color: var(--accent);
	font-weight: 600;
}

.contact-info a:hover {
	text-decoration: underline;
}

.partners {
	text-align: center;
	padding: 4rem 1rem;
	background-color: #eee;
}

.partners p {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 2rem;
	font-weight: 600;
	letter-spacing: 1px;
}

.partner-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	max-width: 900px;
	margin: 0 auto;
}

.partner-logos img {
	height: auto;
	max-height: 60px;
	width: auto;
	filter: grayscale(100%) opacity(0.6);
	transition: var(--transition);
}

.partner-logos img:hover {
	filter: grayscale(0%) opacity(1);
	transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
	.nav-links {
		gap: 1rem;
	}

	.artist-card {
		padding: 1.5rem;
		margin-bottom: 2rem;
	}

	header {
		padding: 3rem 1rem 1rem;
	}

	section {
		padding: 1rem;
	}
}

/* Disabled & Tooltip */
.disabled-btn {
	cursor: not-allowed !important;
	opacity: 0.5;
	pointer-events: auto;
	/* Allow hover for tooltip */
}

.disabled-btn.btn-primary:hover {
	background-color: var(--primary) !important;
	color: white !important;
	border-color: transparent !important;
	transform: none !important;
	box-shadow: 0 4px 15px rgba(193, 39, 45, 0.3) !important;
}

.disabled-btn.highlight:hover {
	color: var(--primary) !important;
}

.tooltip-custom {
	position: relative;
	display: inline-block;
}

.tooltip-custom .tooltip-text {
	visibility: hidden;
	width: max-content;
	background-color: var(--text-color);
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 8px 12px;
	position: absolute;
	z-index: 1000;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity 0.3s;
	font-size: 0.9rem;
	font-family: var(--font-sans);
	pointer-events: none;
	font-weight: normal;
	line-height: 1.2;
}

.tooltip-custom .tooltip-text::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: var(--text-color) transparent transparent transparent;
}

.tooltip-custom:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}