/*
 * header.css
 * Struttura dell'intestazione: header top, logo, bottom bar, banner extra.
 */

/* ── Wrapper header ─────────────────────────────────── */
.header {
    position: relative;
    z-index: 9999;
    background: #fff;
    width: 100%;
    float: left;
}

/* ══════════════════════════════════════════════════════
   BANNER PRINCIPALE — full width senza margini
   Azzera ogni padding/margin su tutta la catena:
   .header-top > .container-fluid > .row > .col > .logo > img
   ══════════════════════════════════════════════════════ */
.header-top {
    width: 100%;
    float: left;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
    display: block;
}
.header-top .container-fluid {
    width: 100% !important;
    max-width: 100% !important;   /* rimuove il limite 1200px */
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.header-top .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block;               /* evita comportamenti flex inattesi */
}
.header-top .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none;
    width: 100%;
}
.header-top .logo {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100%;
    display: block;
    text-align: left;             /* allineamento naturale, l'img va a 100% */
}
.header-top .logo img {
    width: 100% !important;       /* occupa tutta la larghezza disponibile */
    max-width: 100% !important;
    height: auto;
    display: block;
}

/* ── Riga divisore colorata ─────────────────────────── */
.header-divider {
    width: 100%;
    height: 3px;
    background: #1f86ec;          /* azzurro — cambia colore qui */
    display: block;
    margin: 0;
    padding: 0;
    float: left;
}

/* ── Banner extra (sopra il divisore azzurro - Attualmente è Io sono FVG) ───────────────── */
.extra-banner-row {
    width: 100%;
    float: left;
    background: #fff;
    padding: 6px 0;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.extra-nav-banner {
    width: 100%;
    text-align: center;
}
.extra-nav-banner img {
    max-width: 100%;
    width: auto;
    max-height: 120px;
    height: auto;
    display: inline-block;
    object-fit: contain;
}
/* ── Fine Banner extra (sopra il divisore azzurro - Attualmente Io sono FVG) ───────────────── */

/* ── Header bottom (contiene la navbar) ─────────────── */
.header-bottom {
    float: left;
    width: 100%;
    position: relative;
    z-index: 9999;
}
.header-bottom .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}
.header-bottom .row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0;
}

/* ── Logo footer ────────────────────────────────────── */
.footer-logo img {
    width: 180px;
    padding-top: 10px;
}

/* ── Login / CTA top ────────────────────────────────── */
.login {
    float: right;
    margin: 0;
    padding: 0;
    list-style: none;
}
.login li {
    float: left;
    margin: 0 0 0 10px;
    font-weight: 500;
}
.login li a {
    padding: 9px 25px;
    color: #fff;
    font-size: 13px;
    background: #d8302f;
    border-radius: 50px;
    float: left;
}
.login li a:hover,
.login li a:focus {
    background: #fff;
    color: #333;
}
.login li a i {
    margin: 0 5px 0 0;
    font-size: 15px;
}

/* ── Right top section ──────────────────────────────── */
.right_top_section {
    float: right;
    padding: 17px 0 0;
}

/* ── Social box (header) ────────────────────────────── */
.social-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

/* ── Pulsante FIBS Calendar ─────────────────────────── */
.btn-fibs-calendar {
    margin-top: 15px;
    padding: 12px 28px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #0b9444;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid #0b9444;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    transition: all 0.3s ease;
}
.btn-fibs-calendar:hover {
    background: transparent;
    color: #0b9444;
    border-color: #0b9444;
}
@media (min-width: 992px) {
    .btn-fibs-calendar { margin-top: 25px; width: auto; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 991px) {
    .extra-nav-banner img { max-height: 80px; }
}
@media (max-width: 767px) {
    .extra-banner-row     { padding: 4px 0; }
    .extra-nav-banner img { max-height: 60px; }
    .header-top .logo img { width: 100% !important; }
}

/* ── OVERRIDE BOOTSTRAP: banner principale sempre full width ── */
/* Bootstrap .container ha max-width:1170px — lo azzeriamo
   ma SOLO dentro .header-top per non rompere il resto */
.header-top,
.header-top .container,
.header-top .container-fluid,
.header-top .row,
.header-top .col-md-12,
.header-top .logo,
.header-top .logo img {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    display: block !important;
    box-sizing: border-box !important;
}