/* =============================================================================
   GOLDEN KEY - Comprehensive Style System (Merged)
   ============================================================================= */

:root {
    /* --- Colors --- */
    --color-primary: #c9a227;
    /* Golden Key - Oro */
    --color-primary-dark: #a68520;
    /* Oro scuro */
    --color-secondary: #1a1a1a;
    /* Nero scuro */
    --color-accent: #b8a99a;
    /* Beige caldo */
    --color-brand-green: #1b3a1b;
    /* Verde scuro dal logo */
    --bg-main: #ffffff;
    --content-high: #1a1a1a;
    --content-medium: #333333;
    --content-reversed: #ffffff;

    /* --- Typography --- */
    --font-display: 'Space Grotesk', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);
    --text-base: clamp(0.95rem, 0.9rem + 0.4vw, 1.15rem);
    --text-2xl: clamp(1.8rem, 1.7rem + 1.2vw, 2.4rem);
    --text-4xl: clamp(3.2rem, 3rem + 3vw, 5rem);

    /* --- Geometric Foundation (Strictly 0px) --- */
    --radius-none: 0;
    --radius-sm: 0;
    --radius-md: 0;

    /* --- Transitions --- */
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-normal: 300ms;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--content-high);
    -webkit-font-smoothing: antialiased;
    /* overflow-x: hidden rimosso per fixare position:fixed su iOS Safari */
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 2rem;
}

/* --- Helpers --- */
.text-center {
    text-align: center !important;
}

.text-center .section-num {
    margin-inline: auto;
}

/* --- Buttons (Squared Style) --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 2.5rem;
    background: #000;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border: none;
    transition: transform 0.2s var(--ease-default);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: var(--color-primary-dark);
}

/* --- Hero Section --- */
.hero .container {
    padding-inline: 1rem;
}

.hero {
    position: relative;
    height: 100vh;
    height: 100svh; /* Safari mobile fix — uses small viewport height */
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;

    background: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    /* Clean cinematic look — no heavy post-processing */
    filter: contrast(1.05) saturate(1.05);
    -webkit-filter: contrast(1.05) saturate(1.05);
    transform: translateZ(0);
    /* Hardware acceleration */
}

.hero-video.active {
    opacity: 1;
    z-index: 3;
}

/* Incoming video sits fully visible below the current one */
.hero-video.next {
    opacity: 1;
    z-index: 2;
}

/* ====== SUBTLE CINEMATIC VIGNETTE ====== */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image:
        /* Very subtle noise for film texture */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-5%, -5%);
    }

    50% {
        transform: translate(5%, 5%);
    }

    75% {
        transform: translate(-5%, 5%);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    /* Hidden by default — shown only if videos fail */
    transition: opacity 0.5s ease;
}

.hero-mask {
    position: absolute;
    inset: 0;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    min-height: 450px;
    margin-top: 6.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* Glassy box solo sul testo */
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 3rem 3.5rem;
    max-width: 650px;
    margin-left: 2rem;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-num {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    color: #fff;
    margin-bottom: 2rem;
    display: none;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 2.5rem + 2.8vw, 4.2rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 2rem;
    /* Ombra multistrato per contrasto su qualsiasi sfondo */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.95);
    max-width: 40ch;
    margin-bottom: 3rem;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Titolo hero più piccolo in inglese per evitare overlap con navbar */
:lang(en) .hero h1 {
    font-size: clamp(2.4rem, 2.2rem + 2.5vw, 3.8rem);
}

/* --- [02] SOCIAL PROOF SECTION --- */
.section-padding {
    padding-block: 10rem;
}

.section-num {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    color: var(--color-primary);
    display: block;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
}

.sp-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.counter-box {
    margin-bottom: 2rem;
}

.counter-num {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
}

.counter-label {
    font-size: 1.15rem;
    font-weight: 600;
    max-width: 20ch;
}

.sp-description {
    max-width: 35ch;
    margin-bottom: 3rem;
    color: var(--content-medium);
}

.partner-icon {
    height: 50px;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

.partner-icon:hover {
    transform: translateY(-5px);
}

/* Property Grid (Asymmetric Layout) */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 0.5rem;
}

.pg-item {
    overflow: hidden;
    background: #111;
    position: relative;
    cursor: pointer;
}

.pg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-default), filter 0.4s var(--ease-default);
}

.pg-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

/* Hover Overlay with Icon */
.pg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-default);
    z-index: 2;
    pointer-events: none;
}

