@font-face {
    font-family: "Titillium Web";
    src: url(static/fonts/titillium-web-v4-latin-600.woff) format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Titillium Web";
    src: url(static/fonts/titillium-web-v4-latin-700.woff) format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Titillium Web";
    src: url(static/fonts/titillium-web-v6-latin-300.woff) format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Titillium Web";
    src: url(static/fonts/titillium-web-v6-latin-regular.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --color-dark-blue: rgb(29, 60, 106);
    --color-mid-blue: rgb(40, 84, 147);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-dark-blue);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body ul {
    padding-inline-start: 0;
}

header a {
    text-decoration: none;
}

/* ---- HEADER TOP ---- */
.header-top {
    display: none;
    height: 50px;
    line-height: 44px;
    background: #eee;
}

@media (min-width: 992px) {
    .header-top {
        display: block;
    }
}

.header-top .container {
    display: flex;
    align-items: center;
}

.header-top ul {
    display: flex;
    gap: 12px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.header-top ul li img {
    display: block;
}

/* ---- HEADER CENTER ---- */
.header-center {
    background: var(--color-mid-blue);
    height: 50px;
    color: #fff;
}

.header-center a {
    color: #fff;
    text-decoration: none;
}

.header-center .container {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.header-center .grid {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.wrap-logo {
    background-color: var(--color-mid-blue);
    background-image: url("static/img/logo-camera.png"),
                      url("static/img/flag.png");
    background-repeat: no-repeat;
    background-position: 0 11px, left bottom;
    background-size: 25px auto, 100% auto;
    height: 50px;
    display: flex;
    align-items: flex-start;
    padding-left: 33px;
}

.text-logo {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4px;
    font-size: 11px;
    line-height: 1.1;
}

.text-camera {
    font-weight: 600;
    font-size: 13px;
    display: block;
    white-space: nowrap;
}

.wrap-section-name {
    font-size: 11px;
    text-align: right;
    margin-top: 0;
    line-height: 1.1;
    height: 50px;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    overflow: hidden;
    flex: 1;
}

.section-name {
    font-weight: 600;
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 0.92;
    display: block;
    white-space: nowrap;
    margin: 0;
}

.section-subtitle {
    display: block;
    margin-top: 2px;
    line-height: 1.05;
}

@media (min-width: 500px) {
    .text-logo {
        font-size: 13px;
        font-weight: 400;
        line-height: 15px;
        white-space: nowrap;
    }

    .text-camera {
        font-size: 18px;
        font-weight: 600;
        white-space: nowrap;
    }
}

/* ---- HEADER BOTTOM ---- */
.header-bottom {
    background-color: var(--color-dark-blue);
    clear: both;
}

.header-bottom .container {
    display: flex;
    justify-content: flex-end;
}

.link-camera {
    color: #fff;
    font-weight: 600;
    line-height: 2;
    display: block;
    height: 1.1em;
}

.link-camera:focus,
.link-camera:active,
.link-camera:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---- RESPONSIVE (desktop) ---- */
@media (min-width: 992px) {
    .header-center {
        height: 119px;
    }

    .header-bottom {
        height: 39px;
    }

    .wrap-logo {
        background-size: 63px auto, 176px auto;
        background-position: 0 13px, left bottom;
        height: 118px;
        padding-left: 75px;
        padding-top: 25px;
    }

    .wrap-section-name {
        font-size: 23px;
        height: 118px;
        padding-top: 10px;
        line-height: 1.05;
    }

    .section-name {
        font-size: clamp(34px, 4vw, 48px);
        line-height: .9;
    }

    .section-subtitle {
        margin-top: 4px;
        line-height: 1;
    }

    .text-logo {
        font-size: 20px;
        line-height: 26px;
        padding-top: 0;
    }

    .text-camera {
        font-size: 24px;
    }
}

/* ---- CONTAINER ---- */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* ---- JUMBOTRON ---- */
.jumbotron {
    border-radius: 0;
    margin: 0;
    padding: 25px 15px 10px 15px;
    background: #eee;
}

.jumbotron p {
    padding: 5px 0 0 0;
    margin: 0;
    font-size: 1em;
    display: block;
    font-weight: 300;
    font-style: italic;
}

/* ---- CARD ---- */
.card {
    background-color: #eee;
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 20px 20px;
}

/* ---- BANCHE DATI LIST ---- */
.banche-dati-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-mid-blue);
}

.banche-dati-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banche-dati-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background-color: #fff;
    color: var(--color-dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    border-left: 6px solid var(--color-mid-blue);
    transition: background-color 0.15s, border-color 0.15s;
    border-radius: 4px;
}

.banche-dati-list li a:hover,
.banche-dati-list li a:focus {
    background-color: var(--color-mid-blue);
    border-color: var(--color-dark-blue);
    color: #fff;
    outline: none;
}

.banche-dati-list li a .link-arrow {
    margin-left: auto;
    font-size: 1.1em;
    opacity: 0.6;
}

.banche-dati-list li a:hover .link-arrow,
.banche-dati-list li a:focus .link-arrow {
    opacity: 1;
}
