/* --- VARIABILI E COLORI --- */
:root {
    --primary-blue: #0e2b4a;      
    --secondary-blue: #163b63;    
    --dark-bg: #051424; 
    --primary-green: #2e8b57;     
    --accent-yellow: #d4af37; 
    --light-gray: #f8f9fa;
    --text-dark: #2c3e50;
    --text-gray: #666;
    --white: #ffffff;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-strong: 0 20px 60px rgba(0,0,0,0.15);
}

/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--primary-blue);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar-content { display: flex; justify-content: flex-end; gap: 20px; }
.top-bar i { margin-right: 5px; color: var(--accent-yellow); }

/* --- HEADER --- */
/* --- STILE LOGO IMMAGINE (Versione Molto Grande) --- */
.logo-img {
    /* Altezza iniziale molto grande */
    max-height: 120px; 
    width: auto;      
    transition: all 0.4s ease;
    display: block;
}

/* Quando l'header scorre */
.header.scrolled .logo-img {
    /* Altezza allo scroll */
    max-height: 85px; 
}

.header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
    transition: 0.4s;
    border-bottom: 2px solid transparent; 
}
.header.scrolled {
    padding: 10px 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--accent-yellow); 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.6rem; font-weight: 800; color: var(--primary-blue); letter-spacing: -0.5px; line-height: 1;}
.logo-tagline { font-size: 0.75rem; color: var(--primary-green); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.highlight { color: var(--accent-yellow); }

.nav-list { display: flex; gap: 30px; align-items: center; }
.nav-list a { font-weight: 600; font-size: 0.85rem; color: var(--primary-blue); text-transform: uppercase; position: relative; letter-spacing: 0.5px; }
.nav-list a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; 
    background: var(--primary-green); transition: 0.3s;
}
.nav-list a:hover::after { width: 100%; }

.btn-nav {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.btn-nav:hover { background: var(--primary-green); color: var(--white); }
.btn-nav::after { display: none; }

.hamburger { display: none; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); overflow: hidden; padding-top: 80px;
}
.hero-bg { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.1); }
.hero-overlay {
    position: absolute; width: 100%; height: 100%; top:0; left:0;
    background: linear-gradient(180deg, rgba(14,43,74,0.7) 0%, rgba(14,43,74,0.4) 100%);
    z-index: -1;
}
.hero-content { z-index: 1; max-width: 900px; padding: 0 20px; }
.hero-badge {
    display: inline-block; background: rgba(212, 175, 55, 0.9); color: var(--primary-blue); 
    padding: 8px 16px; border-radius: 50px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px;
}
.hero h1 { font-size: 3.5rem; line-height: 1.2; color: var(--white); margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 1.25rem; margin-bottom: 40px; color: rgba(255,255,255,0.9); font-weight: 300; }
.typing-text { color: var(--accent-yellow); border-bottom: 3px solid var(--accent-yellow); }

.hero-btns { display: flex; justify-content: center; gap: 20px; }
.btn { padding: 15px 40px; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: 0.3s; border: none; font-size: 0.9rem; }
.btn-primary { background: var(--accent-yellow); color: var(--primary-blue); }
.btn-primary:hover { background: #b89628; transform: translateY(-3px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-blue); }

.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }
.mouse { width: 30px; height: 50px; border: 2px solid rgba(255,255,255,0.7); border-radius: 15px; margin-bottom: 10px; position: relative; }
.wheel { width: 4px; height: 8px; background: #fff; border-radius: 2px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); animation: scroll 1.5s infinite; }
@keyframes scroll { 0% { top: 10px; opacity: 1; } 100% { top: 30px; opacity: 0; } }

/* --- LIVE COUNTER STRIP (INGRANDITO) --- */
.counter-strip { background: var(--dark-bg); color: var(--white); padding: 60px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.counter-label-large { text-transform: uppercase; font-size: 1.2rem; letter-spacing: 2px; color: rgba(255,255,255,0.8); margin-bottom: 20px; font-weight: 700; }
.live-counter-box-large { font-size: 4.5rem; font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--accent-yellow); letter-spacing: 1px; line-height: 1.1; }
.unit-large { font-size: 2.5rem; color: var(--white); margin-left: 15px; }
.counter-sub-large { font-size: 1rem; color: rgba(255,255,255,0.5); margin-top: 15px; font-style: italic; }

/* --- SEZIONI GENERALI --- */
.section { padding: 120px 0; }
.bg-light { background: var(--light-gray); }
.small-title { color: var(--primary-green); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block; font-weight: 700; }
.section-title { font-size: 2.8rem; line-height: 1.2; margin-bottom: 25px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-gray); max-width: 600px; margin: 0 auto; }
.separator-line { width: 60px; height: 4px; background: var(--accent-yellow); margin-bottom: 30px; }
.text-center { text-align: center; }

