/* =========================================
   Navycolor Verniciature - Stile Premium
   ========================================= */

:root {
    /* === COLORI BRAND NAVYCOLOR (estratti dal logo originale) === */
    --navy-deep: #022345;
    --navy-darker: #01132a;
    --navy-blue: #032e5c;
    --navy-mid: #053d7a;
    --navy-light: #0a4f9c;
    --accent-gold: #c9a96e;
    --accent-gold-hover: #b8954e;
    --accent-cyan: #46b5d1;
    --text-dark: #010101;
    --text-gray: #7b7f81;
    --text-light: #f5f5f5;
    --bg-light: #f8f9fa;
    --bg-cream: #faf7f2;
    --shadow: 0 4px 20px rgba(2, 35, 69, 0.15);
    --shadow-lg: 0 10px 40px rgba(2, 35, 69, 0.25);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    padding-top: 76px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-accent { color: var(--accent-gold); }
.bg-accent { background-color: var(--accent-gold); }
.bg-navy-deep { background-color: var(--navy-deep); }
.bg-cream { background-color: var(--bg-cream); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn-accent:hover::after { transform: translateX(100%); }
.btn-accent:hover, .btn-accent:focus {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}
.btn-outline-gold {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s var(--transition);
}
.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: rgba(2, 19, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s var(--transition);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}
.navbar.scrolled {
    background-color: rgba(2, 19, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand .brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s var(--transition);
}
.navbar-brand:hover .brand-logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 4px var(--accent-gold));
    opacity: 0.9;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 4px;
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.3s;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s var(--transition);
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}
.navbar-nav .nav-link:hover { color: var(--accent-gold) !important; }
.navbar-nav .btn-accent { color: #fff !important; padding: 8px 22px !important; margin-left: 12px; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-right: 12px;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s var(--transition);
}
.lang-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff !important;
    transform: translateY(-1px);
}
.lang-btn-active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}
.lang-btn .lang-code {
    font-weight: 700;
}
.lang-btn .bi-translate {
    font-size: 1rem;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--navy-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    width: 280px;
    max-width: 80vw;
    height: auto;
    background: #ffffff;
    padding: 24px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: pulse-logo 1.5s ease-in-out infinite;
}
@keyframes pulse-logo {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -76px;
    padding: 100px 0 60px;
    overflow: hidden;
    color: #fff;
    background: #022345;
}
.hero-split {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 1;
}
.hero-half {
    position: relative;
    flex: 1 1 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
}
.hero-half-image {
    background-size: cover;
    background-position: center;
    filter: brightness(0.65);
    position: relative;
}
.hero-half-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2,35,69,0.55), rgba(1,19,42,0.45));
    pointer-events: none;
}
.hero-half-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.hero-half-video {
    background: #01132a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-half-video .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    z-index: 1;
}
.hero-video-caption {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    pointer-events: none;
}
.hero-video-caption span {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(2,35,69,0.65);
    border: 1px solid rgba(201,169,110,0.6);
    border-radius: 50px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 5;
    margin: 0 auto;
    color: #fff;
}
.hero-eyebrow {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid var(--accent-gold);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s both;
}
.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}
.hero-cta { animation: fadeInUp 1s ease 0.6s both; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}
.scroll-indicator i { display: block; font-size: 1.5rem; margin-top: 8px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== QUICK BOOKING FORM (in hero) ===== */
.quick-booking-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(201, 169, 110, 0.2);
}
.quick-booking-card h3 {
    color: var(--navy-deep);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}
.quick-booking-card .form-label { color: var(--navy-deep); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.3rem; }
.quick-booking-card .form-control,
.quick-booking-card .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    background: #fff;
}
.quick-booking-card .form-control:focus,
.quick-booking-card .form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.2);
}

/* ===== STATS ===== */
.stats-section {
    background: linear-gradient(135deg, var(--navy-darker), var(--navy-deep));
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.15), transparent 70%);
    border-radius: 50%;
}
.stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
}
.stat-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1rem auto 0;
}
.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}
.section-padding { padding: 100px 0; }

