:root {
    --primary-navy: #002147;
    --accent-gold: #D4AF37;
    --dark-slate: #2C3E50;
    --warm-white: #FDFDFD;
    --soft-grey: #F5F7F9;
    --text-main: #1A1A1A;
    --text-muted: #4A4A4A;
    --white: #FFFFFF;
    --border-light: #E8E8E8;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-navy); line-height: 1.3; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

a { color: var(--primary-navy); transition: color var(--transition); }
a:hover { color: var(--accent-gold); }

img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════
   NAVIGATION — Mega Menu + Hamburger
   ═══════════════════════════════════════ */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: 1px;
    text-decoration: none;
}
.logo span { color: var(--accent-gold); }

.nav-links {
    display: flex; gap: 0; list-style: none; align-items: center; height: 100%;
}

.nav-links > li { position: relative; height: 100%; display: flex; align-items: center; }

.nav-links > li > a {
    text-decoration: none; color: var(--primary-navy);
    font-weight: 500; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 0 1.2rem; height: 100%;
    display: flex; align-items: center;
    transition: color var(--transition);
    border-bottom: 3px solid transparent;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }

/* Dropdown */
.dropdown-menu {
    display: none; position: absolute;
    top: 100%; left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent-gold);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.8rem 0;
    z-index: 100;
}
.nav-links > li:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    text-decoration: none; color: var(--text-main);
    font-size: 0.9rem; font-weight: 400;
    transition: all var(--transition);
}
.dropdown-menu a:hover { background: var(--soft-grey); color: var(--accent-gold); padding-left: 1.8rem; }
.dropdown-menu a i { color: var(--accent-gold); width: 18px; text-align: center; font-size: 0.85rem; }

/* CTA Nav Button */
.cta-nav {
    background: var(--primary-navy) !important;
    color: var(--white) !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 4px !important;
    border-bottom: none !important;
    margin-left: 0.5rem;
    height: auto !important;
    transition: background var(--transition) !important;
}
.cta-nav:hover { background: var(--accent-gold) !important; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 5px;
    z-index: 1100;
}
.hamburger span {
    display: block; width: 28px; height: 2px;
    background: var(--primary-navy);
    transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    height: 100vh; min-height: 600px;
    background: linear-gradient(160deg, rgba(0,33,71,0.75), rgba(0,33,71,0.5)), url('hero.png');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; color: var(--white);
    padding: 0 10%; padding-top: 80px;
}
.hero-sub { height: 55vh; min-height: 400px; }
.hero-sm { height: 40vh; min-height: 300px; }

.hero h1 { color: var(--white); margin-bottom: 1.5rem; max-width: 850px; }
.hero p { font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 600px; font-weight: 300; opacity: 0.95; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 10%; background: var(--soft-grey);
    font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--accent-gold); text-decoration: none; }
.breadcrumbs span { margin: 0 0.4rem; }

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn-primary {
    display: inline-block;
    background: var(--accent-gold); color: var(--white);
    padding: 1rem 2.2rem;
    text-decoration: none; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 4px; border: none; cursor: pointer;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
    font-family: var(--font-body);
}
.btn-primary:hover { transform: translateY(-2px); background: #b88a2e; box-shadow: 0 8px 25px rgba(212,175,55,0.3); color: var(--white); }

.btn-outline {
    display: inline-block;
    background: transparent; color: var(--white);
    padding: 1rem 2.2rem;
    text-decoration: none; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.6);
    transition: all var(--transition);
}
.btn-outline:hover { background: var(--white); color: var(--primary-navy); }

.btn-dark {
    display: inline-block;
    background: var(--primary-navy); color: var(--white);
    padding: 1rem 2.2rem;
    text-decoration: none; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 4px; border: none; cursor: pointer;
    transition: all var(--transition);
}
.btn-dark:hover { background: var(--accent-gold); }

/* ═══════════════════════════════════════
   TRUST STRIP
   ═══════════════════════════════════════ */
