/* ========================================
   BAIA DI MAKARI - Design System v3
   Premium Ocean Aesthetics & Fluid Waves
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Premium Ocean Palette */
    --color-deep-teal: #004d61;
    --color-ocean: #006D87;
    --color-lagoon: #008C9E;
    --color-turquoise: #2EC4B6;
    --color-foam: #CBF3F0;

    /* Luxury Gold Accent */
    --color-gold: #d4af37;
    --color-gold-light: #F4D06F;
    --color-gold-dark: #AA8C2C;

    /* Neutrals */
    --color-sand: #F7F3E8;
    --color-white: #ffffff;
    --color-off-white: #FAFAFA;
    --color-text-dark: #1A2e35;
    --color-text-light: #5A717A;

    /* Gradients */
    --gradient-ocean-depth: linear-gradient(135deg, var(--color-deep-teal) 0%, var(--color-ocean) 100%);
    --gradient-lagoon: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-turquoise) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 77, 97, 0.7) 0%, rgba(0, 109, 135, 0.5) 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(0, 77, 97, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --shadow-gold: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-off-white);
    color: var(--color-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-deep-teal);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Ottimizzazione: contenuti immagine non bloccanti */
    content-visibility: auto;
}

/* Ottimizzazione loading delle immagini */
img[loading="lazy"] {
    background: linear-gradient(110deg, #f0f0f0 28%, #fafafa 38%, #f0f0f0 54%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

img.loaded,
img:not([loading="lazy"]) {
    animation: none;
    background: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--color-deep-teal);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.6);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-deep-teal);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.header.scrolled .logo {
    color: var(--color-deep-teal);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--color-deep-teal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
}

.header.scrolled .mobile-menu-btn {
    color: var(--color-deep-teal);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background-color: var(--color-deep-teal);
    /* overflow: hidden; Removed to allow wave shadow */
    position: relative;
    z-index: 2;
    /* Ensure it sits above next section for shadow */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--color-deep-teal);
    /* Fallback */
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.85);
    /* Ottimizzazione GPU per transizioni fluide */
    will-change: opacity;
    transform: translateZ(0);
}

.hero-slider img.active {
    opacity: 1;
}

.hero-slider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.85);
    will-change: opacity;
    transform: translateZ(0);
}

.hero-slider video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-white);
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-gold-light);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 20px;
    color: var(--color-white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-title span {
    display: block;
    font-size: 0.4em;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-foam);
    margin-bottom: 10px;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-feature i {
    font-size: 1.5rem;
    color: var(--color-gold);
}

.hero-feature span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* WAVES - The Core Visual Element */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    left: 0;
    width: 100%;
    /* overflow: hidden; Removed for separate layers look */
    line-height: 0;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through */
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
    filter: drop-shadow(0 10px 10px rgba(0, 50, 60, 0.5));
}

.wave-divider.bottom {
    bottom: 0;
}

.wave-divider.top {
    top: 0;
    transform: rotate(180deg);
}

.wave-fill {
    fill: var(--color-off-white);
}

.wave-fill-alt {
    fill: var(--color-sand);
}

/* Animated Parallax Waves (Hero) */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    z-index: 5;
    /* overflow: hidden; Removed for shadow */
    pointer-events: none;
}

.wave-container svg {
    filter: drop-shadow(0 -10px 20px rgba(0, 0, 0, 0.4));
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
    /* Ottimizzazione GPU per animazioni fluide */
    will-change: transform;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Features Section with Glassmorphism */
.features {
    background-color: var(--color-off-white);
    padding-top: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.section-subtitle {
    color: var(--color-ocean);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-gold);
    transition: height 0.5s ease, width 0.3s ease, opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 77, 97, 0.1);
}

.feature-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-lagoon);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(46, 196, 182, 0.3);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--color-text-light);
    position: relative;
    z-index: 2;
}

/* Feature Card Entry Animation */
.stagger-children .feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.stagger-children.active .feature-card {
    opacity: 1;
    transform: translateY(0);
}

/* Gold bar entry animation - grows from top to bottom */
.stagger-children.active .feature-card::before {
    height: 100%;
}

/* Staggered delay for sequential entry (card + gold bar) */
.stagger-children.active .feature-card:nth-child(1),
.stagger-children.active .feature-card:nth-child(1)::before {
    transition-delay: 0ms;
}

.stagger-children.active .feature-card:nth-child(2),
.stagger-children.active .feature-card:nth-child(2)::before {
    transition-delay: 100ms;
}

.stagger-children.active .feature-card:nth-child(3),
.stagger-children.active .feature-card:nth-child(3)::before {
    transition-delay: 200ms;
}

.stagger-children.active .feature-card:nth-child(4),
.stagger-children.active .feature-card:nth-child(4)::before {
    transition-delay: 300ms;
}