.pg-overlay i,
.pg-overlay svg {
    width: 36px;
    height: 36px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.pg-item:hover .pg-overlay {
    opacity: 1;
}

.span-v {
    grid-row: span 2;
}

.span-h {
    grid-column: span 2;
}

/* --- Reveal System Refinement --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-default), transform 0.8s var(--ease-default);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 200ms;
}

/* --- Responsive Social Proof --- */
@media (max-width: 1024px) {
    .sp-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- [03] WHY CHOOSE US SECTION --- */
.bg-alt {
    background: linear-gradient(90deg, #051405 0%, #0d2b0d 50%, #1b3a1b 100%);
    color: white;
}

.bg-alt .section-title,
.bg-alt .section-subtitle,
.bg-alt p {
    color: rgba(255, 255, 255, 0.9);
}

.bg-alt .section-num {
    color: var(--color-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #000;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s var(--ease-default),
        border-color 0.3s var(--ease-default);
}

/* Gold wipe: left → right */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.feature-card:hover .card-title,
.feature-card:hover .card-text,
.feature-card:hover .card-num {
    color: #fff !important;
    transition: color 0.3s 0.1s;
}

.feature-card:hover .card-icon {
    color: #fff;
    transition: color 0.3s 0.1s;
}

.card-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--color-accent);
}

.card-icon {
    width: 32px;
    height: 32px;
    stroke-width: 1.5px;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--color-secondary) !important;
    /* Force visibility on white card */
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--content-medium) !important;
    /* Force visibility on white card */
}

/* Price Box — Synchronized Animation */
.price-box {
    background: #fff;
    border: 1px solid #000;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s var(--ease-default), border-color 0.3s var(--ease-default);
}

.price-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.price-box:hover::before {
    transform: translateX(0);
}

.price-box:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.price-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.price-label {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: #000;
    transition: color 0.3s;
}

.price-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--color-primary);
    /* Gold value accent */
    transition: color 0.3s 0.1s;
}

.price-box:hover .price-label,
.price-box:hover .price-value {
    color: #fff !important;
}


/* Responsive Why Us */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .price-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- [04] INTERMEDIATE CTA SECTION --- */
.cta-mid {
    position: relative;
    padding-block: 10rem;
    /* Increased padding */
    background: #000;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.cta-slide.active {
    opacity: 1;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 5;
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.arrow {
    margin-left: 1rem;
    transition: transform 0.3s var(--ease-default);
}

.btn-primary:hover .arrow {
    transform: translateX(5px);
}

/* --- [05] SERVICES SECTION --- */
.services .section-num,
.services .section-title {
    text-align: center !important;
    margin-inline: auto;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-item {
    flex: 1 1 300px;
    min-width: 250px;
    max-width: 400px;
    padding: 2rem 1.5rem;
    border: 1px solid #eee;
    transition: all 0.3s var(--ease-default);
}

.service-item:hover {
    border-color: #000;
    box-shadow: var(--shadow-sm);
}

.service-icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px;
    color: #000;
    margin-bottom: 2rem;
}

.service-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 0.9rem;
    color: var(--content-medium);
    line-height: 1.6;
}

/* 4+3 logic for desktop */
@media (min-width: 1024px) {
    .service-item:nth-child(n+5) {
        grid-column: span 1;
    }
}

/* Responsive Services */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- [06] CONTACT FORM SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.check-icon {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.contact-form-box {
    background: #fff;
    border: 1px solid #000;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eee;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s var(--ease-default);
}

.form-group textarea {
    resize: none;
    height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;
}

.w-full {
    width: 100%;
}

/* --- FOOTER --- */
.footer {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    padding-block: 4rem 2rem;
    border-top: none;
}

/* Blend transition from Contact Section into Footer */
.contact-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #000000);
    z-index: 4;
    pointer-events: none;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2.5rem;
    /* Reduced from 4rem */
    margin-bottom: 2rem;
    /* Reduced from 3rem */
}

.footer-cta {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.footer-logo-img {
    height: 85px;
    width: auto;
    transition: transform 0.3s var(--ease-default);
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}


.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.ai-disclaimer {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Social Media Icons */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.35s var(--ease-default);
}

.footer-socials a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(198, 163, 108, 0.25);
}

.footer-socials a svg,
.footer-socials a i svg {
    width: 22px;
    font-size: 22px;
    height: 22px;
}

/* Responsive Final */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-cta {
        font-size: 2rem;
    }
}

/* Footer legal & contact info rows */
.footer-legal-info,
.footer-contact {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* =============================================================================
   ELITE REFINEMENTS — Cinematic & Premium Motion Design
   ============================================================================= */

/* --- Video Hero Background --- */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 40%,
            rgba(0, 0, 0, 0.15) 70%,
            transparent 85%);
    z-index: 1;
}

