/* ==========================================================================
   CLEANROOM ITALIA - UNIFIED MASTER STYLESHEET 2026
   "Sterile, Professional, Minimal Architect Style"
   ========================================================================== */

/* 1. RESET & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Palette - Deep Corporate Blue & Sterile White */
    --primary-color: #255265;       /* Primary Deep Teal/Blue */
    --primary-dark: #1b3d4d;        /* Darker variant for contrast */
    --primary-light: #3e6d82;       /* Lighter variant for accents */
    --accent-color: #255265;        /* Replaced Red with Primary for monochrome look */
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8fbfd;           /* Very subtle blue-tinted white */
    --grey-light: #eef2f5;          /* Card backgrounds / Borders */
    --grey-medium: #a0aeb5;         /* Secondary text */
    --text-main: #2c3e50;           /* Main readable text (not pure black) */
    
    /* UI Variables */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    --shadow-subtle: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-float: 0 20px 40px rgba(37, 82, 101, 0.12);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

html::-webkit-scrollbar {
    display: none !important;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: transparent !important; /* Changed from var(--white) to enable fixed video bg */
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* 2. TOP BAR (UTILITY BAR) - THE "TINY" FIX */
.uicore-top-bar {
    background-color: var(--primary-dark) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 36px !important; /* STRICT HEIGHT */
    line-height: 36px !important;
    overflow: hidden;
    width: 100%;
    display: block;
    position: relative;
    z-index: 2001;
    font-size: 11px !important;
}

/* Flex Container for Top Bar Content */
.uicore-top-bar .elementor-container {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Specific Columns */
.ui-tb-col-1, 
.ui-tb-col-2 {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Icon Wrappers - Aggressive Reset */
.uicore-icon-wrapp {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ui-tb-col-1 .uicore-icon-wrapp:not(:last-child) {
    margin-right: 25px !important;
}

/* Icons - Tiny & Clean */
.uicore-icon-wrapp i, 
.uicore-icon-wrapp i[style] {
    font-size: 13px !important;
    color: var(--grey-medium) !important;
    margin-right: 6px !important;
    padding: 0 !important; /* CRITICAL FIX for "enormous" padding */
    line-height: 1;
    display: inline-block;
}

/* Links inside Top Bar */
.uicore-top-bar a,
.uicore-top-bar span {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 11px !important; 
    font-weight: 500 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.uicore-top-bar a:hover {
    color: var(--white) !important;
}


/* 3. MAIN NAVBAR */
.uicore-navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0; /* Reduced padding for cleaner look */
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.uicore-header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.uicore-branding img {
    max-height: 45px; /* Slightly smaller logo for modern look */
    width: auto;
    transition: var(--transition-fast);
}

/* Navigation Links */
.uicore-menu-container .uicore-menu {
    display: flex;
    align-items: center;
    gap: 8px; /* Tighter gap */
}

.uicore-menu-container .uicore-menu > li > a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important; /* Clean readable size */
    color: var(--primary-color) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.uicore-menu-container .uicore-menu > li > a:hover,
.uicore-menu-container .uicore-menu > li.current-menu-item > a {
    background-color: var(--grey-light);
    color: var(--primary-dark) !important;
}

.ui-menu-item-wrapper::after { display: none !important; }

/* "Get Quote" Main CTA */
.uicore-cta-wrapper .uicore-btn {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: var(--shadow-subtle);
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    transition: var(--transition-smooth);
}

.uicore-cta-wrapper .uicore-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    background-color: var(--primary-dark) !important;
}


/* 4. HERO SECTION */
.elementor-section.elementor-top-section:first-of-type {
    min-height: 85vh !important;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px !important;
}

/* Gradient Overlay - Dark & Premium */
.elementor-section.elementor-top-section:first-of-type .elementor-background-overlay {
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(37, 82, 101, 0.85) 100%) !important;
    opacity: 0.92 !important;
}

/* Hero Typography */
.elementor-section.elementor-top-section:first-of-type h1 {
    font-size: 3.5rem !important;
    color: var(--white) !important;
    font-weight: 800 !important;
    letter-spacing: -1.5px;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
    max-width: 800px;
}

.elementor-section.elementor-top-section:first-of-type h5 {
    font-size: 0.9rem !important;
    color: var(--grey-medium) !important; /* Muted text above H1 */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem !important;
}

.elementor-section.elementor-top-section:first-of-type p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 1.25rem !important;
    max-width: 600px;
    font-weight: 300;
    margin-bottom: 40px !important;
}


/* 5. CARDS & SECTIONS */
.elementor-section {
    padding: 80px 0 !important; /* Force breathing room */
}

.elementor-section:nth-child(even) {
    background-color: var(--off-white) !important;
}

/* Icon Box Cards */
.bdt-advanced-icon-box {
    background: var(--white) !important;
    border-radius: var(--radius-md);
    padding: 40px 30px !important;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--grey-light);
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: left !important;
}

.bdt-advanced-icon-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

/* Card Icons */
.bdt-advanced-icon-box-icon {
    width: 60px;
    height: 60px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition-fast);
}

