/* Naniloa Beauty Nails & Spa - CSS Principale */

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #f8b4d9;
    --accent-color: #ffd700;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    --background-color: #f8f9fa; /* Added for body background */
    --header-bg: rgba(255, 255, 255, 0.95); /* Added for header background */
    --header-text: #333; /* Added for header text color */
    --services-section-bg: #f8f9fa; /* Added for services section background */
    --categories-section-bg: #f8f9fa; /* Added for categories section background */
    --cta-bg: #ff6b9d; /* Added for CTA background */
    --cta-text: #fff; /* Added for CTA text color */
}

/* Typography */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    color: var(--header-text);
    backdrop-filter: blur(10px);
}

.top-bar {
    font-size: 0.875rem;
}

.top-bar a:hover {
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-text {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--navbar-text) !important;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    transition: var(--transition);
}

.navbar-nav .nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
	background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-bg.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	min-height: 60vh;
	display: flex;
	align-items: center;
	color: white;
	position: relative;
	padding: 0;
}

/* Hero Gallery/Carousel Styles */
.hero-section .carousel {
	position: relative;
	width: 100%;
	height: 60vh;
}

.hero-section .carousel-inner {
	height: 60vh;
}

.hero-section .carousel-item {
	height: 60vh;
}

.hero-slide {
	width: 100vw;
	height: 60vh;
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
	display: flex;
	align-items: center;
	position: relative;
}

.hero-slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.hero-slide .container {
	position: relative;
	z-index: 2;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
	width: 5%;
	opacity: 0.8;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
	opacity: 1;
}

.hero-section .carousel-indicators {
	bottom: 30px;
}

.hero-section .carousel-indicators button {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin: 0 5px;
	background-color: rgba(255, 255, 255, 0.5);
	border: 2px solid rgba(255, 255, 255, 0.3);
	transition: var(--transition);
}

.hero-section .carousel-indicators button.active {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.hero-section .carousel-indicators button:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

/* Services section background */
.section.bg-light {
    background-color: var(--services-section-bg) !important;
}

/* Categories details section background */
.section.bg-white {
    background-color: var(--categories-section-bg) !important;
}

/* Call to Action override - più specifico per override Bootstrap !important */
body section.section.bg-primary,
html body section.section.bg-primary {
    background-color: var(--cta-bg) !important;
    color: var(--cta-text) !important;
}

/* Override specifico per .bg-primary in generale */
.bg-primary {
    background-color: var(--cta-bg) !important;
}

body section.section.bg-primary h1,
body section.section.bg-primary h2,
body section.section.bg-primary h3,
body section.section.bg-primary h4,
body section.section.bg-primary h5,
body section.section.bg-primary h6,
body section.section.bg-primary p,
body section.section.bg-primary .lead {
    color: var(--cta-text) !important;
}
body section.section.bg-primary .btn,
body section.section.bg-primary .btn-outline-light {
    color: var(--cta-text);
}

/* Services section background override - più specifico */
body section.section.bg-light,
html body section.section.bg-light {
    background-color: var(--services-section-bg) !important;
}

/* Categories section background override - più specifico */
body section.section.bg-white,
html body section.section.bg-white {
    background-color: var(--categories-section-bg) !important;
}

/* Header background override - più specifico */
body header.header,
body nav.navbar,
html body header.header,
html body nav.navbar {
    background-color: var(--header-bg) !important;
    color: var(--header-text) !important;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-duration {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 157, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #34495e);
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .navbar-nav .nav-link.btn {
        margin-top: 0.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .top-bar {
        font-size: 0.75rem;
    }
    
    .top-bar .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
