/* ========================================
   CUSTOM CSS - DEBORA PEZZOLI SALSA COMPANY
   ======================================== */

/* === COLOR SCHEME === */
:root {
	--primary-color: #E74C3C; /* Rosso vivace per salsa */
	--secondary-color: #C0392B; /* Rosso scuro */
	--accent-color: #F39C12; /* Arancione per accenti */
	--dark-color: #2C3E50; /* Grigio scuro */
	--light-color: #ECF0F1; /* Grigio chiaro */
	--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,
.bg-white a,
.card a,
.contact-info a {
	color: var(--text-dark) !important;
}

.bg-light a:hover,
.bg-white a:hover,
.card a:hover,
.contact-info a: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 {
	background-color: rgba(44, 62, 80, 0.95) !important;
}

.header-logo img {
	max-height: 60px;
	width: auto;
}

/* Header navigation links */
.header-nav-main nav ul li a {
	color: var(--text-light) !important;
	font-weight: 500;
	transition: color 0.3s ease;
}

.header-nav-main nav ul li a:hover,
.header-nav-main nav ul li a.active {
	color: var(--primary-color) !important;
}

/* === MOBILE HEADER OPTIMIZATION === */
@media (max-width: 991px) {
	/* Fixed header on mobile */
	#header {
		position: fixed !important;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
	}

	/* Padding to compensate for fixed header */
	.main {
		padding-top: 70px;
	}

	/* Logo size on mobile */
	.header-logo img {
		max-height: 50px;
		width: auto;
	}

	/* Mobile navigation */
	.header-nav-main nav {
		background-color: var(--dark-color);
		padding: 20px;
	}

	.header-nav-main nav ul li {
		margin-bottom: 10px;
	}

	.header-nav-main nav ul li a {
		font-size: 16px;
		padding: 10px 0;
		display: block;
	}
}

/* === HERO SECTION === */
.hero-section {
	position: relative;
	min-height: 100vh;
}

/* Mobile hero image visible */
@media (max-width: 767px) {
	.hero-section .tp-static-layers img.d-block {
		display: block !important;
		position: relative !important;
		margin: 20px auto !important;
		max-width: 90% !important;
	}

	.hero-section .tp-caption {
		font-size: 32px !important;
		padding: 0 20px;
		text-align: center;
	}

	.hero-section .tp-caption[style*="font-size: 56px"] {
		font-size: 36px !important;
	}

	.hero-section .tp-caption[style*="font-size: 24px"] {
		font-size: 18px !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: 'Poppins', sans-serif;
}

h2 {
	font-size: 36px;
	margin-bottom: 30px;
}

@media (max-width: 767px) {
	h2 {
		font-size: 28px;
	}
}

/* === 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;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-body {
	padding: 30px;
}

/* === BUTTONS === */
.btn {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	padding: 12px 30px;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.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(231, 76, 60, 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(231, 76, 60, 0.3);
}

/* === TESTIMONIALS === */
.testimonial {
	margin-bottom: 0;
}

.testimonial blockquote {
	font-style: italic;
	color: var(--text-dark);
	margin-bottom: 20px;
}

.testimonial-author strong {
	color: var(--primary-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;
}

.contact-form .form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* === GALLERY === */
.image-popup {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.image-popup img {
	transition: transform 0.3s ease;
}

.image-popup:hover img {
	transform: scale(1.05);
}

/* === 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 h5 {
	font-weight: 700;
	color: var(--primary-color);
}

#footer .social-icons .btn {
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

#footer .social-icons .btn i {
	color: var(--text-light) !important;
	transition: all 0.3s ease;
}

#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;
}

/* === GOOGLE MAPS === */
.google-map {
	width: 100%;
	height: 450px;
}

@media (max-width: 767px) {
	.google-map {
		height: 300px;
	}
}

/* === COOKIE CONSENT BANNER === */
#cookie-consent {
	font-family: 'Poppins', sans-serif;
}

#cookie-consent button {
	font-family: 'Poppins', sans-serif;
	transition: all 0.3s ease;
}

#cookie-consent button:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

/* Cookie settings button */
button[onclick="openCookiePreferences()"] {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button[onclick="openCookiePreferences()"]:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 767px) {
	button[onclick="openCookiePreferences()"] {
		width: 45px !important;
		height: 45px !important;
		bottom: 15px !important;
		left: 15px !important;
	}

	#cookie-consent {
		padding: 15px !important;
	}

	#cookie-consent button {
		width: 100%;
		margin-bottom: 10px;
	}
}

/* === MODALS === */
.modal-content {
	border-radius: 10px;
	border: none;
}

.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;
}

.modal-body h6 {
	color: var(--primary-color);
	font-weight: 700;
	margin-top: 20px;
	margin-bottom: 10px;
}

.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;
}

/* === 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;
	}
}

/* === WHATSAPP BUTTON STYLING === */
.btn .fa-whatsapp {
	font-size: 1.2em;
}

/* === CONTACT INFO STYLING === */
.contact-info {
	background-color: #ffffff;
}

.contact-info ul li {
	line-height: 1.8;
}

.contact-info ul li i {
	width: 30px;
	font-size: 18px;
}

/* === LOGO ADJUSTMENTS === */
.logo-header {
	max-width: 100%;
	height: auto;
}

@media (max-width: 991px) {
	.logo-header {
		max-height: 50px !important;
		width: auto;
	}
}

/* === PRINT STYLES === */
@media print {
	#header,
	#cookie-consent,
	button[onclick="openCookiePreferences()"] {
		display: none !important;
	}

	.section {
		page-break-inside: avoid;
	}
}
