/* ===== CUSTOM PROPERTIES ===== */
:root {
    --accent: #d4a574;
    --accent-dark: #c08f5a;
    --accent-light: #f0dfc8;
    --dark: #111111;
    --dark-soft: #1a1a1a;
    --text: #2d2d2d;
    --text-muted: #6b6b6b;
    --bg: #ffffff;
    --bg-alt: #faf8f5;
    --bg-dark: #111111;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--dark);
}

.letter-spacing {
    letter-spacing: 3px;
}

/* ===== ACCENT UTILITIES ===== */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    font-weight: 500;
    padding: 14px 36px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:not(.scrolled) {
    background: transparent;
}

.navbar:not(.scrolled) .navbar-brand {
    color: #fff;
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar:not(.scrolled) .nav-link:hover {
    color: var(--accent-light) !important;
}

.navbar:not(.scrolled) .navbar-toggler-icon {
    filter: invert(1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 0.7rem 0;
}

.navbar.scrolled .navbar-brand {
    color: var(--dark);
}

.navbar.scrolled .nav-link {
    color: var(--text) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent) !important;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding: 0;
}

.nav-logo {
    transition: opacity 0.3s ease;
}

.navbar:not(.scrolled) .nav-logo-white {
    opacity: 1;
}

.navbar:not(.scrolled) .nav-logo-dark {
    opacity: 0;
    position: absolute;
}

.navbar.scrolled .nav-logo-white {
    opacity: 0;
    position: absolute;
}

.navbar.scrolled .nav-logo-dark {
    opacity: 1;
}

.brand-accent {
    font-weight: 400;
    color: var(--accent);
}

.navbar .nav-link {
    font-size: 0.88rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    background: url('images/paola-portrait.jpg') center/cover no-repeat;
    min-height: 100vh;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-text {
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-section h1 {
    color: #fff;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -1px;
}

/* ===== SECTIONS ===== */
.py-section {
    padding: 120px 0;
}

.section-tag {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.display-5 {
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

/* ===== ABOUT ===== */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-light);
    border-radius: 1.5rem;
    z-index: -1;
}

.about-image-wrapper img {
    object-fit: cover;
    aspect-ratio: 3/4;
    border-radius: 1.5rem;
}

.credential-card {
    background: var(--bg-alt);
    border: 1px solid rgba(212, 165, 116, 0.15);
    transition: all 0.3s ease;
}

.credential-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-light);
}

/* ===== CREDENTIALS SECTION ===== */
.credentials-section h5 {
    font-family: var(--font-heading);
    color: var(--dark);
}

.credential-year {
    min-width: 52px;
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 6px;
    margin-top: 2px;
}

.credential-item strong {
    font-size: 0.9rem;
    color: var(--dark);
}

.credential-item p {
    font-size: 0.82rem;
}

.credential-item-sm small {
    font-size: 0.84rem;
    color: var(--text);
}

.credentials-list {
    padding-left: 4px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.2rem !important;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

.service-link {
    cursor: pointer;
}

.featured-card {
    border: 2px solid var(--accent) !important;
    position: relative;
    overflow: visible;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent);
}

.service-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.service-card .list-unstyled li {
    font-size: 0.9rem;
}

/* ===== METHOD ===== */
.step-number {
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-size: 4rem !important;
    line-height: 1;
    opacity: 0.8;
}

.method-step {
    position: relative;
    transition: all 0.3s ease;
}

.method-step:hover {
    transform: translateY(-5px);
}

.method-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-light);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.method-step:hover::after {
    width: 60px;
    background: var(--accent);
}

/* ===== GALLERY CAROUSEL ===== */
.gallery-carousel {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.gallery-track {
    display: flex;
    gap: 20px;
    animation: scroll 35s linear infinite;
    width: max-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-slide {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 8 - 20px * 8));
    }
}

@media (max-width: 767px) {
    .gallery-slide {
        width: 240px;
        height: 240px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-240px * 8 - 20px * 8));
        }
    }
}

/* ===== TESTIMONIALS ===== */
#risultati .card {
    border-radius: 1.2rem !important;
    transition: all 0.3s ease;
}

#risultati .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

/* ===== REVIEWS MASONRY ===== */
.reviews-masonry {
    columns: 5;
    column-gap: 20px;
}

.review-card {
    break-inside: avoid;
    background: var(--bg-alt);
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 1.2rem;
    padding: 1.75rem;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-light);
}

.review-card .review-text {
    font-size: 0.92rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.review-card .review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-card .review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 1199px) {
    .reviews-masonry {
        columns: 4;
        column-gap: 18px;
    }
}