/* Hover still works after entry */
.stagger-children.active .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 77, 97, 0.2);
}

/* Gallery Section */
.gallery {
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.btn-outline-dark {
    border: 1px solid var(--color-deep-teal);
    color: var(--color-deep-teal);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--color-deep-teal);
    color: var(--color-white);
}

/* Lightbox Enhanced */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: calc(100% - 140px);
    position: relative;
}

.lightbox-content {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-counter {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 18px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2001;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Thumbnails Strip */
.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    max-width: 90%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services */
.services {
    background-color: var(--color-sand);
    /* Adding subtle pattern */
    background-image: radial-gradient(var(--color-gold-light) 1px, transparent 1px);
    background-size: 40px 40px;
}

.services .wave-fill {
    fill: var(--color-sand);
}

.services .wave-fill-alt {
    fill: var(--color-off-white);
}

.services h2 {
    font-size: 3rem;
    /* Increased size as requested */
    margin-bottom: 1rem;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.services-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}

.services-image img {
    border-radius: var(--radius-xl);
    transition: transform 0.6s ease;
    width: 100%;
}

.services-image:hover img {
    transform: scale(1.05);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.service-item i {
    color: var(--color-ocean);
}

/* Pricing Cards */
.pricing {
    background: var(--color-off-white);
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.pricing-card-header {
    background: var(--color-deep-teal);
    padding: 40px;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--color-white);
    border-radius: 50% 50% 0 0;
}

.pricing-card-header p {
    position: relative;
    z-index: 5;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    margin-top: 10px;
}

.pricing-table {
    padding: 20px 40px 40px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px dashed var(--color-gold);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-amount {
    font-weight: 700;
    color: var(--color-ocean);
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    background: var(--gradient-ocean-depth);
    color: var(--color-white);
}

.contact-section .section-subtitle {
    color: var(--color-gold-light);
}

.contact-section h2 {
    color: var(--color-white);
}

.contact-section p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--color-deep-teal);
    box-shadow: var(--shadow-gold);
}

.contact-card h3 {
    color: var(--color-white);
    margin-bottom: 10px;
}

.contact-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--color-gold-light);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-gold);
}

