/* =========================================
   1. CONFIGURAZIONE GENERALE & VARIABILI
   ========================================= */
:root {
    --primary-dark: #242b36;
    --primary-gold: #d6a443;
    --accent-green: #4caf50;
    --text-grey: #555555;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.15);
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-grey);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Container Globale */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary-dark); font-weight: 700; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
.bg-grey { background-color: var(--bg-light); }
.bg-white { background-color: #ffffff; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Pattern Sfondo (Filigrana) */
.bg-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(#d6a443 0.5px, transparent 0.5px), radial-gradient(#d6a443 0.5px, #ffffff 0.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}
.intro-section, .detail-section.bg-pattern {
    background-image: radial-gradient(rgba(214, 164, 67, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* =========================================
   2. HEADER & NAVIGAZIONE
   ========================================= */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: all 0.4s ease; padding: 20px 0; background: transparent;
}
header.scrolled {
    background-color: #ffffff; padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 90px; width: auto; transition: height 0.3s ease; }
header.scrolled .logo img { height: 60px; }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { color: var(--white); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
header.scrolled .nav-links a { color: var(--primary-dark); }
.nav-links a:hover { color: var(--primary-gold); }

.btn-cta { border: 2px solid var(--primary-gold); padding: 10px 25px; border-radius: 50px; color: var(--primary-gold) !important; }
.btn-cta:hover { background: var(--primary-gold); color: white !important; }

/* Menu Mobile */
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease; background-color: var(--white); }
header.scrolled .bar { background-color: var(--primary-dark); }

.mobile-menu-overlay {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--white); z-index: 1500; display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu-overlay.active { right: 0; }
.mobile-links li { margin: 25px 0; text-align: center; }
.mobile-links a { color: var(--primary-dark); font-size: 1.8rem; font-weight: 700; font-family: var(--font-head); }
.close-menu { position: absolute; top: 20px; right: 30px; font-size: 3.5rem; cursor: pointer; color: var(--primary-dark); line-height: 1; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-coworking {
    height: 100vh;
    background: linear-gradient(rgba(36, 43, 54, 0.5), rgba(36, 43, 54, 0.3)), url('images/IMG_3070.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero-content { max-width: 800px; padding: 20px; }
.hero-tag { display: inline-block; background: var(--primary-gold); padding: 5px 15px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; border-radius: 3px; letter-spacing: 2px; }
.hero-coworking h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; color: white; }
.hero-coworking p { font-size: 1.4rem; font-weight: 300; margin-bottom: 40px; color: #eee; }
.scroll-down { font-size: 2rem; color: white; animation: bounce 2s infinite; display: block; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }
.fade-in { animation: fadeIn 1s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   4. INTRO / VISION
   ========================================= */
.intro-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; 
    gap: 80px;
    align-items: flex-start;
}
.sub-heading { color: var(--primary-gold); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }
.intro-text h2 { font-size: 3rem; line-height: 1.2; margin-bottom: 30px; }

.intro-text p.lead-quote {
    font-size: 1.25rem; color: var(--primary-dark);
    border-left: 4px solid var(--primary-gold); padding-left: 25px;
    margin-bottom: 25px; font-weight: 600;
}
.intro-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-box { background: var(--primary-dark); color: white; padding: 30px; text-align: center; border-radius: 10px; width: 100%; box-shadow: var(--shadow-soft); }
.stat-box h3 { color: var(--primary-gold); font-size: 2.2rem; margin-bottom: 5px; }

/* =========================================
   5. SEZIONE PLANIMETRIA
   ========================================= */
.planimetria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.plan-img-col { position: relative; }
.planimetria-img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #eee; }
.plan-text-col h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary-dark); }
.plan-text-col p { margin-bottom: 20px; color: #555; }

.plan-features { list-style: none; margin: 25px 0; }
.plan-features li { margin-bottom: 15px; line-height: 1.5; }
.plan-features strong { color: var(--primary-gold); }
.quote-text { font-style: italic; color: #888; border-left: 3px solid #ddd; padding-left: 15px; margin-top: 20px; }

.planimetria-legend {
    display: flex; justify-content: center; gap: 15px; margin-top: 15px; flex-wrap: wrap;
}
.legend-item { font-size: 0.85rem; color: #666; display: flex; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; display: inline-block; }
.green { background: #4caf50; }
.yellow { background: #ffc107; }
.blue { background: #2196f3; }

/* =========================================
   6. SERVIZI GRID (NAVIGAZIONE)
   ========================================= */
.section-header.center { text-align: center; margin-bottom: 50px; }
.divider { height: 4px; width: 70px; background: var(--primary-gold); margin: 20px auto 0; }
.services-grid-modern { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .services-grid-modern { grid-template-columns: repeat(3, 1fr); } }

.srv-card {
    background: white; padding: 35px 25px; border-radius: 12px;
    transition: transform 0.4s, box-shadow 0.4s; border: 1px solid #eee;
}
.srv-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: transparent; }
.srv-card i { font-size: 2.2rem; color: var(--primary-gold); margin-bottom: 20px; }
.srv-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.srv-card p { font-size: 0.95rem; color: #666; }

/* Link Card Style */
.link-card { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.link-card p { color: var(--primary-gold); font-weight: 600; font-size: 0.9rem; margin-top: 10px; }

/* =========================================
   7. APPROFONDIMENTI (DEEP DIVE)
   ========================================= */
.detail-section { padding: 80px 0; border-bottom: 1px solid #eee; }
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.detail-row.reverse .detail-text { order: 2; }
.detail-row.reverse .detail-img { order: 1; }

.detail-badge {
    background: var(--primary-gold); color: white; padding: 5px 15px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; display: inline-block;
}
.detail-text h2 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px; }
.lead-text { font-size: 1.2rem; color: #444; margin-bottom: 20px; }
.detail-list { margin-top: 20px; }
.detail-list li { margin-bottom: 15px; font-weight: 600; color: #333; }
.detail-list i { color: var(--accent-green); margin-right: 10px; }
.quote-box {
    background: rgba(214, 164, 67, 0.1); border-left: 4px solid var(--primary-gold);
    padding: 20px; margin-top: 30px; border-radius: 0 10px 10px 0;
}
.quote-box i { color: var(--primary-gold); font-size: 1.5rem; margin-bottom: 10px; display: block; }
.quote-box p { margin: 0; font-style: italic; font-size: 0.95rem; }
.rounded-img { border-radius: 15px; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/3; }
.shadow-hover { transition: box-shadow 0.3s; }
.shadow-hover:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Bottone Back */
.btn-back {
    display: inline-block; margin-top: 30px; color: var(--primary-gold);
    font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.btn-back:hover { color: var(--primary-dark); border-bottom: 1px solid var(--primary-dark); }

/* =========================================
   8. GALLERY
   ========================================= */
.masonry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-gap: 15px; }
.grid-item { position: relative; overflow: hidden; height: 250px; border-radius: 8px; cursor: zoom-in; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.grid-item:hover img { transform: scale(1.1); }
.hidden-photo { display: none; }
.gallery-btn-container { text-align: center; margin-top: 40px; }
.btn-load-more { background-color: transparent; cursor: pointer; font-size: 1rem; padding: 12px 40px; font-weight: 600; transition: all 0.3s ease; }
.btn-load-more:hover { background-color: var(--primary-gold); color: white !important; }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; padding: 20px; }
.lightbox-content { max-width: 100%; max-height: 90vh; border: 2px solid white; border-radius: 4px; object-fit: contain; }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: #f1f1f1; font-size: 40px; cursor: pointer; z-index: 2001; }

/* =========================================
   9. CONTATTI & FOOTER
   ========================================= */
.bg-dark { background-color: var(--primary-dark); color: #fff; }

.row-contact { display: flex; justify-content: space-between; align-items: flex-start; gap: 50px; width: 100%; }
.col-info { flex: 0 0 40%; }
.col-map { flex: 1; height: 400px; }
.col-map iframe { width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* Box Contatti Styled */
.contact-box-styled {
    background: rgba(255,255,255,0.05);
    padding: 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); margin-top: 20px;
}
.contact-details { list-style: none; margin: 0; }
.contact-details li { display: flex; align-items: flex-start; margin-bottom: 20px; }
.contact-details li:last-child { margin-bottom: 0; }
.contact-details i { color: var(--primary-gold); font-size: 1.5rem; margin-right: 20px; margin-top: 5px; }
.contact-details a { color: #fff; opacity: 0.9; }

/* Footer */
footer { background: #1a2029; color: #888; padding: 40px 0; text-align: center; font-size: 0.85rem; }
.footer-content { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.company-data { margin-bottom: 20px; line-height: 1.6; }
.legal-links a { color: #888; margin: 0 10px; text-decoration: underline; }
.legal-links a:hover { color: var(--primary-gold); }

/* Cookie Banner */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(36, 43, 54, 0.95); color: white;
    padding: 20px; z-index: 9999;
    display: none; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); backdrop-filter: blur(5px);
}
.cookie-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.cookie-content p { font-size: 0.9rem; margin: 0; flex: 1; }
.cookie-content a { color: var(--primary-gold); text-decoration: underline; }
.btn-accept { background: var(--primary-gold); color: white; border: none; padding: 10px 25px; border-radius: 5px; cursor: pointer; font-weight: 600; }

/* =========================================
   10. HOMEPAGE GATEWAY (Stili Specifici)
   ========================================= */
.gateway-body {
    background-color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 40px 20px;
}
.gateway-container { text-align: center; width: 100%; max-width: 1000px; }
.gateway-header { margin-bottom: 60px; }
.gateway-logo-img { height: 100px; width: auto; margin-bottom: 25px; display: inline-block; }
.gateway-title { color: var(--white); font-size: 3rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.gateway-subtitle { color: rgba(255,255,255,0.7); font-size: 1.2rem; font-weight: 300; font-family: var(--font-head); }

.gateway-options { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.gateway-card {
    position: relative; width: 400px; height: 500px;
    border-radius: 15px; overflow: hidden; cursor: pointer; text-decoration: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gateway-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.card-bg {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gateway-card:hover .card-bg { transform: scale(1.1); }
.card-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px;
    background: linear-gradient(to top, var(--primary-dark) 10%, rgba(36, 43, 54, 0.8) 50%, transparent 100%);
    color: white; text-align: left;
}
.card-content h2 { color: var(--primary-gold); font-size: 2.2rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.card-content p { color: rgba(255,255,255,0.9); margin-bottom: 25px; font-size: 1rem; font-weight: 300; }
.btn-arrow { color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; position: relative; padding-bottom: 5px; }
.btn-arrow::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-gold); transition: width 0.3s ease; }
.gateway-card:hover .btn-arrow::after { width: 50px; }

/* =========================================
   11. PAGINE LEGALI HEADER
   ========================================= */
.page-header { background-color: var(--primary-dark); padding: 150px 0 60px; text-align: center; color: white; }
.page-header h1 { color: var(--primary-gold); font-size: 2.5rem; margin-bottom: 10px; }
.legal-content { background: #fff; font-size: 1rem; color: #444; }
.legal-content h3 { margin-top: 30px; margin-bottom: 15px; font-size: 1.3rem; color: var(--primary-dark); }
.legal-content ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; }
.legal-content li { margin-bottom: 10px; }
.legal-content a { color: var(--primary-gold); text-decoration: underline; }

/* =========================================
   12. RESPONSIVE QUERIES (MOBILE)
   ========================================= */
@media (max-width: 991px) {
    /* Intro */
    .intro-grid { grid-template-columns: 1fr; }
    .intro-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .stat-box { flex: 1 1 100%; }
    
    /* Planimetria */
    .planimetria-grid { grid-template-columns: 1fr; gap: 30px; }
    .plan-img-col { order: 1; }
    .plan-text-col { order: 2; }
    
    /* Deep Dive */
    .detail-row { grid-template-columns: 1fr; gap: 40px; }
    .detail-row.reverse .detail-text { order: 1; }
    .detail-row.reverse .detail-img { order: 2; }
    .detail-text h2 { font-size: 2rem; }

    /* Contatti */
    .row-contact { flex-direction: column; gap: 40px; }
    .col-info, .col-map { width: 100%; }
    .col-map { height: 300px; }
    
    /* General Mobile */
    .container { padding: 0 25px; }
    .hamburger { display: block; }
    .nav-links { display: none; }
    header { background-color: #ffffff; padding: 15px 0; }
    header .bar { background-color: var(--primary-dark) !important; }
    .logo img { height: 50px; }
    .hero-coworking h1 { font-size: 2.8rem; }
    .cookie-content { flex-direction: column; text-align: center; }
    
    /* Gateway Mobile */
    .gateway-body { align-items: flex-start; padding-top: 60px; }
    .gateway-title { font-size: 2.2rem; }
    .gateway-subtitle { font-size: 1.1rem; margin-bottom: 40px; }
    .gateway-card { width: 100%; height: 380px; }
    .card-content h2 { font-size: 1.8rem; }
}