/* ===== SERVICE CARDS ===== */
.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s var(--transition);
    border: 1px solid rgba(2, 35, 69, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.service-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .service-card-image img {
    transform: scale(1.08);
}
.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(2,35,69,0.4));
}
.service-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-card h5 {
    color: var(--navy-deep);
    margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-gray); flex-grow: 1; }
.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ===== BEFORE/AFTER SLIDER ===== */
.before-after-section { padding: 100px 0; background: var(--bg-cream); }
.ba-slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: ew-resize;
    user-select: none;
    aspect-ratio: 16/10;
}
.ba-slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba-slider-before-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: 50%;
    z-index: 2;
}
.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
    z-index: 3;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    pointer-events: none;
}
.ba-slider-handle::after {
    content: '⇄';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    cursor: ew-resize;
}
.ba-slider-label {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 1;
}
.ba-slider-label.left { left: 20px; }
.ba-slider-label.right { right: 20px; }

/* ===== PROCESS TIMELINE ===== */
.process-section { padding: 100px 0; background: #fff; }
.process-timeline {
    position: relative;
    padding: 2rem 0;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--navy-deep), var(--accent-gold));
    z-index: 0;
}
.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}
.process-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-gold);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    transition: all 0.3s var(--transition);
}
.process-step:hover .process-number {
    background: var(--accent-gold);
    color: #fff;
    transform: scale(1.1);
}
.process-step h4 {
    color: var(--navy-deep);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
.process-step p {
    color: var(--text-gray);
    font-size: 0.95rem;
}
.process-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* ===== BRAND PARTNERS ===== */
.brand-section { padding: 80px 0; background: #fff; }
.brand-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
    transition: all 0.3s var(--transition);
}
.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}
.brand-card-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.brand-card-logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
}
.brand-card:hover .brand-card-logo img { filter: grayscale(0); }
.brand-card h6 { color: var(--navy-deep); font-weight: 600; margin-bottom: 0.75rem; }
.brand-card p { font-size: 0.9rem; color: var(--text-gray); margin: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-darker));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}
.testimonials-section .section-title { color: #fff; }
.testimonials-section .section-subtitle { color: rgba(255,255,255,0.8); }
.testimonial-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    color: #fff;
    height: 100%;
    transition: all 0.3s var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}