.bdt-advanced-icon-box:hover .bdt-advanced-icon-box-icon {
    background: var(--primary-color);
    color: var(--white);
}

.bdt-advanced-icon-box-title {
    font-size: 1.25rem !important;
    color: var(--primary-dark) !important;
    margin-bottom: 15px !important;
}

.bdt-advanced-icon-box-description p {
    font-size: 0.95rem;
    color: var(--text-light);
}


/* 6. GENERAL BUTTONS (Global Override) */
.btnCustom, .btnCTA, .elementor-button {
    display: inline-block;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 12px 30px !important;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    text-align: center;
}

.btnCustom:hover, .btnCTA:hover, .elementor-button:hover {
    background-color: var(--white) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-float);
    transform: translateY(-3px);
}


/* 7. FOOTER */
.uicore-footer-wrapper {
    background-color: var(--primary-dark) !important;
    color: rgba(255,255,255,0.7) !important;
    padding-top: 80px;
    padding-bottom: 40px;
}

.uicore-footer-title {
    color: var(--white) !important;
    font-size: 1.1rem !important;
    margin-bottom: 25px !important;
    opacity: 0.9;
}

.uicore-footer-widget ul li a {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.uicore-footer-widget ul li a:hover {
    color: var(--white) !important;
    padding-left: 5px;
}


/* ==========================================================================
   3. CLEAN NAV BAR (RESTORATION)
   ========================================================================== */
.clean-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: all 0.4s ease;
    background-color: transparent; /* Default Transparent */
    color: var(--white);
}

.clean-navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-card);
    height: 80px; /* Slightly smaller on scroll */
    color: var(--primary-dark);
}

.clean-navbar .logo img {
    height: 40px;
    transition: all 0.3s ease;
}

/* Menu Items */
.clean-nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.clean-nav-menu li a {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: inherit;
    position: relative;
    padding: 5px 0;
}

/* Underline Animation */
.clean-nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff; /* Explicitly White as requested */
    transition: width 0.3s ease;
}

.clean-nav-menu li a:hover::after {
    width: 100%;
}

/* ==================
   COMING SOON OVERLAY
   ================== */
#comingSoonOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 61, 77, 0.6); /* Brand blue tint */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999; /* Top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#comingSoonOverlay.active {
    opacity: 1;
    pointer-events: all;
}

#comingSoonOverlay h2 {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    text-align: center;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.overlay-close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overlay-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255,255,255,0.1);
}

.overlay-close-btn span {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
}

.overlay-close-btn span::before,
.overlay-close-btn span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.overlay-close-btn span::before {
    transform: translateY(-50%) rotate(45deg);
}

.overlay-close-btn span::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* CTA Button */
.clean-nav-cta {
    background-color: transparent;
    border: 2px solid currentColor;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.3s;
}

.clean-nav-cta:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

/* Mobile Toggle */
.clean-mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .clean-nav-menu {
        display: none; /* Hide desktop menu */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-card);
        color: var(--primary-dark); /* Always dark on mobile dropdown */
    }
    
    .clean-nav-menu.active {
        display: flex;
    }
    
    .clean-mobile-toggle {
        display: block;
    }
    
    .clean-navbar {
        background-color: var(--white); /* Always white on mobile for readability? Or keep transparent until scroll? */
        color: var(--primary-dark); /* Safer for mobile visibility usually */
    }
}


/* Logo Logic for Transparent Header */
.clean-navbar:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
    .clean-navbar .logo img {
        filter: none !important; /* Force dark logo on mobile white header */
    }
}

/* Custom Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Ensure parent section handles it */
.elementor-element-2e24b200 {
    position: relative;
    overflow: hidden;
    background-image: none !important; /* Override existing background image */
}

/* Force clear any inline background set by Elementor on the Hero Section */
.elementor-element-2e24b200,
section[data-id="2e24b200"] {
    background-image: none !important;
    background-color: var(--primary-color); /* Fallback to solid color */
    
    /* Force Fullscreen Height */
    height: 100vh !important;
    min-height: 100vh !important;
    
    /* Center Content */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Ensure no weird padding/margin breaks 100vh */
    margin: 0 !important;
    padding: 0 !important;
}

