/* =================================================================
   Fantini Silvano Style Override — Header, Footer, Font
   Loaded AFTER frxsh.css. Uses !important where needed for override.
   Accent color: #FF8B00 (project brand — do NOT change)
================================================================= */

/* ----------------------------------------------------------------
   1. FONT — Epilogue global override
---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

*,
body,
h1, h2, h3, h4, h5, h6,
p, a, li, ul, ol, span, div,
input, textarea, select, button,
label, th, td, caption,
blockquote, cite, code, pre,
.breadcrumb, .breadcrumb-item,
.nav-link, .nav-item,
.btn, .button,
.slider-caption, .slider-caption h2, .slider-caption p,
.menu-link, .menu-item,
.portfolio-desc, .portfolio-desc p,
.team-title, .team-title span,
.more-link,
.entry-title h2, .entry-title h3, .entry-title h4 {
    font-family: 'Epilogue', sans-serif !important;
}

/* ----------------------------------------------------------------
   2. HEADER — Floating card style
---------------------------------------------------------------- */

/* Hide the old header (hero image) — it stays as a section now */
header.old-header {
    display: block;
}

/* New floating header */
.fs-header {
    position: fixed;
    top: 40px;
    left: 80px;
    right: 80px;
    z-index: 10002;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease-in-out;
    transform: translateY(0) scaleX(1);
    opacity: 1;
    will-change: transform, opacity;
}

.fs-header.is-hidden {
    transform: translateY(-100%) scaleX(0.95);
    opacity: 0;
    pointer-events: none;
}

/* Logo */
.fs-header__logo {
    flex-shrink: 0;
}

.fs-header__logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Desktop navigation */
.fs-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fs-header__nav li {
    margin: 0;
    padding: 0;
}

.fs-header__nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: color 0.3s ease;
    position: relative;
}

.fs-header__nav a:hover,
.fs-header__nav a.active {
    color: #FF8B00 !important;
}

.fs-header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF8B00;
    transition: width 0.3s ease;
}

.fs-header__nav a:hover::after,
.fs-header__nav a.active::after {
    width: 100%;
}

/* Hamburger button */
.fs-header__burger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10001;
    flex-shrink: 0;
}

.fs-header__burger svg {
    width: 30px;
    height: 24px;
}

.fs-header__burger .burger-open {
    display: block;
}

.fs-header__burger .burger-close {
    display: none;
}

.fs-header__burger.is-active .burger-open {
    display: none;
}

.fs-header__burger.is-active .burger-close {
    display: block;
}

/* Mobile overlay */
.fs-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 40px 40px;
    overflow-y: auto;
}

.fs-mobile-overlay.is-open {
    transform: translateX(0);
}

.fs-mobile-overlay__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fs-mobile-overlay__nav li {
    margin-bottom: 24px;
}

.fs-mobile-overlay__nav a {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.fs-mobile-overlay__nav a:hover {
    color: #FF8B00 !important;
}

/* Content compensation for fixed header */
.fs-header-spacer {
    height: 150px; /* 40px top offset + 70px header + 40px breathing room */
}

/* ----------------------------------------------------------------
   3. FOOTER — Dark Fantini style
---------------------------------------------------------------- */
footer#content-6 {
    background-color: #1E1E1E !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

footer#content-6 .content-wrap {
    padding: 0 !important;
    overflow: visible !important;
}

/* SVG decoration container */
.fs-footer-deco {
    position: relative;
    width: 100%;
}

/* Top decoration line with crosses */
.fs-footer-deco__top {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.fs-footer-deco__top svg {
    width: 100%;
    height: 40px;
}

/* Vertical side lines — desktop only */
.fs-footer-line-left,
.fs-footer-line-right {
    position: absolute;
    top: -2rem;
    bottom: 2.5rem;
    width: 1px;
    background-color: #ACACAC;
    display: none;
}

.fs-footer-line-left {
    left: 4rem;
}

.fs-footer-line-right {
    right: 4rem;
}

/* Footer main content area */
.fs-footer-content {
    padding: 50px 40px 30px;
    position: relative;
}

.fs-footer-content .container {
    max-width: 1200px;
}

/* Footer layout: logo left, columns right */
.fs-footer-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.fs-footer-logo-col {
    flex: 0 0 200px;
}

.fs-footer-logo-col img {
    max-width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
}

.fs-footer-info-cols {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
}

.fs-footer-col {
    flex: 1;
    min-width: 180px;
}

.fs-footer-col h5,
.fs-footer-col .fs-footer-label {
    color: #FF8B00 !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.fs-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fs-footer-col li {
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.8;
    font-weight: 300;
}

.fs-footer-col a {
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    font-weight: 300;
}

.fs-footer-col a:hover {
    color: #FF8B00 !important;
}

.fs-footer-col .footer-logo {
    filter: brightness(0) invert(1);
    max-width: 140px !important;
    margin-bottom: 0;
}

/* Bottom decoration line with crosses */
.fs-footer-deco__bottom {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.fs-footer-deco__bottom svg {
    width: 100%;
    height: 40px;
}

/* Legal row */
.fs-footer-legal {
    text-align: center;
    padding: 16px 40px 24px;
    color: #767676;
    font-size: 0.75rem;
    font-weight: 300;
}

.fs-footer-legal a {
    color: #767676 !important;
    text-decoration: none !important;
}

.fs-footer-legal a:hover {
    color: #FF8B00 !important;
}

/* ----------------------------------------------------------------
   4. RESPONSIVE — Mobile / Tablet
---------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1200px) {
    .fs-header {
        left: 40px;
        right: 40px;
        top: 20px;
    }

    .fs-header-spacer {
        height: 130px;
    }

    .fs-footer-line-left,
    .fs-footer-line-right {
        display: none;
    }
}

/* Desktop — show side lines */
@media (min-width: 1201px) {
    .fs-footer-line-left,
    .fs-footer-line-right {
        display: block;
    }
}

/* Mobile */
@media (max-width: 991px) {
    .fs-header {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        height: 60px;
        padding: 0 20px;
    }

    .fs-header-spacer {
        height: 60px;
    }

    .fs-header__nav {
        display: none !important;
    }

    .fs-header__burger {
        display: block;
    }

    /* Footer mobile */
    .fs-footer-row {
        flex-direction: column;
        gap: 30px;
    }

    .fs-footer-logo-col {
        flex: none;
    }

    .fs-footer-info-cols {
        flex-direction: column;
        gap: 24px;
    }

    .fs-footer-content {
        padding: 30px 20px 20px;
    }

    .fs-footer-deco__top,
    .fs-footer-deco__bottom {
        padding: 0 20px;
    }

    .fs-footer-legal {
        padding: 12px 20px 20px;
    }
}

/* ----------------------------------------------------------------
   5. HERO IMAGE — adjust for floating header
---------------------------------------------------------------- */
header.old-header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

header.old-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------------------------------
   6. FRAMEWORK COMPATIBILITY — dummy elements
---------------------------------------------------------------- */
.fs-framework-compat {
    position: absolute !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    width: 0 !important;
    pointer-events: none !important;
}