/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #d4af37;
    --color-dark: #111111;
    --color-dark-alt: #636363;
    --color-light: #f9f9f9;
    --color-white: #ffffff;
    --font-heading: 'Cardo', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-width: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--color-dark);
    background-color: var(--color-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.header {
    background-color: var(--color-dark);
    padding: 20px 0 0 0;
    padding-bottom: 15px;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: auto;
    max-width: 600px;
    width: auto;
    max-height: 100px;
}

.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-menu a {
    color: var(--color-white);
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.header-divider {
    height: 2px;
    background-color: var(--color-primary);
    width: 100%;
    margin-top: 15px;
}

/* Hero Section */
.hero {
    min-height: 50vh;
    background-image: url('../images/home18d9.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(27.894px, 1.743rem + ((1vw - 3.2px) * 2.094), 48px);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid currentColor;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    min-width: 200px;
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

/* Services Section (Homepage) */
.services {
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-lg) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    position: relative;
    border-radius: 27px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) sepia(20%) saturate(150%);
    transition: filter 0.5s ease;
}

.service-card:hover img {
    filter: grayscale(0%);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(139, 90, 43, 0.25) 0%,
        rgba(212, 175, 55, 0.15) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover .service-overlay {
    background: linear-gradient(
        to bottom,
        rgba(139, 90, 43, 0.15) 0%,
        rgba(212, 175, 55, 0.1) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.service-link {
    color: var(--color-white);
    font-size: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);
    font-weight: 500;
    text-decoration: none;
    pointer-events: all;
    z-index: 2;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: transform 0.3s;
}

.service-link:hover {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-lg) 0;
    background-color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    padding: var(--spacing-md);
}

.rating {
    margin-bottom: var(--spacing-sm);
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-dark);
}

.testimonial-text {
    color: var(--color-dark-alt);
    line-height: 1.6;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    left: 20px;
    bottom: 30px;
    z-index: 9999;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-align: center;
    min-width: 200px;
    text-decoration: none;
}

.whatsapp-link .whatsapp-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.5);
    background-color: var(--color-dark);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--color-dark) 0%, #1a1a1a 100%);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.footer-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    width: 100%;
    margin-bottom: var(--spacing-md);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    align-items: start;
    margin-bottom: var(--spacing-md);
}

.footer-grid .brand-col {
    grid-column: 1;
}

.footer-logo {
    display: block;
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
    padding-top: 0;
    line-height: 0;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo img {
    max-width: 140px;
    height: auto;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.footer-logo:hover img {
    filter: drop-shadow(0 6px 12px rgba(184, 134, 11, 0.4));
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
    letter-spacing: 0.5px;
    font-weight: 300;
    line-height: 1.5;
}

.footer-company {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    margin-top: var(--spacing-xs);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column:first-child {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
    margin-top: 0;
}

.footer-column:first-child .footer-logo {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: var(--spacing-xs);
}

.footer-column:first-child .footer-tagline {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}

.footer-column:first-child .footer-company {
    margin-top: 0;
}

.footer-brand-name {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.3;
    margin: var(--spacing-sm) 0 var(--spacing-xs);
    letter-spacing: 0.3px;
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
    color: var(--color-white);
    padding-top: 0;
    position: relative;
    padding-bottom: var(--spacing-xs);
    letter-spacing: 0.5px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.footer-links li:hover {
    padding-left: 8px;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.footer-links li:hover::before {
    opacity: 1;
    left: -16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.contact-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: var(--spacing-xs);
    transition: transform 0.2s ease;
}

.contact-info p:hover {
    transform: translateX(4px);
}

.contact-info strong {
    color: var(--color-white);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-info a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer-owner,
.footer-powered {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.footer-owner strong,
.footer-powered strong {
    color: var(--color-white);
    font-weight: 600;
}

.footer-owner strong a,
.footer-powered strong a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-owner strong a:hover,
.footer-powered strong a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ============================================
   PAGINE SERVIZI - STILI SPECIFICI
   ============================================ */

/* --- PAGE HEADER (L'IMMAGINE DI COPERTINA) --- */
.page-header {
    background: 
        linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.65)),
        var(--page-bg-image, url('../../images/home18d9.jpg')) center/cover no-repeat;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 0;
    color: var(--color-white);
    text-align: center;
}

.page-header .container {
    width: 100%;
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 25px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

/* --- INTRO SECTION (TESTO BIANCO LIBERO) --- */
.intro-section {
    background: transparent;
    padding: 0 20px;
    animation: fadeIn 1.2s ease-in;
    position: relative;
    z-index: 2;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.intro-text strong {
    color: var(--color-white);
    font-weight: 600;
    border-bottom: 1px solid var(--color-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- PAGE CONTENT (LISTINO PREZZI) --- */
.page-content {
    background: var(--color-white);
    padding: 80px 0;
    position: relative;
    z-index: 10;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
}

.services-list {
    max-width: 1200px;
    margin: 0 auto 50px;
}

.service-category {
    margin-bottom: 50px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.4rem;
    color: var(--color-dark);
    font-weight: 400;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    text-align: left;
}

/* Services Grid per pagine servizi (sovrascrive quello homepage) */
.page-content .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.service-item {
    padding: 10px 0;
}


.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
    position: relative;
}

.service-title {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.service-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: transparent;
    margin: 0 10px;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.service-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 8px;
}

.service-features {
    list-style: none;
    margin-top: 12px;
    padding: 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
}

.service-features li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.service-features li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- TABS (per depilazione) --- */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm, 10px);
    margin-bottom: var(--spacing-xl, 40px);
    flex-wrap: wrap;
}

.tab-button {
    padding: var(--spacing-sm, 10px) var(--spacing-lg, 20px);
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #f5f5f5;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: var(--color-primary);
    color: var(--color-dark);
    background-color: rgba(212, 175, 55, 0.1);
}

.tab-button.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* --- BACK BUTTON --- */
.back-button-container {
    text-align: center;
    margin-top: 50px;
}

.btn-back {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--color-dark);
    text-decoration: none;
    color: var(--color-dark);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--color-dark);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        min-width: 200px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        min-height: 40vh;
        background-attachment: scroll;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .whatsapp-button {
        left: 10px;
        bottom: 20px;
    }
    
    .whatsapp-link {
        padding: 14px 24px;
        font-size: 1rem;
        min-width: 180px;
    }

    .whatsapp-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* Responsive per pagine servizi */
    .page-header {
        min-height: auto;
        padding: 80px 20px;
    }
    

    .page-content .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-item {
        padding: 8px 0;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .service-price {
        margin-left: 0;
        align-self: flex-end;
    }

    .category-title {
        font-size: 1.2rem;
    }

    /* Footer responsive */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-column:first-child,
    .footer-grid .brand-col {
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto var(--spacing-xs);
    }

    .footer-logo img {
        max-width: 100px;
        margin: 0 auto;
    }
    
    .footer-brand-name {
        text-align: center;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li {
        text-align: center;
    }

    .footer-links li::before {
        display: none;
    }

    .footer-links li:hover {
        padding-left: 0;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info p:hover {
        transform: none;
    }

    .footer-bottom {
        padding-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .header-container {
        padding: 0 var(--spacing-sm);
    }

    /* Footer mobile */
    .footer-logo img {
        max-width: 140px;
    }

    .footer-tagline {
        font-size: 1rem;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .footer-links a,
    .contact-info {
        font-size: 0.9rem;
    }

}
