/* ========================================
   CUSTOM CSS - RAY GARCIA DJ
   ======================================== */

/* === COLOR SCHEME === */
:root {
	--primary-color: #D32F2F; /* Rosso Cuba - passione */
	--secondary-color: #1565C0; /* Blu oceano caraibico */
	--accent-color: #FBC02D; /* Giallo oro - sole cubano */
	--dark-color: #212121; /* Grigio scuro */
	--light-color: #FAFAFA; /* Bianco panna */
	--text-dark: #333333;
	--text-light: #ffffff;
}

/* === PRIMARY COLOR OVERRIDES === */
.btn-primary,
.bg-color-primary,
.text-primary,
.text-color-primary {
	background-color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: var(--text-light) !important;
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: var(--secondary-color) !important;
	border-color: var(--secondary-color) !important;
}

a {
	color: var(--primary-color);
	transition: all 0.3s ease;
}

a:hover {
	color: var(--secondary-color);
	font-weight: 700;
}

/* Links on light/white backgrounds */
.bg-light a:not(.btn),
.bg-white a:not(.btn),
.card a:not(.btn),
.contact-info a:not(.btn) {
	color: var(--text-dark) !important;
}

.bg-light a:not(.btn):hover,
.bg-white a:not(.btn):hover,
.card a:not(.btn):hover,
.contact-info a:not(.btn):hover {
	color: var(--primary-color) !important;
	font-weight: 700;
	text-decoration: none;
}

/* === QUATERNARY COLOR (for sections) === */
.section-quaternary,
.bg-color-quaternary {
	background-color: var(--dark-color) !important;
}

/* === HEADER STYLES === */
#header {
	transition: all 0.3s ease;
}

/* Header body - scuro solo quando sticky */
html.sticky-header-active .header-body {
	background-color: rgba(33, 33, 33, 0.95) !important;
}

html:not(.sticky-header-active) .header-body {
	background-color: rgba(255, 255, 255, 0.95) !important;
}

.header-logo h2 {
	letter-spacing: 2px;
	font-family: 'Montserrat', sans-serif;
	font-size: 24px !important;
	color: var(--primary-color) !important;
}

html.sticky-header-active .header-logo h2 {
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

html:not(.sticky-header-active) .header-logo h2 {
	text-shadow: none;
}

/* Header navigation links - chiari su sfondo scuro (sticky) */
html.sticky-header-active .header-nav-main nav ul li a {
	color: var(--text-light) !important;
	font-weight: 600;
	transition: color 0.3s ease;
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
}

/* Header navigation links - scuri quando header trasparente (non sticky) */
html:not(.sticky-header-active) .header-nav-main nav ul li a {
	color: var(--text-dark) !important;
	font-weight: 600;
	transition: color 0.3s ease;
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
}

html.sticky-header-active .header-nav-main nav ul li a:hover,
html.sticky-header-active .header-nav-main nav ul li a.active,
html:not(.sticky-header-active) .header-nav-main nav ul li a:hover,
html:not(.sticky-header-active) .header-nav-main nav ul li a.active {
	color: var(--primary-color) !important;
}

/* Header social icons - chiari su sticky, scuri su non-sticky */
html.sticky-header-active #header .header-column ul.list-inline li a {
	color: var(--text-light) !important;
}

html:not(.sticky-header-active) #header .header-column ul.list-inline li a {
	color: var(--text-dark) !important;
}

#header .header-column ul.list-inline li a:hover {
	color: var(--primary-color) !important;
}

/* Header burger menu button */
html.sticky-header-active #header .header-btn-collapse-nav {
	color: var(--text-light) !important;
}

html:not(.sticky-header-active) #header .header-btn-collapse-nav {
	color: var(--text-dark) !important;
}

/* === MOBILE HEADER OPTIMIZATION === */
/* Header mobile solido (classe aggiunta via JS) */
#header.header-mobile-solid .header-body {
	background-color: #ffffff !important;
	background: #ffffff !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