.trust-strip {
    background: var(--soft-grey); padding: 2.5rem 5%;
    display: flex; justify-content: space-around; align-items: center;
    flex-wrap: wrap; gap: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.trust-strip.dark { background: var(--primary-navy); }
.trust-strip.dark .trust-item span { color: var(--accent-gold); }
.trust-strip.dark .trust-item p { color: rgba(255,255,255,0.7); }

.trust-item { text-align: center; min-width: 120px; }
.trust-item span { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--primary-navy); font-weight: 700; }
.trust-item p { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.2rem; }

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section { padding: 6rem 10%; }
.section-sm { padding: 4rem 10%; }
.section-lg { padding: 8rem 10%; }
.section.bg-grey { background: var(--soft-grey); }
.section.bg-navy { background: var(--primary-navy); color: var(--white); }
.section.bg-navy h2, .section.bg-navy h3 { color: var(--white); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header p { color: var(--text-muted); margin-top: 1rem; font-size: 1.05rem; }

/* ═══════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white); padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid transparent;
    text-decoration: none; color: inherit; display: block;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-top-color: var(--accent-gold); color: inherit; }

.service-card i { font-size: 2.2rem; color: var(--accent-gold); margin-bottom: 1.2rem; display: block; }
.service-card h3 { margin-bottom: 0.8rem; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.service-card .learn-more { display: inline-block; margin-top: 1rem; font-size: 0.8rem; color: var(--accent-gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ═══════════════════════════════════════
   PROSE — Long-form text
   ═══════════════════════════════════════ */
.prose { max-width: 800px; }
.prose p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.02rem; line-height: 1.8; }
.prose h3 { margin: 2.5rem 0 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text-main); }

/* ═══════════════════════════════════════
   TWO-COLUMN LAYOUT
   ═══════════════════════════════════════ */
.two-col { display: flex; gap: 4rem; align-items: flex-start; }
.two-col .col-main { flex: 1.5; }
.two-col .col-side { flex: 1; }

/* Sidebar Card */
.sidebar-card {
    background: var(--white); padding: 2rem;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-gold);
    position: sticky; top: 100px;
}
.sidebar-card h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.sidebar-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════
   WHY US
   ═══════════════════════════════════════ */
.why-us {
    background: var(--primary-navy); color: var(--white);
    padding: 6rem 10%;
    display: flex; gap: 4rem; align-items: center;
}
.why-us-content { flex: 1; }
.why-us-content h2 { color: var(--white); margin-bottom: 2rem; }

.why-list { list-style: none; }
.why-list li { margin-bottom: 1.5rem; display: flex; gap: 1rem; }
.why-list i { color: var(--accent-gold); margin-top: 0.3rem; flex-shrink: 0; }
.why-list strong { display: block; margin-bottom: 0.3rem; }

.why-us-image {
    flex: 1; min-height: 400px;
    background: url('hero.png') center/cover;
    border-radius: var(--radius);
}

/* ═══════════════════════════════════════
   PROCESS / TIMELINE
   ═══════════════════════════════════════ */
.process-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; counter-reset: step;
}
.process-step {
    text-align: center; padding: 2rem 1.5rem;
    position: relative;
}
.process-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; margin: 0 auto 1.2rem;
    background: var(--accent-gold); color: var(--white);
    font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
    border-radius: 50%;
}
.process-step h4 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}
.faq-question {
    width: 100%; padding: 1.5rem 0;
    background: none; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
    color: var(--primary-navy); text-align: left;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent-gold); transition: transform var(--transition); flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 0 1.5rem; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }

/* ═══════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════ */
.compare-table {
    width: 100%; border-collapse: collapse;
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.compare-table th {
    background: var(--primary-navy); color: var(--white);
    padding: 1.2rem 1.5rem; text-align: left;
    font-family: var(--font-heading); font-weight: 700;
}
.compare-table td {
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem; color: var(--text-muted);
}
.compare-table tr:hover td { background: var(--soft-grey); }
.compare-table .highlight { color: var(--accent-gold); font-weight: 600; }

/* ═══════════════════════════════════════
   TEAM GRID
   ═══════════════════════════════════════ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }

.team-card {
    text-align: center; padding: 2.5rem 1.5rem;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-5px); }

.team-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-navy), var(--dark-slate));
    margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-family: var(--font-heading);
    font-size: 2rem; font-weight: 700;
}
.team-card h4 { margin-bottom: 0.3rem; }
.team-card .role { color: var(--accent-gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.8rem; display: block; }
.team-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
    padding: 5rem 10%; text-align: center;
    background: var(--soft-grey);
}
.cta-banner.dark {
    background: linear-gradient(135deg, var(--primary-navy), #001530);
    color: var(--white);
}
.cta-banner.dark h2 { color: var(--white); }
.cta-banner.dark p { color: rgba(255,255,255,0.8); }
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { margin-bottom: 2rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-container { display: flex; gap: 4rem; }
.contact-info { flex: 1; }
.contact-form-wrap {
    flex: 1.5; background: var(--white); padding: 3rem;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.contact-card { margin-bottom: 1.8rem; display: flex; gap: 1.2rem; align-items: flex-start; }
.contact-card i { font-size: 1.3rem; color: var(--accent-gold); margin-top: 0.2rem; flex-shrink: 0; }
.contact-card h4 { margin-bottom: 0.2rem; font-size: 1rem; }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.85rem 1rem;
    border: 1px solid var(--border-light); border-radius: 4px;
    font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color var(--transition);
    background: var(--warm-white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--accent-gold);
}

/* Google Maps */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 2rem; }
.map-wrap iframe { width: 100%; height: 350px; border: none; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
    background: #0a0a0a; color: var(--white);
    padding: 5rem 10% 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-col h4 { color: var(--white); margin-bottom: 1.2rem; font-size: 1rem; }
.footer-col p { color: #888; font-size: 0.88rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: #888; text-decoration: none; font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent-gold); }

.footer-bottom {
    padding-top: 2rem; border-top: 1px solid #222;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: #555; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: #555; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-gold); }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   SERVIZI HUB
   ═══════════════════════════════════════ */
.servizi-hub-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.servizi-hub-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none; color: inherit; display: block;
}
.servizi-hub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: inherit; }
.servizi-hub-card .card-icon {
    background: var(--primary-navy); padding: 2.5rem;
    display: flex; align-items: center; justify-content: center;
}
.servizi-hub-card .card-icon i { font-size: 2.5rem; color: var(--accent-gold); }
.servizi-hub-card .card-body { padding: 2rem; }
.servizi-hub-card .card-body h3 { margin-bottom: 0.6rem; }
.servizi-hub-card .card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.servizi-hub-card .card-body .learn-more { color: var(--accent-gold); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col { flex-direction: column; }
    .why-us { flex-direction: column; }
    .contact-container { flex-direction: column; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; flex-direction: column;
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 350px; height: 100vh;
        background: var(--white); padding: 100px 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        gap: 0;
    }
    .nav-links.open { display: flex; right: 0; }
    .nav-links > li { height: auto; }
    .nav-links > li > a { padding: 1rem 0; border-bottom: 1px solid var(--border-light); width: 100%; }
    .dropdown-menu { position: static; box-shadow: none; border-top: none; padding-left: 1.5rem; }
    .nav-links > li:hover .dropdown-menu { display: block; }
    .cta-nav { margin: 1rem 0 0; text-align: center; justify-content: center; }
    
    .hero { padding: 0 5%; }
    .section { padding: 4rem 5%; }
    .section-lg { padding: 5rem 5%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .trust-strip { padding: 2rem 5%; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .hero-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .process-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--white);
    padding: 1.5rem 5%;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none; /* Hidden by default */
    justify-content: space-between; align-items: center;
    gap: 2rem;
    border-top: 3px solid var(--accent-gold);
}
.cookie-banner.visible { display: flex; }

.cookie-content { flex: 1; }
.cookie-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.cookie-content a { color: var(--accent-gold); text-decoration: underline; }

.cookie-btns { display: flex; gap: 1rem; flex-shrink: 0; }
.cookie-btns .btn-dark { padding: 0.6rem 1.5rem; font-size: 0.75rem; border: none; }
.cookie-btns .btn-outline { 
    padding: 0.6rem 1.5rem; font-size: 0.75rem; 
    border-color: var(--border-light); color: var(--text-main); 
}
.cookie-btns .btn-outline:hover { background: var(--soft-grey); }

@media (max-width: 768px) {
    .cookie-banner { flex-direction: column; text-align: center; padding: 2rem 5%; }
    .cookie-btns { width: 100%; justify-content: center; }
}