@media (max-width: 991px) {
    .reviews-masonry {
        columns: 3;
        column-gap: 16px;
    }
}

@media (max-width: 767px) {
    .reviews-masonry {
        columns: 2;
        column-gap: 14px;
    }

    .review-card {
        margin-bottom: 14px;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .reviews-masonry {
        columns: 1;
        column-gap: 0;
    }
}

/* Reviews mobile show-more */
.review-card.review-hidden {
    display: none;
}

.reviews-show-more {
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 1rem 0;
    margin-bottom: 0;
}

.reviews-show-more:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

/* ===== STRUTTURA GALLERY ===== */
.struttura-gallery {
    max-width: 900px;
    margin: 0 auto;
}

.struttura-hero {
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 16px;
}

.struttura-hero img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.struttura-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.struttura-thumb {
    border: 2px solid transparent;
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
    width: 90px;
    height: 70px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.struttura-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.struttura-thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.struttura-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

@media (max-width: 767px) {
    .struttura-hero img {
        max-height: 300px;
    }

    .struttura-thumbs {
        gap: 8px;
    }

    .struttura-thumb {
        width: 60px;
        height: 50px;
    }
}

/* ===== CTA DARK SECTION ===== */
.bg-dark {
    background: var(--bg-dark) !important;
}

/* ===== PRICING CARDS ===== */
.pricing-section {
    background: linear-gradient(160deg, #1a1a1a 0%, #2a2a2a 100%);
}

.pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 165, 116, 0.3);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pricing-card-featured {
    background: rgba(212, 165, 116, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.1);
}

.pricing-card-featured:hover {
    background: rgba(212, 165, 116, 0.12);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(212, 165, 116, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-icon {
    font-size: 2rem;
    color: var(--accent);
}

.pricing-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.pricing-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--accent);
}

.btn-outline-accent {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 500;
    padding: 14px 36px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
}

/* ===== PRICING OPTIONS ===== */
.pricing-options {
    display: flex;
    flex-direction: column;
}

.pricing-options .btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 50px;
}

.pricing-options .btn-primary {
    font-weight: 600;
}

/* ===== PRICING BUTTONS ===== */
.pricing-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.pricing-btn-single {
    padding: 1rem 1.5rem;
}

.pricing-btn-pack {
    padding: 1rem 4.5rem 2rem 4.5rem;
    overflow: hidden;
}

.pricing-btn .pricing-btn-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.pricing-btn .pricing-btn-discount {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3.5rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark);
    border-radius: 0 50px 50px 0;
}

.pricing-btn .pricing-btn-note {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.68rem;
    opacity: 0.7;
    padding-bottom: 6px;
    font-weight: 400;
}

.pricing-included {
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
}

/* ===== PRICING HIGHLIGHT ANIMATION ===== */
.pricing-card.highlight-pulse {
    animation: pricingPulse 0.6s ease-in-out 3;
}

@keyframes pricingPulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 rgba(212, 165, 116, 0);
    }
    50% {
        border-color: var(--accent);
        box-shadow: 0 0 30px rgba(212, 165, 116, 0.4);
    }
}

.pricing-card-featured.highlight-pulse {
    animation: pricingPulseFeatured 0.6s ease-in-out 3;
}

@keyframes pricingPulseFeatured {
    0%, 100% {
        border-color: var(--accent);
        box-shadow: 0 0 40px rgba(212, 165, 116, 0.1);
    }
    50% {
        border-color: #fff;
        box-shadow: 0 0 40px rgba(212, 165, 116, 0.5);
    }
}

/* ===== CONTACT ===== */
.map-link {
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 1rem !important;
}

.map-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.form-control,
.form-select {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1.5px solid #e8e8e8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

/* ===== LIGHTBOX ===== */
#lightboxModal .modal-content {
    background: transparent;
}

#lightboxImage {
    max-height: 85vh;
    object-fit: contain;
    border-radius: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark) !important;
}

footer .navbar-brand {
    font-size: 1.4rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.service-card:nth-child(2) .reveal,
.gallery-item:nth-child(2),
#risultati .col-lg-4:nth-child(2) .card {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) .reveal,
.gallery-item:nth-child(3),
#risultati .col-lg-4:nth-child(3) .card {
    transition-delay: 0.2s;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.5rem;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .py-section {
        padding: 80px 0;
    }

    .about-image-wrapper::after {
        display: none;
    }

    .step-number {
        font-size: 3rem !important;
    }
}

@media (max-width: 767px) {
    .hero-text {
        text-align: center;
    }

    .hero-text .d-flex {
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .py-section {
        padding: 60px 0;
    }

    .method-step::after {
        display: none;
    }
}
