/* FONTS */

@font-face {
    font-family: "Meghana";
    src: url("../fonts/meghana-webfont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

.text-white, .text-white * {
    color: #ffffff !important;
}

/* NAVBAR */

.uk-logo img {
    aspect-ratio: unset;
}

.uk-navbar {
    display: flex;
    align-items: center;
}

.uk-navbar-nav > li > a {
    height: auto;
    padding: 0 0;
    color: #193448;
    transition: .1s ease-in-out;
    transition-property: color, background-color, border-color, box-shadow;
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: .35px;
    padding: 4px 16px;
    min-height: unset;
    background-color: transparent;
    border-radius: 500px;
}

.uk-navbar-nav > li.uk-active > a, .uk-navbar-nav > li > a:hover, .uk-navbar-nav > li > a:focus {
    color: #ffffff !important;
    background-color: #193448;
    border-radius: 500px;
    font-weight: 700;
}

.uk-navbar-nav > li > a::before {
    height: 0;
}

.uk-navbar-toggle {
    min-height: unset;
}

.uk-navbar-container.uk-light {
    background-color: transparent;
}

.uk-navbar-container.uk-dark {
    background-color: #c5d9c9;
}

.menu-item-dropdown {
    cursor: default;
}

/*NAVBAR MOBILE*/

.uk-offcanvas-bar .menu-item {
    font-family: "Meghana", sans-serif;
    text-transform: uppercase;
}

.uk-offcanvas-bar .uk-nav-sub .menu-item {
    font-family: "Lato", sans-serif;
    text-transform: none;
    color: #ffffff;
}

.uk-offcanvas-bar .uk-nav-default .uk-nav-sub li.uk-active > a {
    color: #ffffff;
}

#nav_menu-2 {
    padding-left: 20px;
}

.uk-offcanvas-bar .uk-panel:not(#nav_menu-2) {
    background-color: #ffffff;
    padding: 40px 20px 20px 20px;
}

/* HOMEPAGE */

.hilight {
    position: relative;
}

.hilight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    width: 24px;
    height: 100%;
    background-color: #abdff6;
    z-index: 1;
}

.hilight * {
    position: relative;
    z-index: 2;
}

@media (max-width: 1199px) {
    .hilight::after {
        left: 16px;
    }
}

/* FOOTER */

footer a {
    color: #ffffff !important;
    text-decoration: none;
}

/* IMAGES */

.img-award {
    width: 120px;
    margin-right: 16px;
}

@media (min-width: 959px) {
    .img-award {
        width: 60px;
    }
}

/* ACCORDION */

.uk-tab > * {
    padding-left: 12px;
    margin-bottom: 12px;
}

.uk-tab > li > a {
    display: inline-block;
    background-color: #193448;
    border-radius: 500px;
    padding: 4px 16px;
    border-bottom: 0;
    color: #ffffff;
    box-shadow: 0 4px 8px #ccc;
}

.uk-tab > li > a:hover {
    color: white;
}

.uk-tab > li.uk-active > a {
    display: inline-block;
    background: white;
    border-radius: 500px;
    padding: 4px 16px;
    border-bottom: 0;
    color: #193448;
}

/* Homepage */

#home-title-lg, #home-title-sm, #home-title-md {
    opacity: 0;
    transition: opacity 1s ease;
}

#home-title-lg.fade-in, #home-title-sm.fade-in, #home-title-md.fade-in {
    opacity: 1;
}

/* Rassegna stampa */

#rs-grid div[data-tag] div div:last-child {
    text-align: center;
}

/*Contatti*/

.column-title {
    border-bottom: 1px solid #193448;
    margin-bottom: 0;
    padding-left: 20px;
    position: relative;
    padding-bottom: 6px;
}

.column-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 84%;
    background-color: #c5d9c9;
}

/*Sostenibilità*/

.page-id-852 .tm-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-id-852 #tm-main {
    flex: 1;
}

#informativa-prodotti .uk-subnav-pill>* {
    padding: 1rem 2rem 1rem 0;
}

#informativa-prodotti .uk-subnav-pill>*>a:hover {
    background-color: transparent;
}

#informativa-prodotti .uk-subnav-pill>*>a>img {
    width: 100%;
    max-width: 240px;
}

#informativa-prodotti .uk-subnav-pill>*>a {
    opacity: 0.36;
}

#informativa-prodotti .uk-subnav-pill>.uk-active>a, #informativa-prodotti .uk-subnav-pill>*>a:hover {
    background-color: transparent;
    color: #c5d9c9;
    background-image: unset;
    box-shadow: none;
    opacity: 1;
}

/*Prodotti*/

.products-table .el-link {
    line-height: 24px;
}

.products-table .el-item:first-child {
    display: contents;
    font-weight: 700;
}

.products-table .el-item:nth-child(2){
    border-top: none !important;
}

.products-table .el-item td {
    padding: 12px;
}

.products-table .el-item:first-child td:last-child {
    padding: 12px 0;
}

.products-table .el-item td:first-child {
    border-top-left-radius: 250px;
    border-bottom-left-radius: 250px;
}

.products-table .el-item td:last-child {
    border-top-right-radius: 250px;
    border-bottom-right-radius: 250px;
    text-align: right;
    width: 1%;
}

.products-table .el-item:first-child td:first-child,
.products-table .el-item:first-child td:last-child {
    background-color: #c5d9c9;
}

.products-table .el-title {
    white-space: wrap;
}

.products-table .uk-button {
    padding: 0 16px;
}

.table-center th, .table-center td:not(:first-child) {
    text-align: center;
}

.products-title {
    background-color: #c5d9c9;
    border-radius: 500px;
    font-weight: 700;
    padding: 12px;
}

.products-item {
    padding-inline: 12px;
}

.fondo-chart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 500px;
    background-color: #193448;
    color: #ffffff;
    line-height: 24px;
    font-size: 14px;
    padding-inline: 12px;
    width: 80px;
    margin-right: 1rem;
    cursor: pointer;
}

.fondo-chart-yearly {
    width: 100%;
    height: 400px;
}

.hr-white {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.risk-bar-background {
    background-color: #c5d9c9;
    height: 24px;
    width: 96%;
    position: relative;
}

.risk-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    background-color: #193448;
    width: calc(100% * 3 / 7 + 16px);
}

.risk-bar-numbers {
    width: 98%;
    position: absolute;
    z-index: 99;
    color: #193448;
    left: 50%;
    transform: translatex(-50%);
    top: -12px;
    font-weight: 700;
}

.chart-controls .am5stock-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #193448 !important;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 500px;
    margin-right: 8px;
    width: 36px;
    font-size: 14px;
}

.chart-controls .am5stock-control-button:nth-child(2) {
    border: none;
}

.chart-controls .flatpickr-day.selected {
    background-color: #193448;
}

.chart-controls .am5-modal-button {
    border-radius: 500px;
}

.chart-controls .am5-modal-button.am5-modal-primary {
    background-color: #193448;
}

.chart-controls span.flatpickr-day, span.flatpickr-day.prevMonthDay, span.flatpickr-day.nextMonthDay
{
    border: 1px solid #193448;
}

.chart-controls span.flatpickr-day:hover, span.flatpickr-day.prevMonthDay:hover, span.flatpickr-day.nextMonthDay:hover
{
    background: #c5d9c9;
}