/* --- SPLIT LAYOUT (Immagine + Testo) --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
/* Classe per invertire l'ordine nei desktop (Testo a Sinistra, Immagine a Destra) */
.reversed .split-text { order: 1; }
.reversed .split-image { order: 2; }

.split-text p { margin-bottom: 20px; font-size: 1.05rem; }
.signature-block { border-left: 4px solid var(--primary-green); padding-left: 20px; margin-top: 30px; font-style: italic; color: #555; }
.custom-list li { margin-bottom: 10px; font-weight: 600; color: var(--primary-blue); }
.custom-list i { color: var(--primary-green); margin-right: 10px; }

.image-wrapper { position: relative; }
.image-wrapper img { border-radius: 4px; box-shadow: var(--shadow-strong); }
.floating-card {
    position: absolute; bottom: -30px; right: -30px;
    background: var(--white); padding: 25px 40px; 
    border-radius: 4px; box-shadow: var(--shadow-strong); display: flex; align-items: center; gap: 15px;
}
.floating-card-left {
    position: absolute; bottom: -30px; left: -30px;
    background: var(--white); padding: 25px 40px; 
    border-radius: 4px; box-shadow: var(--shadow-strong); display: flex; align-items: center; gap: 15px;
}
.floating-card i, .floating-card-left i { font-size: 2rem; color: var(--accent-yellow); }
.floating-card span, .floating-card-left span { font-weight: 700; color: var(--primary-blue); font-size: 1.1rem; }

/* --- PARALLAX BREAK --- */
.parallax-break { position: relative; padding: 120px 0; text-align: center; color: var(--white); overflow: hidden; }
.parallax-bg { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(0.5); }
.parallax-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(14,43,74,0.4); z-index: -1; }
.parallax-content h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 20px; font-style: italic; }
.btn-white { background: var(--white); color: var(--primary-blue); padding: 15px 40px; border-radius: 4px; font-weight: 700; display: inline-block; margin-top: 30px; }
.btn-white:hover { background: var(--accent-yellow); color: var(--primary-blue); }

/* --- VALORI --- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; text-align: center; }
.value-item i { font-size: 3rem; color: var(--accent-yellow); margin-bottom: 20px; }
.value-item h3 { font-size: 1.4rem; }
.value-item p { color: var(--text-gray); }

/* --- PORTFOLIO --- */
.gallery-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 60px; }
.gallery-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-soft); transition: 0.3s; display: block; cursor: pointer; }
.gallery-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-5px); }
.img-overflow { overflow: hidden; height: 260px; }
.img-overflow img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-card:hover img { transform: scale(1.1); }
.gallery-info { padding: 30px; border-left: 5px solid var(--accent-yellow); }
.gallery-info h4 { margin-bottom: 8px; color: var(--primary-blue); font-size: 1.2rem; }
.gallery-info p { font-size: 0.9rem; color: var(--text-gray); }

/* --- DETTAGLI IMPIANTI (NUOVO STILE STRIP) --- */
.detail-row {
    margin-bottom: 120px; /* Spazio tra le sezioni */
    scroll-margin-top: 120px; /* Offset per lo scroll */
}
.detail-row:last-child { margin-bottom: 0; }
.detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}
.detail-row h3 { display: flex; align-items: center; gap: 15px; font-size: 2rem; margin-bottom: 20px; color: var(--primary-blue); }
.detail-row h3 i { color: var(--accent-yellow); }

