/* Amadahy Massaggi - Custom Styles */
/* Stile minimalista professionale ispirato al listino prezzi */
/* Tema colori ottanio/teal mantenuto */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #008B8B; /* Dark Turquoise - Ottanio */
    --primary-light: #20B2AA; /* Light Sea Green */
    --primary-dark: #006666; /* Darker Teal */
    --secondary-color: #4682B4; /* Steel Blue */
    --accent-color: #5F9EA0; /* Cadet Blue */
    --lotus-pink: #E91E63; /* Rosa per fiori di loto */
    --lotus-pink-light: #F8BBD9; /* Rosa chiaro */
    
    /* Palette minimalista e pulita */
    --white: #FFFFFF;
    --cream-bg: #FAFAFA; /* Sfondo crema molto chiaro */
    --light-bg: #F5F5F5; /* Sfondo grigio chiaro */
    --border-color: #E0E0E0; /* Bordi sottili */
    
    --text-dark: #2C2C2C; /* Testo principale scuro */
    --text-medium: #5A5A5A; /* Testo secondario */
    --text-muted: #8A8A8A; /* Testo attenuato */
    --text-light: #FFFFFF; /* Testo su sfondi scuri */
    
    --success-color: #20B2AA;
    --warning-color: #DAA520;
    --danger-color: #DC143C;
    
    /* Ombre sottili per profondità */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Typography - Stile minimalista e professionale */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    min-height: 100vh;
    font-weight: 400;
}

/* Tipografia pulita e leggibile */
p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lead {
    font-weight: 400;
    color: var(--text-dark);
    font-size: 1.15rem;
    line-height: 1.7;
}

small, .small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Headings - Font moderno e pulito */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Fiori di loto rosa come bullet point */
ul:not(.navbar-nav):not(.list-unstyled) {
    list-style: none;
    padding-left: 0;
}

ul:not(.navbar-nav):not(.list-unstyled) li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

ul:not(.navbar-nav):not(.list-unstyled) li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: bold;
}

/* Navigation - Stile minimalista */
.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    position: relative;
}

.navbar-brand {
    padding: 0;
    z-index: 10;
    position: relative;
}

.navbar-brand .logo-image {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.navbar-collapse {
    z-index: 5;
}

.footer-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section - Stile pulito */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    min-height: 60vh;
    position: relative;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

.min-vh-50 {
    min-height: 50vh;
}

/* Sezioni con sfondo alternato */
.bg-light {
    background-color: var(--cream-bg) !important;
}

section.py-5:nth-child(even) {
    background-color: var(--white);
}

section.py-5:nth-child(odd) {
    background-color: var(--cream-bg);
}

/* Cards - Stile minimalista del listino */
.card {
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Card per servizi - stile listino prezzi */
.service-card {
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card .card-title {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.service-description {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* Icons */
.feature-icon, .service-icon, .benefit-icon, .value-icon, .contact-icon, .step-number, .icon-circle {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon:hover, .service-icon:hover, .benefit-icon:hover, .value-icon:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 139, 139, 0.15);
}

.form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 139, 139, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
    padding: 1rem 1.5rem;
    border-left: 3px solid;
}

.alert-success {
    background-color: rgba(32, 178, 170, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-info {
    background-color: rgba(0, 139, 139, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.alert-danger {
    background-color: rgba(220, 20, 60, 0.1);
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

/* Badges */
.badge {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Footer */
.footer {
    background-color: var(--cream-bg) !important;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer h5, .footer h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
}

.footer a {
    color: var(--text-medium);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer p, .footer .small {
    color: var(--text-medium);
}

/* Social Media Links */
.social-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-dark);
    transform: scale(1.15);
}

/* Accordion */
.accordion-button {
    background-color: white;
    color: var(--text-dark);
    border: none;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--cream-bg);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 139, 139, 0.15);
}

/* Placeholders */
.hero-image-placeholder, .profile-image-placeholder, .map-placeholder {
    background-color: var(--light-bg);
    border: 2px dashed var(--border-color);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.hero-image-placeholder:hover, .profile-image-placeholder:hover, .map-placeholder:hover {
    background-color: var(--cream-bg);
    border-color: var(--primary-color);
}

/* Success Icon */
.success-icon {
    background-color: var(--success-color) !important;
}

/* Sezioni categoria massaggi - stile listino */
.massage-category {
    margin-bottom: 3rem;
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .navbar-brand .logo-image {
        height: 90px;
    }
    
    .footer-logo {
        height: 60px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .d-flex.gap-3 .btn {
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Carousel Styles for Consigli Page */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.product-image-container:hover {
    transform: scale(1.02);
}

.product-image-container img {
    transition: transform 0.3s ease;
}

.product-image-container:hover img {
    transform: scale(1.05);
}

/* Enhanced carousel controls */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 15px;
    box-shadow: var(--shadow-md);
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 139, 139, 0.3);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive carousel adjustments */
@media (max-width: 768px) {
    .carousel-control-prev, .carousel-control-next {
        width: 8%;
    }

    .product-image-container {
        margin-bottom: 2rem;
    }
}

/* Scrollbar per Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-bg);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states for accessibility */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: none;
}

/* Divider decorativo */
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 2rem auto;
}

/* Box info stile listino */
.info-box {
    background: var(--cream-bg);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
}

.info-box h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-box ul {
    margin-bottom: 0;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Stili specifici per pagina Trattamenti */
.category-section {
    margin-bottom: 4rem;
}

.category-section:last-child {
    margin-bottom: 2rem;
}

.price-badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    min-width: 80px;
    text-align: center;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
}

.service-card .btn {
    margin-top: auto;
}

/* Note utili cards */
.note-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Service Thumbnail Styles - Layout Orizzontale */
.service-thumbnail-container-horizontal {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
}

.service-thumbnail-horizontal {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.service-thumbnail-container-horizontal:hover .service-thumbnail-horizontal,
.service-thumbnail-container-horizontal:focus-within .service-thumbnail-horizontal {
  transform: scale(1.1);
}

.service-card:hover .service-thumbnail-horizontal {
    transform: scale(1.05);
}

/* Placeholder per immagini mancanti */
.service-thumbnail-container-horizontal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 139, 139, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
    pointer-events: none;
}

/* Overlay gradient per migliorare leggibilità */
.service-thumbnail-container-horizontal::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    z-index: 1;
    pointer-events: none;
}

/* Responsive per trattamenti */
@media (max-width: 991px) {
    .category-title {
        font-size: 1.5rem;
    }

    .price-badge {
        font-size: 1.1rem;
        min-width: 70px;
    }

    .service-thumbnail-container-horizontal {
        min-height: 100px;
        max-height: 100px;
    }
}

@media (max-width: 767px) {
    .category-section {
        margin-bottom: 3rem;
    }

    .category-title {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .service-card .card-body {
        padding: 1.5rem !important;
    }

    .price-badge {
        font-size: 1rem;
        padding: 0.5rem 0.75rem !important;
        min-width: 60px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .price-badge {
        margin-top: 0.75rem;
        margin-left: 0 !important;
    }

    /* Su mobile, immagine sopra con altezza ridotta */
    .service-thumbnail-container-horizontal {
        min-height: 90px;
        max-height: 90px;
    }
}

@media (max-width: 576px) {
    .service-thumbnail-container-horizontal {
        min-height: 80px;
        max-height: 80px;
    }

    .service-thumbnail-horizontal {
        padding: 0.125rem;
    }
}