@media (max-width: 991px) {
	#header {
		position: fixed !important;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
	}

	/* Header sempre bianco su mobile - FORZA override */
	#header .header-body,
	#header.header-mobile-solid .header-body,
	html:not(.sticky-header-active) #header .header-body,
	html.sticky-header-active #header .header-body,
	body #header .header-body,
	.body #header .header-body,
	div.body #header .header-body {
		background-color: #ffffff !important;
		background: #ffffff !important;
		box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
	}


	/* Icone e burger scuri su mobile (header bianco) */
	#header .header-column ul.list-inline li a,
	#header .header-btn-collapse-nav,
	html:not(.sticky-header-active) #header .header-column ul.list-inline li a,
	html:not(.sticky-header-active) #header .header-btn-collapse-nav {
		color: var(--text-dark) !important;
	}

	.main {
		padding-top: 70px;
	}

	.header-logo h2 {
		font-size: 20px !important;
	}

	/* Menu aperto: sfondo scuro */
	.header-nav-main nav {
		background-color: var(--dark-color) !important;
		padding: 20px;
	}

	.header-nav-main nav ul li {
		margin-bottom: 10px;
	}

	/* Menu aperto: link CHIARI (grigio chiaro default, bianco attivo) */
	#header .header-nav-main nav ul li a,
	html:not(.sticky-header-active) #header .header-nav-main nav ul li a,
	html.sticky-header-active #header .header-nav-main nav ul li a {
		font-size: 14px;
		padding: 10px 0;
		display: block;
		color: #aaaaaa !important;
	}

	#header .header-nav-main nav ul li a.active,
	#header .header-nav-main nav ul li a:hover,
	html:not(.sticky-header-active) #header .header-nav-main nav ul li a.active,
	html:not(.sticky-header-active) #header .header-nav-main nav ul li a:hover {
		color: #ffffff !important;
	}

	/* Hero mobile: interlinea e bottoni */
	.hero-content-box h1 {
		line-height: 1.3 !important;
		margin-bottom: 15px;
	}

	.hero-content-box .btn {
		display: block;
		margin-bottom: 10px;
		margin-right: 0 !important;
	}
}

/* === HERO SECTION === */
.hero-section {
	position: relative;
	min-height: 100vh;
}

/* Hero content box con sfondo scuro trasparente */
.hero-content-box {
	background-color: rgba(0, 0, 0, 0.7);
	padding: 100px;
	border-radius: 20px;
}

.hero-content-box h1,
.hero-content-box p,
.hero-content-box span {
	color: var(--text-light) !important;
}

@media (max-width: 767px) {
	.hero-content-box {
		padding: 40px 20px;
		border-radius: 15px;
	}
}

/* Mobile hero adjustments */
@media (max-width: 767px) {
	.hero-section .tp-caption {
		font-size: 32px !important;
		padding: 0 20px;
		text-align: center;
	}

	.hero-section .tp-caption[style*="font-size: 64px"] {
		font-size: 40px !important;
	}

	.hero-section .tp-caption[style*="font-size: 28px"] {
		font-size: 20px !important;
	}
}

/* === ICON BOX CIRCLE === */
.icon-box-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	background-color: var(--primary-color);
	border-radius: 50%;
}

.icon-box-circle i {
	font-size: 40px;
	color: var(--text-light) !important;
}

/* === SECTIONS === */
.section {
	padding: 80px 0;
}

@media (max-width: 767px) {
	.section {
		padding: 50px 0;
	}
}

.section-light {
	background-color: #f8f9fa;
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
}

h2 {
	font-size: 42px;
	margin-bottom: 30px;
	font-weight: 800;
}

@media (max-width: 767px) {
	h2 {
		font-size: 32px;
	}
}