/* Fade Hero bottom → white (Option A blend) */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, #ffffff);
    z-index: 2;
    pointer-events: none;
}

/* --- Word-by-Word Text Reveal --- */
.text-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: wordReveal 0.6s var(--ease-default) forwards;
    animation-delay: calc(0.4s + var(--i) * 0.12s);
    margin-right: 0.25em;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gold-word {
    color: var(--color-primary) !important;
}

/* --- Gold Shimmer Button --- */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(201, 162, 39, 0.25) 40%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(201, 162, 39, 0.25) 60%,
            transparent 80%);
    transform: skewX(-25deg);
    transition: none;
    animation: shimmer 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes shimmer {

    0%,
    100% {
        left: -60%;
    }

    50% {
        left: 130%;
    }
}

/* --- Utility Classes --- */
.text-accent {
    color: var(--color-primary);
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* --- Delay Classes (Stagger Animations) --- */
.delay-2 {
    transition-delay: 400ms;
}

.delay-3 {
    transition-delay: 600ms;
}

.delay-4 {
    transition-delay: 800ms;
}

/* --- Enhanced Service Card Hover --- */
.service-item:hover .service-icon {
    color: var(--color-primary);
    transition: color 0.3s var(--ease-default);
}

/* --- Smooth Scroll Behavior --- */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scrolling without breaking position: fixed on body */
main, footer, .hero {
    overflow-x: hidden;
}


/* --- Link Reset --- */
a {
    text-decoration: none;
    color: inherit;
}

/* =============================================================================
   NAVBAR — Fixed, transparent → solid on scroll
   ============================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.7rem 0;
    transition: background 0.4s var(--ease-default),
        padding 0.3s var(--ease-default),
        box-shadow 0.3s var(--ease-default);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: 0.4rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.navbar:hover {
    background: rgba(0, 0, 0, 0.9);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    z-index: 101;
}

.navbar-logo img {
    height: 80px;
    width: auto;
    transition: all 0.4s var(--ease-default);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s var(--ease-default);
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* CTA button in navbar */
.nav-cta {
    padding: 0.7rem 1.8rem !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    transition: background 0.3s var(--ease-default),
        color 0.3s var(--ease-default) !important;
}

.nav-cta:hover {
    background: var(--color-primary) !important;
    color: #000 !important;
}

/* --- Hamburger Toggle (Mobile) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s var(--ease-default),
        opacity 0.3s var(--ease-default);
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
        background: rgba(0, 0, 0, 0.97);
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-default);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: #fff;
    }

    /* Hero Glassbox — centered on mobile */
    .hero-content {
        margin-left: 1rem;
        margin-right: 1rem;
        max-width: none;
        text-align: center;
        padding: 2rem 1.5rem;
        background: rgba(0, 0, 0, 0.08); /* Much more transparent on mobile */
        backdrop-filter: blur(3px); /* Less blur so video is visible */
        -webkit-backdrop-filter: blur(3px);
    }

    .hero p {
        max-width: none;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* =============================================================================
   PRIVACY POLICY PAGE
   ============================================================================= */
.privacy-page {
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
}

.privacy-page h1 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.privacy-date {
    color: var(--content-medium);
    margin-bottom: 3rem;
}

.privacy-page h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.privacy-page p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--content-medium);
    margin-bottom: 1rem;
    max-width: 75ch;
}

.privacy-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-page li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--content-medium);
    margin-bottom: 0.3rem;
}

.privacy-page hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 3rem 0;
}


/* =============================================================================
   COOKIE BANNER
   ============================================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-inner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
}

.cookie-inner a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.8rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-default);
}

.cookie-accept {
    background: var(--color-primary);
    color: #000;
}

.cookie-accept:hover {
    background: var(--color-primary-dark);
}

.cookie-reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-reject:hover {
    border-color: #fff;
}

@media (max-width: 768px) {
    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* Cookie Manage Button */
