@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
    /* User Brand Palette */
    --purple-main: #A064A0;
    --bg-creme: #F8F1F6;
    --dark-grey: #4A404A;
    --gold-accent: #E6BE8A;
    --lavender-light: #D2A9D2;

    /* Semantic Mapping */
    --bg-main: var(--bg-creme);
    --bg-surface: #FFFFFF;
    --text-primary: var(--dark-grey);
    --text-secondary: rgba(74, 64, 74, 0.7);
    /* derived from #4A404A */
    --accent: var(--purple-main);
    --accent-hover: var(--gold-accent);
    --accent-secondary: var(--lavender-light);
    --border-color: #EADEE6;
    /* lightly tinted border */

    /* Variables */
    --container-width: 1320px;
    --header-height: 90px;
    /* Reverted to sleek height */
    --radius-lg: 40px;
    --radius-md: 24px;
    --radius-sm: 12px;

    /* Shadows */
    --shadow-soft: 0 10px 40px -10px rgba(74, 64, 74, 0.05);
    /* tinted shadow */
    --shadow-hover: 0 20px 60px -15px rgba(160, 100, 160, 0.15);
    /* purple tinted shadow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
    /* Offset for sticky header (110px bottom + 40px gap) */
}

/* Specific adjustment for linked sections scroll position */
#treatments.section-padding,
#products-highlight.section-padding,
#reviews.section-padding,
#booking-section.section-padding {
    padding-top: 0;
}

#reviews.section-padding {
    padding-bottom: 0;
    /* Removing gap before footer */
}

#treatments.section-padding {
    padding-bottom: 60px;
    /* Reduced gap before booking section */
}

#booking-section.section-padding {
    padding-bottom: 40px;
    /* Reduced gap before product section */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    position: relative;
    /* Fix for absolute children height */
    /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
}

/* ... existing code ... */

