/* Custom Variables - Palette limitata ai 3 blu del Logo */
:root {
    --primary-color: #0a3a6a;     /* Blu Medio Logo */
    --primary-light: #165697;     /* Blu Chiaro Logo (Accent) */
    --primary-dark: #052240;      /* Blu Scuro Logo */
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-heading: 'Heebo', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: var(--font-heading);
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Cards & Service Boxes */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.service-box {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-box:hover {
    border-bottom: 3px solid var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

/* Utilities */
.hover-white:hover {
    color: #fff !important;
}

.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 1050; } /* Per Modal e Overlay superiori a elementi base */

/* Animazione Cookie Modal */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#cookie-modal.show {
    display: flex !important;
    opacity: 1 !important;
}
#cookie-modal.show > div {
    transform: scale(1) !important;
}

/* Form Controls */
.form-control {
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 58, 106, 0.25) !important;
    border-color: var(--primary-light) !important;
}

/* Buttons */
.btn {
    border-radius: 50rem; /* Pill shape */
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-icon {
    padding: 0 !important;
    width: 45px !important;
    height: 45px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

/* Rimuove i bordi colorati spessi laterali o superiori curvi dalle card (border-4) */
.border-4 {
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-start-style: none !important;
    border-inline-start: none !important;
}

/* Premium Custom Classes */
.tracking-wide { letter-spacing: 2px; }
.tracking-widest { letter-spacing: 4px; }
.text-shadow { text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

.glass-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
.glass-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.service-premium-card .img-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-premium-card:hover .img-zoom {
    transform: scale(1.1);
}
.overlay-glass {
    background: rgba(33, 37, 41, 0.3) !important;
}
.transition-all {
    transition: all 0.4s ease;
}
.service-premium-card:hover .overlay-glass {
    opacity: 1 !important;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.read-more-link:hover {
    transform: translateX(5px);
}

.decoration-accent {
    text-decoration-color: var(--accent) !important;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

/* Swiper Customize */
.swiper-button-next, .swiper-button-prev {
    transition: opacity 0.3s;
}
.hover-opacity-100:hover {
    opacity: 1 !important;
}
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

/* Overlapping Offset Cards */
.offset-card-left {
    transform: translate(-8%, 8%);
}
.offset-card-right {
    transform: translate(8%, 8%);
}
.offset-card-glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--primary-color);
}
@media (max-width: 991.98px) {
    .offset-card-left, .offset-card-right {
        transform: translate(0, 10%);
    }
}

/* Animazione Hero Onda Fluttuante */
@keyframes floating-wave {
    0% { transform: scale(1.05) translate(0, 0) rotate(0deg); }
    33% { transform: scale(1.1) translate(1.5%, 1%) rotate(0.5deg); }
    66% { transform: scale(1.08) translate(-1%, 2%) rotate(-0.5deg); }
    100% { transform: scale(1.05) translate(0, 0) rotate(0deg); }
}

.animate-floating-wave {
    animation: floating-wave 25s ease-in-out infinite;
}

/* Brand Palette Enforcement */
img[src$=".jpg"], .parallax-bg, .animate-floating-wave, .service-premium-card img {
    /* filter: grayscale(100%) !important; Rimosso per visualizzare i colori normali */
}

/* Override Overlay Colore Footer 30% per le Hero */
.parallax-bg + .position-absolute.top-0.start-0.w-100.h-100,
.animate-floating-wave + .position-absolute.top-0.start-0.w-100.h-100 {
    background: rgba(33, 37, 41, 0.3) !important;
    mix-blend-mode: normal !important;
}

/* Responsive */
@media (max-width: 768px) {
    .heroSwiper {
        min-height: 70vh !important;
    }
    .display-3 {
        font-size: 2.5rem;
    }
    .display-4 {
        font-size: 2rem;
    }
}