/* === CARDS === */
.card {
	border: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: 8px;
	overflow: hidden;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-body {
	padding: 30px;
}

/* === BUTTONS === */
.btn {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	padding: 12px 30px;
	border-radius: 5px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn-lg {
	padding: 15px 40px;
	font-size: 16px;
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-primary:hover {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Outline primary button styles */
.btn-outline-primary {
	background-color: transparent;
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
	background-color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: var(--text-light) !important;
	font-weight: 700;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Outline light button */
.btn-outline-light {
	border-color: var(--text-light);
	color: var(--text-light);
}

.btn-outline-light:hover {
	background-color: var(--text-light);
	color: var(--text-dark) !important;
}

/* === BRAND BUTTONS === */
.btn-spotify {
	background-color: #1DB954 !important;
	border-color: #1DB954 !important;
	color: #ffffff !important;
	transition: all 0.3s ease;
}

.btn-spotify i {
	color: #ffffff !important;
}

.btn-spotify:hover {
	background-color: #1DB954 !important;
	border-color: #1DB954 !important;
	color: #ffffff !important;
	transform: scale(1.1);
}

.btn-apple {
	background-color: #333333 !important;
	border-color: #333333 !important;
	color: #ffffff !important;
	transition: all 0.3s ease;
}

.btn-apple i {
	color: #ffffff !important;
}

.btn-apple:hover {
	background-color: #333333 !important;
	border-color: #333333 !important;
	color: #ffffff !important;
	transform: scale(1.1);
}

.btn-amazon {
	background-color: #FF9900 !important;
	border-color: #FF9900 !important;
	color: #ffffff !important;
	transition: all 0.3s ease;
}

.btn-amazon i {
	color: #ffffff !important;
}

.btn-amazon:hover {
	background-color: #FF9900 !important;
	border-color: #FF9900 !important;
	color: #ffffff !important;
	transform: scale(1.1);
}

/* === TESTIMONIALS === */
.testimonial {
	margin-bottom: 0;
}

.testimonial blockquote {
	font-style: italic;
	color: var(--text-light);
	margin-bottom: 20px;
	font-size: 20px;
	line-height: 1.8;
}

.testimonial-author strong {
	color: var(--accent-color);
	font-weight: 600;
}

/* === FAQ ACCORDION === */
.accordion-modern .card {
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;
}

.accordion-modern .card-header {
	background-color: var(--light-color);
	border-bottom: none;
	padding: 0;
}

.accordion-modern .card-header .card-title a {
	display: block;
	padding: 20px 25px;
	color: var(--text-dark);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
}

.accordion-modern .card-header .card-title a:hover {
	color: var(--primary-color);
}

.accordion-modern .card-body {
	padding: 20px 25px;
	background-color: #ffffff;
}

/* === CONTACT FORM === */
.contact-form .form-control {
	border: 2px solid #e0e0e0;
	padding: 12px 20px;
	border-radius: 5px;
	transition: border-color 0.3s ease;
	font-family: 'Roboto', sans-serif;
}

.contact-form .form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

.contact-form .form-control::placeholder {
	color: #999;
}

.contact-form .form-check-label {
	color: var(--text-dark) !important;
}

.contact-form .form-check-label a {
	color: var(--primary-color) !important;
}

/* === GALLERY MASONRY === */
.gallery-masonry {
	column-count: 3;
	column-gap: 15px;
}

.gallery-masonry .lightbox-item {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 15px;
	break-inside: avoid;
}

.gallery-masonry .lightbox-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-masonry .lightbox-item:hover img {
	transform: scale(1.05);
	filter: brightness(1.1);
}

.gallery-masonry .lightbox-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
	z-index: 1;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-masonry .lightbox-item:hover::before {
	opacity: 1;
}

.gallery-masonry .lightbox-item::after {
	content: '\f00e';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	font-size: 28px;
	color: #fff;
	z-index: 2;
	transition: transform 0.3s ease;
}

.gallery-masonry .lightbox-item:hover::after {
	transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 991px) {
	.gallery-masonry {
		column-count: 2;
	}
}

@media (max-width: 480px) {
	.gallery-masonry {
		column-count: 1;
		column-gap: 10px;
	}

	.gallery-masonry .lightbox-item {
		margin-bottom: 10px;
	}
}

.image-popup {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.image-popup img {
	transition: transform 0.3s ease;
	width: 100%;
	height: auto;
}

.image-popup:hover img {
	transform: scale(1.05);
}

/* === BADGES === */
.badge {
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 14px;
}

.badge.bg-primary {
	background-color: var(--primary-color) !important;
}

/* === FOOTER === */
#footer {
	background-color: #f8f9fa;
	color: var(--text-dark);
	padding: 0;
}

#footer a {
	color: var(--text-dark);
	text-decoration: none;
	transition: all 0.3s ease;
}

#footer a:hover {
	color: var(--primary-color);
	font-weight: 700;
}

#footer a.no-hover-effect:hover {
	color: inherit;
	font-weight: inherit;
	background: transparent !important;
}

#footer h5 {
	font-weight: 700;
	color: var(--primary-color);
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 16px;
}

#footer .social-icons .btn {
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin: 0 5px;
}