/* --- CTA STRIP GOLD --- */
.cta-strip-gold {
    background: var(--accent-yellow);
    padding: 60px 0;
    background-image: linear-gradient(45deg, rgba(255,255,255,.1) 25%, transparent 25%,transparent 50%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.1) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    margin-bottom: -50px; 
    position: relative; z-index: 5;
}
.cta-content-flex { display: flex; align-items: center; justify-content: center; gap: 30px; text-align: center; }
.cta-content-flex h3 { color: var(--primary-blue); margin-bottom: 0; font-size: 2rem; }
.btn-dark-blue {
    background: var(--primary-blue); color: var(--white); padding: 18px 40px; border-radius: 4px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 0.95rem; border: none; cursor: pointer; transition: 0.3s; white-space: nowrap;
}
.btn-dark-blue:hover { background: #0a1f35; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(14, 43, 74, 0.3); }

/* --- CONTATTI ELEGANTI (DARK THEME) --- */
.contact-luxury-section { background: var(--dark-bg); color: var(--white); padding: 0; padding-bottom: 50px;}
.luxury-card {
    display: grid; grid-template-columns: 1.2fr 1fr;
    max-width: 1000px; margin: 0 auto; 
    background: #081b30; box-shadow: var(--shadow-strong); border-radius: 8px; overflow: hidden; position: relative; z-index: 10;
}
.luxury-cta { padding: 80px 60px; background: linear-gradient(135deg, var(--primary-blue) 0%, #051424 100%); position: relative; }
.luxury-subtitle { color: var(--accent-yellow); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.luxury-title { font-size: 2.5rem; color: var(--white); line-height: 1.2; margin-bottom: 25px; }
.luxury-cta p { color: rgba(255,255,255,0.7); margin-bottom: 40px; font-size: 1.05rem; }
.luxury-line { width: 60px; height: 2px; background: var(--accent-yellow); }

.luxury-info { padding: 80px 60px; background: #0b223b; display: flex; flex-direction: column; justify-content: center; }
.info-row { display: flex; gap: 20px; margin-bottom: 35px; align-items: flex-start; }
.icon-gold { color: var(--accent-yellow); font-size: 1.2rem; margin-top: 5px; min-width: 30px; }
.info-row h5 { color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 5px; font-weight: 600; }
.info-row p { font-size: 1.1rem; color: var(--white); font-weight: 400; }
.info-row a { transition: 0.3s; }
.info-row a:hover { color: var(--accent-yellow); }
.vat-row { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); font-size: 0.9rem; text-align: left; }

/* --- FOOTER --- */
.footer { background: #040e1a; color: #889bb0; padding-top: 50px; font-size: 0.9rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-logo { color: var(--white); font-size: 1.5rem; margin-bottom: 15px; }
.footer h4 { color: var(--white); margin-bottom: 25px; }
.footer ul li { margin-bottom: 12px; transition: 0.3s; }
.footer ul li:hover { color: var(--accent-yellow); cursor: pointer; }
.footer-bottom { text-align: center; padding: 25px 0; color: rgba(255,255,255,0.3); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .split-layout, .reversed { grid-template-columns: 1fr; }
    .split-image { order: -1; }
    .reversed .split-text { order: 2; }
    .reversed .split-image { order: 1; }
    
    .floating-card, .floating-card-left { bottom: 20px; right: 20px; left: auto; }
    .luxury-card { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .section { padding: 80px 0; }
    .detail-img { height: 300px; }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero { padding-top: 0; }
    .hamburger { display: block; }
    .nav-list { position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px); background: var(--white); flex-direction: column; padding: 40px; transition: 0.4s; box-shadow: -5px 0 10px rgba(0,0,0,0.1); }
    .nav-list.active { right: 0; }
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .luxury-cta, .luxury-info { padding: 40px 30px; }
    .cta-content-flex { flex-direction: column; gap: 20px; }
    .btn-dark-blue { width: 100%; }
    .cta-strip-gold { margin-bottom: 0; }
    .live-counter-box-large { font-size: 2.5rem; }
    .unit-large { font-size: 1.5rem; }
    .counter-label-large { font-size: 1rem; }
    .detail-row { margin-bottom: 80px; }
}