.cookie-manage {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

.cookie-manage:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Cookie Preferences Panel */
.cookie-preferences {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.cookie-preferences.open {
    max-height: 500px;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-pref-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-pref-inner h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-cat-info strong {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-cat-info p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.2rem;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle input:checked+.toggle-slider {
    background: var(--color-primary);
}

.cookie-toggle input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled+.toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Save Button */
.cookie-save {
    background: var(--color-primary);
    color: #000;
    margin-top: 1rem;
}

.cookie-save:hover {
    background: var(--color-primary-dark);
}

.cookie-pref-actions {
    text-align: right;
    margin-top: 0.5rem;
}

/* =============================================================================
   GDPR FORM CONSENT CHECKBOX
   ============================================================================= */
.form-consent {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--content-medium);
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}


/* =============================================================================
   PARTNER TEXT LOGO
   ============================================================================= */
.partner-text-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    filter: grayscale(1) opacity(0.85);
    display: inline-flex;
    align-items: center;
    transition: filter 0.3s ease, color 0.3s ease;
}

.partner-text-logo:hover {
    filter: grayscale(0) opacity(1);
    color: var(--color-primary);
}

.partners-mini {
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem !important;
    /* Force larger gap */
}

/* =============================================================================
   REVIEWS CAROUSEL
   ============================================================================= */
.reviews-carousel-wrapper {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    /* Constrain wide carousel */
    margin-inline: auto;
}

.reviews-carousel-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--color-primary);
    text-align: center;
}

.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.carousel-track-container {
    overflow: hidden !important;
    width: 100%;
    max-width: 100vw;
    flex: 1;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);

}

.carousel-slide {
    /* Desktop: 3 slides */
    flex: 0 0 calc(33.333% - 1.34rem);
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.carousel-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f8f8f8;
    color: #1a1a1a;
    border: 1px solid #eee;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-default);
    z-index: 10;
}

.carousel-arrow:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.1;
    cursor: not-allowed;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Carousel Dot Indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s var(--ease-default),
        transform 0.2s var(--ease-default);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Responsive Carousel — 2 slides on tablet, 1 on mobile */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        flex: 0 0 100%;
        height: auto;
        min-height: 400px;
        max-height: 600px;
    }
    .carousel-track {
        gap: 0;
    }
    .carousel-slide:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }
    .reviews-carousel {
        gap: 0.5rem;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* =============================================================================
   CONTACT SECTION SLIDESHOW
   ============================================================================= */
.contact-section {
    position: relative;
    overflow: hidden;
    color: white;
}

.contact-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s var(--ease-default);
}

.contact-slideshow-img.active {
    opacity: 1;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay from dark green to black for brand integration */
    background: linear-gradient(135deg, rgba(27, 58, 27, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 2;
}

.contact-section .container {
    position: relative;
    z-index: 3;
}

/* Redefine label colors for visibility on dark background */
.contact-section .form-group label {
    color: rgba(255, 255, 255, 0.9);
}

.contact-section .contact-form-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
}

.contact-section .checkbox-label {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-section .value-item h3 {
    color: var(--color-primary);
}

.contact-section .value-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   LANGUAGE SWITCHER
   ============================================================================= */
.nav-lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.2rem;
    transition: all 0.3s var(--ease-default);
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    color: var(--color-primary);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
    pointer-events: none;
}

@media (max-width: 768px) {
    .nav-lang-switcher {
        margin-left: 0;
        margin-top: 1.5rem;
        font-size: 1rem;
        justify-content: center;
        width: 100%;
    }
}

/* =============================================================================
   BACK TO TOP BUTTON
   ============================================================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s var(--ease-default);
    backdrop-filter: blur(5px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: var(--color-primary);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-default);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* =============================================================================
   GALLERY MODAL & CAROUSEL
   ============================================================================= */

/* Gallery Trigger Button */
.gallery-cta {
    margin-top: 3rem;
    text-align: center;
}

.btn-gallery-trigger {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s var(--ease-default);
    position: relative;
    overflow: hidden;
}

.btn-gallery-trigger:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.2);
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--color-primary);
}

.modal-close i {
    width: 32px;
    height: 32px;
}

/* Swiper Customize */
.gallery-swiper {
    width: 100%;
    height: 100%;
}

.gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-swiper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: var(--color-primary);
}

.gallery-swiper .swiper-pagination-bullet {
    background: #fff;
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* =============================================================================
   FORM FEEDBACK & LOADING STATES
   ============================================================================= */

.form-feedback {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    animation: feedbackSlideIn 0.4s var(--ease-default);
}

.form-feedback-success {
    background: rgba(201, 162, 39, 0.15);
    border-left: 3px solid var(--color-primary);
    color: var(--color-primary);
}

.form-feedback-error {
    background: rgba(220, 53, 69, 0.15);
    border-left: 3px solid #dc3545;
    color: #dc3545;
}

.form-feedback.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s var(--ease-default);
}

@keyframes feedbackSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Body lock when modal is open */
body.modal-open {
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}


/* --- iOS Safari Render Bugs Fix (Carousel) --- */
.carousel-track {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.carousel-slide {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.carousel-slide img {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}