#footer .social-icons .btn i {
	color: var(--text-light) !important;
	transition: all 0.3s ease;
}

#footer .social-icons .btn:hover {
	transform: scale(1.1);
}

#footer .social-icons .btn:hover i {
	color: var(--text-light) !important;
	font-weight: 700;
}

/* Social icons in all sections */
.btn-primary i {
	color: var(--text-light) !important;
	transition: all 0.3s ease;
}

.btn-primary:hover i {
	color: var(--text-light) !important;
	font-weight: 700;
}

.social-icons .btn {
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin: 0 5px;
}

/* === COOKIE SETTINGS ICON BUTTON === */
.cookie-settings-btn {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--primary-color);
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.cookie-settings-btn:hover {
	background-color: var(--secondary-color);
	transform: scale(1.1);
}

.cookie-settings-btn i {
	color: #ffffff;
	font-size: 20px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(33, 33, 33, 0.98);
	color: #ffffff;
	padding: 20px 0;
	z-index: 9999;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	display: none;
}

.cookie-banner.show {
	display: block;
	animation: slideUp 0.4s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.cookie-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.cookie-text {
	flex: 1;
}

.cookie-text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.cookie-text a {
	color: var(--primary-color) !important;
	text-decoration: underline;
}

.cookie-text a:hover {
	color: #ffffff !important;
}

.cookie-buttons {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.cookie-buttons .btn {
	white-space: nowrap;
}

@media (max-width: 991px) {
	.cookie-content {
		flex-direction: column;
		text-align: center;
	}

	.cookie-buttons {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
	}

	.cookie-buttons .btn {
		flex: 1;
		min-width: 120px;
	}
}

@media (max-width: 480px) {
	.cookie-banner {
		padding: 15px 0;
	}

	.cookie-text p {
		font-size: 13px;
	}

	.cookie-buttons {
		flex-direction: column;
	}

	.cookie-buttons .btn {
		width: 100%;
	}
}

/* === MODALS === */
.modal-content {
	border-radius: 10px;
	border: none;
	background-color: #ffffff !important;
}

.modal-header {
	background-color: var(--primary-color);
	color: var(--text-light);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

.modal-header .btn-close {
	filter: brightness(0) invert(1);
}

.modal-body {
	padding: 30px;
	background-color: #ffffff !important;
	color: var(--text-dark) !important;
}

.modal-body p,
.modal-body li,
.modal-body ul {
	color: var(--text-dark) !important;
}

.modal-footer {
	background-color: #f8f9fa;
}

.modal-body h6 {
	color: var(--primary-color);
	font-weight: 700;
	margin-top: 20px;
	margin-bottom: 10px;
	font-family: 'Montserrat', sans-serif;
}

.modal-body h6:first-child {
	margin-top: 0;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.appear-animation {
	animation-duration: 0.8s;
	animation-fill-mode: both;
}

.appear-animation[data-appear-animation="fadeInUp"] {
	animation-name: fadeInUp;
}

/* === UTILITY CLASSES === */
.shadow-lg {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.rounded {
	border-radius: 8px !important;
}

.gap-2 {
	gap: 0.5rem;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 767px) {
	.mb-4 {
		margin-bottom: 2rem !important;
	}

	.p-4 {
		padding: 1.5rem !important;
	}

	.p-5 {
		padding: 2rem !important;
	}
}

/* === SCROLL BEHAVIOR === */
html {
	scroll-behavior: smooth;
}

/* Offset for fixed header navigation */
section[id] {
	scroll-margin-top: 80px;
}

@media (max-width: 991px) {
	section[id] {
		scroll-margin-top: 70px;
	}
}

/* === SPECIAL CUBA THEME EFFECTS === */
.text-cuba-flag {
	background: linear-gradient(180deg, #D32F2F 0%, #1565C0 50%, #ffffff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* === ICON STYLES === */
.fas, .fab {
	color: var(--primary-color);
}

.text-primary .fas,
.text-primary .fab {
	color: inherit;
}

/* === PRINT STYLES === */
@media print {
	#header,
	#cookie-consent {
		display: none !important;
	}

	.section {
		page-break-inside: avoid;
	}
}

/* === LOADING ANIMATION === */
@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.loading {
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