.testimonial-quote {
    font-size: 4rem;
    color: var(--accent-gold);
    line-height: 0.5;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
}
.testimonial-stars {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 1.3rem;
}
.testimonial-info h6 { margin: 0; font-size: 1rem; font-weight: 600; color: #fff; font-family: 'Montserrat', sans-serif; }
.testimonial-info small { color: rgba(255,255,255,0.7); }

/* ===== PARTNERS / CANTIERI ===== */
.partners-section { padding: 80px 0; background: var(--bg-light); }
.partner-logo {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition);
    min-height: 110px;
}
.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-gold);
}
.partner-logo h5 {
    margin: 0;
    color: var(--navy-deep);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* ===== TEAM PARALLAX SECTION ===== */
.team-parallax-section {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 80px;
}
.team-parallax-bg {
    position: absolute;
    inset: -10% 0;
    background-image: url('/static/images/gallery/09-team.jpeg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    /* Effetto zoom: parte da 1, ingrandisce lentamente, si ferma sul gruppo */
    transform: scale(1);
    animation: team-parallax-zoom 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform;
}
.team-parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(2,19,42,0.55) 0%,
        rgba(2,19,42,0.35) 40%,
        rgba(2,19,42,0.75) 80%,
        rgba(2,19,42,0.95) 100%);
    pointer-events: none;
}
.team-parallax-content {
    position: relative;
    z-index: 2;
}
.team-parallax-section h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.team-parallax-section .lead {
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Animazione zoom che "punta" al gruppo di persone (centro alto dell'immagine) */
@keyframes team-parallax-zoom {
    0% {
        transform: scale(1.15) translateY(0);
    }
    60% {
        transform: scale(1.05) translateY(-3%);
    }
    100% {
        /* Zoom leggero + offset per centrare il gruppo di persone */
        transform: scale(1.08) translateY(-6%);
    }
}

@media (max-width: 767px) {
    .team-parallax-section { min-height: 60vh; padding: 80px 0 60px; }
    .team-parallax-bg { background-position: center 25%; }
}

/* ===== ABOUT TEASER ===== */
.about-teaser {
    padding: 100px 0;
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}
.about-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 40%;
    height: 100%;
    background-image: url('/static/images/gallery/02-poppa-30m.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    transform: translateY(0);
    will-change: transform;
    pointer-events: none;
}
.about-teaser > .container { position: relative; z-index: 1; }
.about-teaser h2 { color: var(--navy-deep); }

/* ===== STATS SECTION (con parallax leggero) ===== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #022345 0%, #01132a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(201,169,110,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(201,169,110,0.1) 0%, transparent 50%);
    animation: stats-glow 8s ease-in-out infinite alternate;
    pointer-events: none;
}
.stats-section > .container { position: relative; z-index: 1; }
@keyframes stats-glow {
    0% { opacity: 0.8; }
    100% { opacity: 1.2; }
}

/* ===== CTA FINALE ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-blue));
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: -10% 0;
    background-image: url('/static/images/gallery/05-wally-pronto.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    transform: translateY(0);
    will-change: transform;
    animation: cta-parallax-drift 14s ease-in-out infinite alternate;
}
.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2,35,69,0.85), rgba(1,19,42,0.75));
    pointer-events: none;
}
.cta-section > .container { position: relative; z-index: 2; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

@keyframes cta-parallax-drift {
    0% { transform: scale(1.05) translateY(0); }
    100% { transform: scale(1.15) translateY(-3%); }
}

/* ===== TRUST BADGES STRIP ===== */
.trust-section {
    padding: 70px 0;
    background: var(--bg-cream);
    border-top: 1px solid rgba(201,169,110,0.2);
    border-bottom: 1px solid rgba(201,169,110,0.2);
}
.trust-badge {
    padding: 1.5rem 1rem;
    transition: transform 0.4s var(--transition);
}
.trust-badge:hover { transform: translateY(-6px); }
.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #b8924d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(201,169,110,0.4);
}
.trust-title {
    font-family: 'Playfair Display', serif;
    color: var(--navy-deep);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
.trust-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 9985;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 6px 20px rgba(201,169,110,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--navy-deep);
    transform: translateY(-4px);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9995;
    background: rgba(2, 35, 69, 0.98);
    color: #fff;
    padding: 18px 20px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-icon {
    font-size: 2.4rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}
.cookie-text {
    flex: 1 1 400px;
}
.cookie-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--accent-gold);
}
.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}
.cookie-link {
    color: var(--accent-gold) !important;
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.btn-cookie-reject {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-cookie-reject:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.btn-cookie-accept {
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    color: #fff;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-cookie-accept:hover {
    background: #fff;
    color: var(--navy-deep);
    border-color: #fff;
}

/* ===== STICKY NAVBAR SHADOW ===== */
.navbar {
    transition: box-shadow 0.3s var(--transition), background-color 0.3s var(--transition), padding 0.3s var(--transition);
}
.navbar.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    background: rgba(2, 35, 69, 0.98) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
    .trust-section { padding: 50px 0; }
    .trust-icon { width: 52px; height: 52px; font-size: 1.4rem; }
    .trust-title { font-size: 0.95rem; }
    .trust-text { font-size: 0.82rem; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-icon { font-size: 1.8rem; }
    .cookie-text strong { font-size: 0.95rem; }
    .cookie-actions { width: 100%; justify-content: center; }
    .back-to-top { bottom: 80px; right: 16px; width: 42px; height: 42px; font-size: 1.1rem; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-darker);
    color: #fff;
    padding-top: 4rem;
}
.footer a { text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent-gold) !important; }
.footer-original-logo {
    padding: 1.5rem 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
}
.footer-original-logo-img {
    max-width: 320px;
    height: auto;
    background: #ffffff;
    padding: 18px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s var(--transition), box-shadow 0.3s;
}
.footer-original-logo-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    z-index: 9990;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s var(--transition);
    text-decoration: none;
    animation: whatsapp-pulse 2.5s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: whatsapp-ring 2s infinite;
    z-index: -1;
}
@keyframes whatsapp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes whatsapp-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--navy-deep);
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ===== GALLERY MASONRY ===== */
.gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
}
@media (max-width: 992px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 576px) { .gallery-masonry { column-count: 1; } }

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #000;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s var(--transition);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(2, 35, 69, 0.95));
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay h6 { color: #fff; margin-bottom: 0.3rem; }
.gallery-item-overlay small { color: rgba(255,255,255,0.8); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--accent-gold); color: #fff; }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    max-width: 80%;
    text-align: center;
}