/* --- FLOATING PETALS --- */
.floating-petals {
    position: absolute;
    /* Scrolls with page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    /* Above everything but header (1000) */
    overflow: hidden;
    /* Ensure they don't cause horizontal scroll */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    /* Above mobile menu overlay */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- NAVIGATION --- */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread content out */
    position: sticky;
    top: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    /* Slightly more opaque for content below */
    backdrop-filter: blur(20px);
    border-radius: 100px;
    /* Increased radius */
    /* Floating pill header */
    margin: 20px auto;
    padding: 0 40px;
    /* Increased padding */
    max-width: var(--container-width);
    /* Full width */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.logo img {
    display: block;
    /* Visible again */
    height: 40px;
    /* Text logo height */
    width: auto;
    object-fit: contain;
}

/* --- BRAND CENTERED --- */
.brand-center {
    text-align: center;
    padding: 60px 0 20px;
    animation: fadeInDown 1s ease-out;
    margin-bottom: 20px;
}

.brand-center img {
    height: 180px;
    /* Large and prominent */
    width: auto;
    max-width: 90vw;
    /* Prevent overflow on small screens */
    object-fit: contain;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    margin: 0;
    /* Reset margin */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 12px 30px;
    background: var(--text-primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background 0.2s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    background: #000;
}

/* --- HERO SECTION --- */
.hero {
    margin-top: 40px;
    text-align: center;
    padding: 60px 0 80px;
    /* Reduced bottom padding from 100px */
    position: relative;
}

#about.section-padding {
    padding-top: 0;
    /* Reduced to 0 for consistent scroll alignment (40px visible gap) */
    padding-bottom: 80px;
    /* Reduced from 160px to tighten gap with filters */
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero h1 span {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
}

.hero-image-container {
    height: 650px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.hero-image-container img,
.hero-image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.hero-image-container:hover img,
.hero-image-container:hover video {
    transform: scale(1.03);
}

/* Video Controls */
.video-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image-container:hover .video-controls {
    opacity: 1;
}

.video-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.video-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    border-color: white;
}

.video-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: fill 0.3s;
}

.video-btn:hover svg {
    fill: var(--text-primary);
}

/* --- SECTIONS COMMON --- */
.section-padding {
    padding: 160px 0;
    /* Increased from 120px for more air */
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-text h2 span {
    font-style: italic;
    color: var(--accent);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.about-img-wrapper {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
    height: 600px;
    width: 100%;
    object-fit: cover;
}

/* --- PRODUCT LAUNCH (BIG CIRCLE) --- */
.big-circle-section {
    position: relative;
    padding: 100px 0;
    background: var(--bg-surface);
    overflow: hidden;
    margin: 40px 0 100px;
    /* Reduced top margin from 100px */
    border-radius: var(--radius-lg);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.promo-text {
    padding-left: 50px;
    padding-right: 80px;
    /* Added right padding for text breathing room */
}

.promo-text h5 {
    font-size: 1.8rem;
    /* Increased size for "Rever" */
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.promo-text h2 {
    font-size: 3rem;
    /* Reduced from 4rem */
    margin-bottom: 20px;
}

.promo-text p {
    font-size: 0.9rem;
    /* Reduced from 1.2rem */
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* The Circle */
.rotating-circle-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateRing 20s linear infinite;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"><path id="curve" d="M250,50 a200,200 0 1,1 0,400 a200,200 0 1,1 0,-400" fill="none" /><text font-family="Playfair Display" font-size="28" fill="%231a1a1a"><textPath href="%23curve">Rivenditore Autorizzato Rever • Rivenditore Autorizzato Rever • </textPath></text></svg>') center/contain no-repeat;
    opacity: 0.15;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.central-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    border: 10px solid white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.central-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 3;
    bottom: 50px;
    right: 0;
    max-width: 280px;
}

/* --- CATALOGUE --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.product-item:hover {
    transform: translateY(-10px);
    border-color: var(--border-color);
    box-shadow: var(--shadow-hover);
}

.product-img-box {
    height: 350px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 25px;
    background: #f4f4f4;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.4s;
}

.product-item:hover .product-img-box img {
    scale: 1.05;
}

.product-meta h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.product-meta span {
    color: var(--text-secondary);
    font-size: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* --- REVIEWS --- */
.reviews-scroller {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reviews-scroller::-webkit-scrollbar {
    display: none;
}

.review-box {
    min-width: 400px;
    background: var(--bg-surface);
    padding: 50px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.quote-mark {
    font-size: 4rem;
    color: var(--accent);
    line-height: 0;
    margin-bottom: 40px;
}

.review-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* --- FOOTER --- */
/* --- FOOTER --- */
/* --- FOOTER --- */
footer {
    padding-top: 60px;
    /* Reduced from 100px */
    padding-bottom: 80px;
    margin-top: 20px;
    /* Reduced from 100px */
    border-top: none;
    /* No line */
    background: transparent;
    /* No white box */
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 50px;
    /* Reduced from 80px */
    align-items: start;
    /* Top align */
}

.footer-logo {
    height: 140px;
    /* 3.5x larger */
    width: auto;
    object-fit: contain;
    margin-bottom: 40px;
    /* Space before text */
    display: block;
}

.footer-brand p {
    margin-top: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 320px;
    opacity: 0.8;
}

.footer-column {
    padding-top: 20px;
    /* Align slightly with the text of brand if logo is tall */
}

.footer-column h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    /* More space below headings */
    font-family: 'Playfair Display', serif;
    /* Elegant heading */
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
    /* More breathing room */
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
    /* Subtle movement */
}

.copyright-bar {
    border-top: none;
    /* Removed line */
    padding-top: 40px;
    padding-bottom: 40px;
    /* Increased 20px + 20px */
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    /* Matched to footer text */
    opacity: 1;
}

.gv-link {
    text-decoration: none;
    color: var(--text-secondary);
    /* Matched to footer text */
    font-weight: 600;
    transition: color 0.3s;
}

.gv-link:hover {
    color: var(--accent);
    /* Hover effect */
}

/* --- FLOATING PETALS (Standardized 0-100% Distribution) --- */
.floating-petals {
    position: absolute;
    /* Scrolls with page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    /* Above everything but header (1000) */
    overflow: hidden;
    /* Ensure they don't cause horizontal scroll */
}

.petal {
    position: absolute;
    opacity: 0.8;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.p1 {
    top: 2%;
    left: -100px;
    width: 400px;
    transform: rotate(45deg);
    filter: blur(2px);
}

.p2 {
    top: 8%;
    right: -120px;
    width: 300px;
    transform: rotate(-30deg);
}

.p3 {
    top: 14%;
    left: -150px;
    width: 450px;
    transform: rotate(120deg);
    filter: blur(4px);
}

.p4 {
    top: 20%;
    right: -100px;
    width: 350px;
    transform: rotate(-15deg);
    filter: blur(1px);
}

.p5 {
    top: 26%;
    left: -80px;
    width: 380px;
    transform: rotate(60deg);
}

.p6 {
    top: 32%;
    right: -130px;
    width: 320px;
    transform: rotate(-45deg);
    filter: blur(2px);
}

.p7 {
    top: 38%;
    left: -100px;
    width: 420px;
    transform: rotate(15deg);
}

.p8 {
    top: 44%;
    right: -90px;
    width: 360px;
    transform: rotate(90deg);
    filter: blur(3px);
}

.p9 {
    top: 50%;
    left: -120px;
    width: 400px;
    transform: rotate(-20deg);
}

.p10 {
    top: 56%;
    right: -100px;
    width: 300px;
    transform: rotate(180deg);
    filter: blur(1px);
}

.p11 {
    top: 62%;
    left: -80px;
    width: 350px;
    transform: rotate(45deg);
}

.p12 {
    top: 68%;
    right: -130px;
    width: 380px;
    transform: rotate(-10deg);
    filter: blur(2px);
}

.p13 {
    top: 74%;
    left: -150px;
    width: 420px;
    transform: rotate(130deg);
}

.p14 {
    top: 80%;
    right: -70px;
    width: 290px;
    transform: rotate(-60deg);
}

.p15 {
    top: 86%;
    left: -90px;
    width: 330px;
    transform: rotate(15deg);
    filter: blur(1px);
}

.p16 {
    top: 92%;
    right: -120px;
    width: 400px;
    transform: rotate(90deg);
    filter: blur(3px);
}

/* --- DYNAMIC SERVICES --- */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    /* Purple */
    color: white;
    border-color: var(--accent);
}

.services-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 20;
}

.service-card-dynamic {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-dynamic:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card-dynamic h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-meta-dynamic {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.service-card-dynamic.faded-service {
    opacity: 0.3;
    pointer-events: auto;
    /* Still clickable */
    filter: grayscale(100%);
    /* Optional: makes it even clearer it's not active category */
}

.service-card-dynamic.faded-service:hover {
    opacity: 0.8;
    /* Give feedback on hover */
    filter: grayscale(0%);
}

.btn-book-card {
    background: var(--text-primary);
    color: white;
    padding: 10px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    display: block;
    width: 100%;
}

.btn-book-card:hover {
    background: var(--accent);
}

/* --- BOOKING SECTION --- */
#booking-section {
    background: transparent;
    /* Was var(--bg-surface), making the rounded wrapper invisible */
    border-top: none;
    position: relative;
    z-index: 20;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    background: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
    background: #fdfdfd;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Time Slots */
#slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.time-slot:hover,
.time-slot.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.booking-summary {
    background: var(--bg-creme);
    padding: 30px;
    border-radius: var(--radius-md);
    height: fit-content;
}

.booking-summary h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-submit-booking {
    width: 100%;
    padding: 15px;
    background: #000;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-submit-booking:hover {
    background: var(--accent);

}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 30px 40px;
    z-index: 9999;
    display: none;
    /* Hidden by default */
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-accept {
    background: var(--text-primary);
    color: white;
}

.btn-accept:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-necessary {
    background: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-necessary:hover {
    background: var(--bg-creme);
}

.btn-reject {
    background: transparent;
    color: var(--text-secondary);
    text-decoration: underline;
    border: none;
    padding: 10px 15px;
}

.btn-reject:hover {
    color: var(--accent);
}



/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */

/* 13-inch Laptops and smaller Desktops (max-width 1366px) */
@media (max-width: 1366px) {
    :root {
        --container-width: 1100px;
        /* Shrink container */
    }

    .hero h1 {
        font-size: 4rem;
        /* Smaller hero title */
    }

    .hero-image-container {
        height: 500px;
        /* Reduce hero image height */
    }

    .section-header h2,
    .about-text h2,
    .promo-text h2 {
        font-size: 2.8rem;
        /* Smaller section titles */
    }

    .promo-grid,
    .about-grid {
        gap: 40px;
        /* Reduce gaps */
    }

    .about-img {
        height: 450px;
        /* Reduce about image height */
    }

    .big-circle-section {
        margin: 20px 0 60px;
        /* Reduce margins */
    }

    .rotating-circle-container {
        width: 450px;
        height: 450px;
    }

    .central-image {
        width: 280px;
        height: 280px;
    }
}

/* Tablets (max-width 992px) */
@media (max-width: 992px) {
    :root {
        --container-width: 900px;
        --header-height: auto;
    }

    header {
        /* Standard header layout on mobile */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        height: 70px;
        border-radius: 50px;
    }

    /* Hide normal nav links on mobile/tablet */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        transform: translateY(-100%);
        /* Hidden by default */
        transition: transform 0.4s ease-in-out;
        box-shadow: none;
    }

    .nav-links.active {
        transform: translateY(0);
        /* Slide down when active */
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Larger text for mobile menu */
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
        order: 2;
        /* Place on right */
    }

    .logo {
        order: 1;
    }

    .btn-nav {
        display: none;
        /* Hide 'Prenota Appuntamento' button in header, rely on menu or scrolling */
    }

    /* Add 'Prenota' inside menu visually if needed, usually just the link is enough */


    .about-grid,
    .promo-grid,
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack columns */
        text-align: center;
        gap: 50px;
    }

    .about-grid .about-img-wrapper {
        order: -1;
        /* Image first usually looks better on mobile/tablet */
    }

    /* Exceptions for specific visual flows if needed, e.g. Pilates section */
    /* If we want image top/bottom specifically: */
    #pilates .about-grid .about-img-wrapper {
        order: -1;
    }

    .promo-text {
        padding: 0;
        text-align: center;
    }

    .rotating-circle-container {
        margin: 0 auto;
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        /* 2 cols for tablet footer */
        text-align: left;
    }
}

/* Mobile (max-width 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-image-container {
        height: 350px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        /* 1 col for mobile footer */
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .video-controls {
        opacity: 1;
        /* Always show controls on mobile since no hover */
    }

    /* Hide Petals on Mobile to simplify UI */
    .floating-petals {
        display: none;
    }

    /* Cookie Banner Mobile */
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
    }

    .btn-cookie {
        flex: 1;
        text-align: center;
    }

    .btn-reject {
        flex: 100%;
        text-align: center;
        order: 3;
    }

    /* Reduce product description size on mobile */
    .promo-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Fix Rotating Circle size on Mobile */
    .rotating-circle-container {
        width: 300px;
        height: 300px;
        margin: 0 auto 40px;
        /* Center and add bottom space */
    }

    .text-ring {
        animation: rotateRing 20s linear infinite;
        /* Keep animation */
    }

    .central-image {
        width: 180px;
        /* Scale down inner image */
        height: 180px;
    }

    /* Ensure grids are centered */
    .about-grid,
    .promo-grid,
    .product-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .promo-text {
        padding: 0 10px;
        /* Add small side padding for text */
    }

    /* Stack Reviews on Mobile and Reduce Size */
    .reviews-scroller {
        flex-direction: column;
        /* Stack vertically */
        overflow-x: visible;
        /* No scroll needed */
        gap: 20px;
    }

    .review-box {
        min-width: 0;
        /* Override the desktop min-width */
        width: 100%;
        padding: 25px;
        /* Smaller padding */
    }

    .review-text {
        font-size: 1rem;
        /* Smaller text */
    }

    /* Smaller Section Titles */
    h2,
    .section-header h2 {
        font-size: 2.2rem !important;
        /* Force smaller title size */
        line-height: 1.2;
        font-size: 1.5rem;
        /* Larger text for mobile menu */
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
        order: 2;
        /* Place on right */
    }

    .logo {
        order: 1;
    }

    .btn-nav {
        display: none;
        /* Hide 'Prenota Appuntamento' button in header, rely on menu or scrolling */
    }

    /* Add 'Prenota' inside menu visually if needed, usually just the link is enough */


    .about-grid,
    .promo-grid,
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack columns */
        text-align: center;
        gap: 50px;
    }

    .about-grid .about-img-wrapper {
        order: -1;
        /* Image first usually looks better on mobile/tablet */
    }

    /* Exceptions for specific visual flows if needed, e.g. Pilates section */
    /* If we want image top/bottom specifically: */
    #pilates .about-grid .about-img-wrapper {
        order: -1;
    }

    .promo-text {
        padding: 0;
        text-align: center;
    }

    .rotating-circle-container {
        margin: 0 auto;
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        /* 2 cols for tablet footer */
        text-align: left;
    }
}

/* Mobile (max-width 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-image-container {
        height: 350px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        /* 1 col for mobile footer */
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .video-controls {
        opacity: 1;
        /* Always show controls on mobile since no hover */
    }

    /* Hide Petals on Mobile to simplify UI */
    .floating-petals {
        display: none;
    }

    /* Cookie Banner Mobile */
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
    }

    .btn-cookie {
        flex: 1;
        text-align: center;
    }

    .btn-reject {
        flex: 100%;
        text-align: center;
        order: 3;
    }

    /* Reduce product description size on mobile */
    .promo-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Fix Rotating Circle size on Mobile */
    .rotating-circle-container {
        width: 300px;
        height: 300px;
        margin: 0 auto 40px;
        /* Center and add bottom space */
    }

    .text-ring {
        animation: rotateRing 20s linear infinite;
        /* Keep animation */
    }

    .central-image {
        width: 180px;
        /* Scale down inner image */
        height: 180px;
    }

    /* Ensure grids are centered */
    .about-grid,
    .promo-grid,
    .product-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .promo-text {
        padding: 0 10px;
        /* Add small side padding for text */
    }

    /* Stack Reviews on Mobile and Reduce Size */
    .reviews-scroller {
        flex-direction: column;
        /* Stack vertically */
        overflow-x: visible;
        /* No scroll needed */
        gap: 20px;
    }

    .review-box {
        min-width: 0;
        /* Override the desktop min-width */
        width: 100%;
        padding: 25px;
        /* Smaller padding */
    }

    .review-text {
        font-size: 1rem;
        /* Smaller text */
    }

    /* Smaller Section Titles */
    h2,
    .section-header h2 {
        font-size: 2.2rem !important;
        /* Force smaller title size */
        line-height: 1.2;
    }
}

/* Added gap for filters */
.filters-container-dynamic {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 40px !important;
    /* Added gap requested by user */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
}

.filters-container-dynamic::-webkit-scrollbar {
    display: none;
}


/* Smaller filter text */
/* Smaller filter text & prevent wrapping */
.filter-btn {
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    /* Slightly smaller to fit better */
    padding: 10px 18px !important;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
/* --- CONFIRMATION MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 64, 74, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: var(--bg-surface);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.modal-body p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.booking-recap {
    background: var(--bg-creme);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: left;
    margin: 0 auto;
    font-size: 0.95rem;
}

.booking-recap p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.booking-recap strong {
    color: var(--accent);
}

.modal-footer {
    margin-top: 30px;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