/* Footer */
.footer {
    background: var(--color-deep-teal);
    color: var(--color-white);
    padding-top: 80px;
    padding-bottom: 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer h4 {
    color: var(--color-gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.designer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ========================================
   REVEAL ANIMATIONS - Ottimizzate
   ======================================== */

/* Base reveal state */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

/* Active state */
.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Stagger children enhanced animation for gallery */
.stagger-children .gallery-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.active .gallery-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stagger-children.active .gallery-item:nth-child(1) {
    transition-delay: 0ms;
}

.stagger-children.active .gallery-item:nth-child(2) {
    transition-delay: 80ms;
}

.stagger-children.active .gallery-item:nth-child(3) {
    transition-delay: 160ms;
}

.stagger-children.active .gallery-item:nth-child(4) {
    transition-delay: 240ms;
}

.stagger-children.active .gallery-item:nth-child(5) {
    transition-delay: 320ms;
}

.stagger-children.active .gallery-item:nth-child(6) {
    transition-delay: 400ms;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .stagger-children .gallery-item,
    .stagger-children .feature-card,
    .hero-slider img,
    .hero-slider video,
    .parallax>use {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-deep-teal);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        transition: 0.4s ease;
        z-index: 1001;
        padding: 80px 40px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 20px;
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.9) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        opacity: 1 !important;
    }

    .nav-menu .nav-link:hover {
        color: var(--color-gold);
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-menu .nav-cta {
        margin-top: 30px;
        padding-top: 20px;
        border-bottom: none;
    }

    .nav-menu .nav-cta .button.navbar-btn {
        width: auto;
        display: inline-flex;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    /* Reduce wave height on mobile */
    .wave-container {
        height: 8vh;
        min-height: 50px;
        max-height: 80px;
    }

    .wave-divider svg {
        height: 80px;
    }

    .services .wave-container {
        height: 6vh;
        min-height: 40px;
        max-height: 60px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-features {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Lightbox mobile adjustments */
    .lightbox-prev,
    .lightbox-next {
        padding: 12px 14px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-thumbnails {
        padding: 10px 15px;
        gap: 8px;
        bottom: 10px;
    }

    .lightbox-thumb {
        width: 55px;
        height: 40px;
    }

    .lightbox-counter {
        font-size: 0.85rem;
        padding: 6px 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Custom Navbar Button */
.button.navbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: var(--color-gold-light);
    border: 4px solid var(--color-gold-light);
    color: var(--color-deep-teal);
    gap: 8px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.button.navbar-btn .text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.button.navbar-btn .svg {
    padding-top: 2px;
    height: 100%;
    width: fit-content;
    display: flex;
    align-items: center;
}

.button.navbar-btn .svg svg {
    width: 25px;
    height: auto;
}

.button.navbar-btn .svg svg path {
    fill: var(--color-deep-teal);
}

.button.navbar-btn:hover {
    border: 4px solid var(--color-gold);
    background-color: var(--color-gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.button.navbar-btn:active {
    border: 4px solid var(--color-gold-light);
    transform: scale(0.98);
}

.button.navbar-btn:hover .svg svg {
    animation: jello-vertical 0.9s both;
    transform-origin: center;
}

@keyframes jello-vertical {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(0.75, 1.25, 1);
    }

    40% {
        transform: scale3d(1.25, 0.75, 1);
    }

    50% {
        transform: scale3d(0.85, 1.15, 1);
    }

    65% {
        transform: scale3d(1.05, 0.95, 1);
    }

    75% {
        transform: scale3d(0.95, 1.05, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* ========================================
   COOKIE NOTICE - GDPR Compliant
   ======================================== */

/* Cookie Notice Banner */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    pointer-events: none;
}

.cookie-notice.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-notice .cookie-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    transform: translateY(-100%);
    pointer-events: none;
}

.cookie-notice .cookie-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cookie-content {
    background: var(--color-white);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 -10px 40px rgba(0, 77, 97, 0.15);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.cookie-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--gradient-lagoon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(46, 196, 182, 0.3);
    animation: cookie-bounce 2s ease-in-out infinite;
}

@keyframes cookie-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.cookie-text {
    flex: 1;
    min-width: 250px;
    max-width: 600px;
}

.cookie-text h4 {
    color: var(--color-deep-teal);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cookie-text p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-policy-link {
    color: var(--color-ocean);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: var(--color-turquoise);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* Cookie Buttons */
.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-body);
}

.cookie-btn-accept {
    background: var(--gradient-gold);
    color: var(--color-deep-teal);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.cookie-btn-essential {
    background: var(--color-white);
    color: var(--color-deep-teal);
    border: 2px solid var(--color-deep-teal);
}

.cookie-btn-essential:hover {
    background: var(--color-deep-teal);
    color: var(--color-white);
    transform: translateY(-2px);
}

.cookie-btn-customize {
    background: transparent;
    color: var(--color-ocean);
    border: 1px solid rgba(0, 109, 135, 0.3);
}

.cookie-btn-customize:hover {
    background: rgba(0, 109, 135, 0.1);
    border-color: var(--color-ocean);
    transform: translateY(-2px);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 77, 97, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.cookie-modal.active {
    opacity: 1;
    pointer-events: all;
}

.cookie-modal-content {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 77, 97, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-modal.active .cookie-modal-content {
    transform: scale(1) translateY(0);
}

.cookie-modal-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 0;
}

.cookie-modal-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cookie-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 77, 97, 0.1);
    border: none;
    color: var(--color-deep-teal);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.cookie-modal-close:hover {
    background: var(--color-deep-teal);
    color: var(--color-white);
}

.cookie-modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cookie-modal-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-lagoon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(46, 196, 182, 0.3);
}

.cookie-modal-header h3 {
    color: var(--color-deep-teal);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.cookie-modal-header p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-body {
    padding: 10px 30px 20px;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.cookie-category {
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 77, 97, 0.08);
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(0, 109, 135, 0.2);
    box-shadow: 0 4px 15px rgba(0, 77, 97, 0.08);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    color: var(--color-deep-teal);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-info h4 i {
    color: var(--color-ocean);
    font-size: 0.9rem;
}

.cookie-category-info p {
    color: var(--color-text-light);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--color-white);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background: var(--gradient-lagoon);
}

.cookie-toggle input:checked+.cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle.cookie-toggle-disabled .cookie-toggle-slider {
    background: var(--color-turquoise);
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-toggle.cookie-toggle-disabled .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--color-white);
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-content {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .cookie-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.5rem;
    }

    .cookie-text {
        min-width: unset;
    }

    .cookie-text h4 {
        font-size: 1.1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.8rem;
        justify-content: center;
    }

    .cookie-modal-content {
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }

    .cookie-modal-header {
        padding: 25px 20px 15px;
    }

    .cookie-modal-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .cookie-modal-header h3 {
        font-size: 1.4rem;
    }

    .cookie-modal-body {
        padding: 10px 20px 15px;
        max-height: 250px;
    }

    .cookie-category {
        padding: 14px 16px;
    }

    .cookie-modal-footer {
        padding: 15px 20px 25px;
    }

    .cookie-modal-footer .cookie-btn {
        flex: 1;
    }
}