/* Gallery filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.gallery-filter-btn {
    border: 1.5px solid #ddd;
    background: #fff;
    color: var(--navy-deep);
    padding: 8px 22px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s var(--transition);
    cursor: pointer;
}
.gallery-filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.gallery-filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-blue));
    color: #fff;
    padding: 80px 0 60px;
    margin-top: -76px;
    padding-top: 116px;
    text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0; }
.page-header p { color: rgba(255,255,255,0.85); margin-top: 1rem; font-size: 1.1rem; }

/* ===== CONTACT FORM ===== */
.contact-form-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.contact-info-card {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-blue));
    color: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    height: 100%;
}
.contact-info-card h5 { color: var(--accent-gold); margin-bottom: 1rem; }
.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-top: 4px;
}

/* ===== MAP ===== */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== ANIMATIONS (AOS-like) ===== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s var(--transition);
}
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-left"] { transform: translateX(-40px); }
[data-aos="fade-right"] { transform: translateX(40px); }
[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .process-timeline::before { display: none; }
    .process-step { margin-bottom: 2rem; }
    .gallery-masonry { column-count: 2; }
    .hero-bg { background-attachment: scroll; }
}
@media (max-width: 767px) {
    body { padding-top: 70px; }
    .navbar { padding: 0.5rem 0; }
    .navbar-brand .brand-text { font-size: 1.3rem; }
    .brand-logo-img { height: 36px; }
    .footer-original-logo-img { max-width: 220px; padding: 12px 18px; }
    .gallery-masonry { column-count: 1; }

    /* HERO mobile: testo compatto in alto + video dominante sotto */
    .hero { min-height: 100vh; padding: 80px 0 0; margin-top: -70px; }
    .hero-split { flex-direction: column; }
    .hero-half { width: 100%; }
    .hero-half-image { flex: 0 0 38%; height: 38%; min-height: 280px; }
    .hero-half-video { flex: 1 1 62%; height: 62%; min-height: 380px; }
    .hero-half-inner { padding: 18px 14px; }
    .hero-eyebrow { font-size: 0.7rem; padding: 4px 12px; margin-bottom: 0.5rem; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); margin-bottom: 0.7rem; line-height: 1.05; }
    .hero .lead { font-size: 0.9rem; margin-bottom: 0.9rem; line-height: 1.4; opacity: 0.95; }
    .hero-cta { gap: 0.5rem !important; }
    .hero-cta .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
    .hero-video-caption span { font-size: 1rem; padding: 7px 18px; }
    .scroll-indicator { display: none; }

    .section-padding { padding: 60px 0; }
    .stat-number { font-size: 2.5rem; }
    .whatsapp-float { width: 54px; height: 54px; font-size: 1.7rem; bottom: 16px; right: 16px; }
    .ba-slider-container { aspect-ratio: 4/3; }
}

/* Tablet: 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .hero { min-height: 80vh; }
    .hero-split { flex-direction: row; }
    .hero-half-image { flex: 1 1 50%; }
    .hero-half-video { flex: 1 1 50%; }
    .hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
    .hero .lead { font-size: 1rem; }
}