/* Perfect Centered Video */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers entire area without stretch */
    object-position: center center; /* Centers the video focus */
    z-index: 0;
}

/* Clear the overlay background explicitly */
.elementor-element-2e24b200 .elementor-background-overlay {
    z-index: 1;
    background-image: none !important;
    opacity: 0.3 !important; /* Slight dark overlay for text readability */
    background-color: #000000 !important;
    height: 100% !important; /* Ensure overlay covers full 100vh */
}

/* Nuclear option: Remove any element with intro.jpg as background */
[style*="intro.jpg"] {
    background-image: none !important;
}

/* Content needs to be above overlay */
.elementor-element-2e24b200 .elementor-container {
    z-index: 2;
    position: relative;
    width: 100%; /* Ensure container takes width */
}

/* Force Navbar Transparency on initial state */
.clean-navbar:not(.scrolled) {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* HERO SECTION OVERRIDES */
#hero-section h1,
#hero-section h2,
#hero-section h3,
#hero-section h4,
#hero-section h5,
#hero-section h6, 
#hero-section p {
    color: #ffffff !important;
}

/* ==================
   BUTTON 53 STYLE
   ================== */
.btn-53,
.btn-53 *,
.btn-53 :after,
.btn-53 :before,
.btn-53:after,
.btn-53:before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn-53 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  
  /* DEFAULT STATE: White Button, Blue Text */
  background-color: #ffffff; 
  color: #1b3d4d; 
  
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
  
  /* Container Properties */
  border: 2px solid #ffffff; /* White Border */
  border-radius: 999px;
  box-sizing: border-box;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  
  /* Increased Size */
  padding: 15px 60px; 
  z-index: 0;
  margin-left: 20px;
  
  transition: all 0.3s ease;
}

/* HOVER STATE: Blue Button, White Text */
.btn-53:hover {
    background-color: #1b3d4d;
    border-color: #1b3d4d;
    color: #ffffff;
}

.btn-53:disabled {
  cursor: default;
}

.btn-53:-moz-focusring {
  outline: auto;
}

.btn-53 svg {
  display: block;
  vertical-align: middle;
}

.btn-53 [hidden] {
  display: none;
}

.btn-53 .original {
  /* INITIAL TEXT: Matches Default Button (White BG, Blue Text) */
  background: #ffffff; 
  color: #1b3d4d; 
  
  display: grid;
  inset: 0;
  place-content: center;
  position: absolute;
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1);
  z-index: 1;
}

.btn-53:hover .original {
  transform: translateY(100%); /* Slides down/out */
  background: #1b3d4d; /* Changes color to match hover just in case */
  color: #ffffff;
}

.btn-53 .letters {
  display: inline-flex;
  color: #ffffff; /* Letters revealed on Blue Hover Background must be White */
}

/* Ensure letters inherit white on hover */
.btn-53:hover .letters {
    color: #ffffff;
}

.btn-53 span {
  opacity: 0;
  transform: translateY(-15px);
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.2s;
}

.btn-53 span:nth-child(2n) {
  transform: translateY(-25px);
}

.btn-53:hover span {
  opacity: 1;
  transform: translateY(0);
}

.btn-53:hover span:nth-child(2) {
  transition-delay: 0.1s;
}

.btn-53:hover span:nth-child(3) {
  transition-delay: 0.2s;
}

.btn-53:hover span:nth-child(4) {
  transition-delay: 0.3s;
}

.btn-53:hover span:nth-child(5) {
  transition-delay: 0.4s;
}

.btn-53:hover span:nth-child(6) {
  transition-delay: 0.5s;
}

/* LETTERS DELAYS */
.btn-53:hover span:nth-child(7) { transition-delay: 0.6s; }
.btn-53:hover span:nth-child(8) { transition-delay: 0.7s; }
.btn-53:hover span:nth-child(9) { transition-delay: 0.8s; }
.btn-53:hover span:nth-child(10) { transition-delay: 0.9s; }
.btn-53:hover span:nth-child(11) { transition-delay: 1.0s; }

/* ==================
   ITALY FLAG ANIMATION
   ================== */
@keyframes colorToGreen {
    to { color: #5c9e78; } /* Muted Green */
}

@keyframes colorToRed {
    to { color: #d66b72; } /* Muted Red */
}

.flag-text span {
    display: inline-block;
    color: #ffffff; /* Start White */
}

.flag-green {
    animation: colorToGreen 2s ease-out forwards;
    animation-delay: 1.5s; /* Wait for hero fade-in to settle */
}

.flag-white {
    /* Stays White */
}

.flag-red {
    animation: colorToRed 2s ease-out forwards;
    animation-delay: 3.0s; /* Start after green is mostly done */
}
