/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

:root {
    --impacta: #751851;
    --impacta2: #ff7070;
    --impacta3: rgba(255, 112, 112, 0.6);
    --giallo: #ffaa00;
    --grigio: #7b848d;
    --grigio2: #eceef0;
}
body {
    font-size: 0.95rem;
    line-height: 1.2;
    touch-action: manipulation;
}

.sans-serif {
    font-family: "Helvetica", "Arial", sans-serif;
}
body {
    font-family: "Funnel Sans", sans-serif;
    background-color: #040404;
    color: #080808;
    position: relative;
    background: transparent;
}

body::before {
    content: "";
    position: fixed;
    background: #040404 url("../img/bg.webp") top right no-repeat;
    background-size: cover;
    left: 0;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: -1;
    opacity: 0.8;
}

body.int::before {
    opacity: 0.4;
}

@media (min-width: 1024px) {
    body::before {
        background-attachment: fixed;
    }
}

a {
    color: var(--impacta);
}

a:hover {
    color: var(--impacta);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
    transition: ease-in-out 0.3s;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 997;
    overflow-y: auto;
}

#header * {
    /* transition: ease-in-out 0.3s; */
}

#header h1 {
    font-size: 48px;
    margin: 5px 0;
    padding: 0;
    line-height: 1;
    font-weight: 700;
    font-family: "Funnel Display", sans-serif;
}

#header h1 a,
#header h1 a:hover {
    color: var(--impacta);
    line-height: 1.1em;
    display: inline-block;
    text-decoration: none;
}

header:not(.header-top) h1 a,
header:not(.header-top) h1 a:hover {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--impacta2);
}

#header h2 {
    font-size: 24px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
}

#header img {
    padding: 0;
    margin: 0;
}

#header .nav-link i.bi {
    margin-right: 6px;
    font-size: 26px;
}

#header .social-links a:hover {
    background: #18d26e;
}

@media (max-width: 992px) {
    #header h1 {
        font-size: 36px;
    }

    #header h2 {
        font-size: 20px;
        line-height: 30px;
    }

    #header .social-links {
        margin-top: 15px;
    }

    #header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Header Top */
#header.header-top {
    height: 85px;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    padding-top: 10px;
}

#header.header-top .social-links,
#header.header-top h2 {
    display: none;
}

#header.header-top > .container > div {
    display: block;
    width: 100%;
}
#header.header-top > .container > div > span {
    font-size: 80%;
}

#header.header-top h1 {
    font-size: 18px;
    margin: 0 auto;
}

#header.header-top div,
#header.header-top h1 a,
#header.header-top .navbar a,
#header.header-top .navbar a:focus,
#header.header-top .nav-link i.bi {
    color: #ffffff !important;
}

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

#header.header-top .navbar {
    margin: 0;
}

@media (max-width: 768px) {
    #header.header-top {
        /* height: 60px; */
    }

    #header.header-top h1 {
        font-size: 22px;
    }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation
*/
.navbar {
    padding: 0;
    margin-top: 35px;
}

.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar li {
    position: relative;
}

.navbar li + li {
    margin-left: 22px;
}

.navbar a,
.navbar a:hover,
.navbar a:focus {
    /* display: flex; */
    align-items: center;
    justify-content: space-between;
    padding: 0;
    font-family: "Funnel Display", sans-serif;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    transition: 0.3s;
    /* padding-bottom: 20px; */
}

.navbar a i,
.navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
}

.navbar a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -4px;
    left: 37px;
    background-color: var(--impacta2);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
}

.navbar a:hover:before,
.navbar li:hover > a:before,
.navbar .active:before {
    visibility: visible;
    width: 25px;
}

/*.navbar:hover,
.navbar li:hover>a,*/
#header.header-top .navbar a.active, #header .navbar a.active i.bi, .navbar .active:focus, .navbar .active:hover {
    /* font-weight: bold; */
    color: var(--impacta2) !important;
}

/**
* Mobile Navigation
*/
.mobile-nav-toggle {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
    position: fixed;
    right: 15px;
    top: 15px;
}

header:not(.header-top) .mobile-nav-toggle {
    color: #222e50;
}
header:not(.header-top) .active {
    display: none;
}
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navbar ul {
        display: none;
    }
}

.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: #222e50c2;
    transition: 0.3s;
    z-index: 999;
    margin-top: 0;
}

.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
}

.navbar-mobile ul {
    display: block;
    position: absolute;
    top: 55px;
    right: 15px;
    /* bottom: 45px; */
    left: 15px;
    padding: 10px 0;
    overflow-y: auto;
    transition: 0.3s;
    border: 3px solid rgb(255 255 255 / 53%);
    background: #222e50e6;
}

.navbar-mobile li {
    padding: 12px 20px;
}

.navbar-mobile li + li {
    margin: 0;
}

.navbar-mobile a,
.navbar-mobile a:focus {
    font-size: 16px;
    position: relative;
    display: block;
    color: #ffffff !important;
    /* margin-top: 10px; */
}

#navbar.navbar-mobile i.bi {
    color: #ffffff !important;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
    overflow: hidden;
    position: fixed;
    width: 99%;
    top: 140px;
    bottom: 0;
    opacity: 0;
    transition: ease-in-out 0.4s;
    z-index: 2;
    height: 100%;
    bottom: 0;
}

section.section-show {
    top: 80px;
    bottom: auto;
    opacity: 1;
    z-index: 3;
    /* padding-bottom: 45px; */
}

section .container {
    background: rgb(255 255 255 / 95%);
    /* padding: 0 30px; */
    height: 100%;
    overflow: auto;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    section {
        top: 120px;
    }

    section.section-show {
        top: 80px;
    }
}

h2.section-title {
    font-size: 20px;
    font-weight: 900;
    padding: 0;
    margin: 20px 0 12px 0;
    letter-spacing: 1.7px;
    font-family: "Funnel Display", sans-serif;
    color: var(--impacta);
}

h2.section-title::after {
    content: "";
    width: 36px;
    height: 2px;
    display: inline-block;
    margin: 2px 0 0 6px;
    background: var(--impacta2);
}

h3 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--impacta);
}

h3.tit {
    margin: 6px 0;
    color: var(--impacta);
}

@media (min-width: 1100px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1140px;
    }
    #header .container {
        /* max-width: 1000px; */
    }
}

@media (max-width: 1100px) {
    table.t-fx, table.t-fx table {
        table-layout: auto !important;
    }
    .btn-group-sm > .btn, .btn-sm {
        --bs-btn-font-size: 0.75rem;
        padding: 0;
    }
    .btn-group {
        height: 27px !important;
    }
    .ui-input-text, .ui-input-search, div.input {
        min-width: unset !important;
        height: 18px !important;
        line-height: 12px !important;
    }
    #italia svg {
        max-height: 280px !important;
        margin: 15px 0 -20px 0 !important;
    }
    h3.mt-5 {
        margin-top: 1.5rem !important;
    }
    #scenario .mh {
        margin-right: 25px;
    }
    #graTempi .grafico {
        height: 250px;
    }

    #opzioneGrafico {
        padding: 0 0 10px 0 !important;
    }
    #graCosti .grafico {
        /* margin-top: -20px !important; */
        /* margin-bottom: 55px !important; */
    }
    #graTempi .grafico {
        margin-top: 0px !important;
        margin-bottom: 10px !important;
        height: 250px !important;
    }
    #graCosti,
    #graTempi {
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
    }
    h2.section-title::after {
        display: none;
    }
}

@media (max-width: 990px) {
    body {
        font-size: 80% !important;
    }
    h2.section-title {
        font-size: 16px;
        margin: 15px 0 5px 0;
    }
    h3 {
        font-size: 13px;
        margin: 10px 0 2px 0;
    }
    table td:first-child {
        min-width: 140px;
        padding: .25rem .25rem !important;
    }
    table tr td.p-0 {
        padding: 0 !important;
    }
}

@media (min-width: 991px) {
    #header h1 > i {
        display: none;
    }
}

@media (max-width: 420px) {
    .table-responsive h2.section-title,
    .table-responsive table {
        min-width: 420px;
    }
    .table-responsive {
        border-right: 1px solid #dee2e6;
    }
    th[a="1"] {
        min-width: 115px;
    }
}

tr.accordion-toggle > td {
    border-bottom: unset;
}

.btn.btn-primary {
    background-color: var(--impacta) !important;
    border: 1px solid var(--impacta) !important;
}
.btn.btn-outline-primary {
    border: 1px solid var(--impacta) !important;
}
.modal-body .btn.btn-outline-primary:hover {
    background-color: var(--impacta) !important;
}
.bg-primary {
    background-color: var(--impacta2) !important;
}
.bg-primary-2 {
    /* background-color: var(--bs-gray-300) !important; */
    border-left: 1px solid var(--impacta);
    border-bottom: 1px solid var(--impacta);
    border-right: 1px solid var(--impacta);
}
.btn-outline-primary {
    font-weight: bold;
    color: var(--impacta);
    border-color: var(--impacta);
    background-color: #fff;
}
.btn-check:not(:checked) + .btn:hover {
    color: #ffffff;
    border-color: var(--impacta);
    background-color: var(--impacta);
}
.form-check-input:checked,
.btn-check:checked + .btn {
    background-color: var(--impacta) !important;
    border-color: var(--impacta);
}
.form-check-input:checked,
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem #87878733;
}
.btn-outline-primary i {
    font-size: 150%;
    margin-right: 5px;
    font-weight: normal;
    vertical-align: sub;
}
#header.header-top {
    background: var(--impacta);
}
#header .messaggi {
    margin-top: 30px;
}
#header.header-top > .container > div.messaggi {
    display: none;
}
#header:not(.header-top) span.grigio {
    /* background: var(--bs-gray-600); */
    color: var(--impacta2);
    padding: 1px 0;
    font-size: 1.1em;
}
#header .nav-link i.bi {
    color: var(--impacta);
}
#header h1 > i {
    margin-left: 10px;
    /* margin-bottom: 0px; */
    color: var(--impacta);
    font-size: 20px;
    /* position: absolute; */
}
.navbar a, .navbar a:hover, .navbar a:focus {
    color: var(--grigio);
}
.btn-group {
    height: 35px;
}
.btn-group label {
    line-height: 25px;
}
#logoHome {
    width: 160px;
    position: absolute;
    bottom: 30px;
}
#header.header-top #logoHome {
    display: none;
}
#valueStory .row {
    background: white;
}
.carousel img {
    height: 85vh;
    width: auto;
    margin: 0 auto;
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%751851' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e");
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%751851' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}
.carousel-indicators {
    margin-bottom: -20px;
    list-style-type: none;
}
.carousel-indicators [data-bs-target]{
    background-color: var(--impacta2);
    height: 20px;
    width: 20px;
    margin: 0 10px;
    border-radius:50%;
    opacity:0.3;
}
.carousel-indicators .active{
    background-color: var(--impacta);
    opacity:1 !important;
}
.carousel-item {
    transition: transform 0.35s ease-in;
}
thead.bg-primary tr > * {
    color: white;
    background: var(--impacta2);
}
#scenario thead {
    height: 40px;
    vertical-align: middle;
}
#scenario table.t-fx {
    height: 30%;
}
#scenario .mh {
    min-height: 700px
}
table {
    text-align: center;
    background-color: #FFFFFF;
}
table.t-fx,
table.t-fx table {
    table-layout: fixed;
}
table td:first-child,
table td.sx {
    text-align: left !important;
    padding: 0.3rem 0.7rem;
}
table.table td:first-child {
    /* padding: 0.5rem 0.5rem; */
    vertical-align: middle;
}
table.table {
    margin-bottom: 0 !important;
}
.table > thead, td {
    vertical-align: middle;
}
#scenario .table > thead, td {
    height: 40px;
}
.form-check {
    padding-left: 45px;
}
.form-check > input, .form-check > label {
    cursor: pointer;
    margin-top: 5px;
}
#risultati table tbody td:not(:first-child) {
    text-align: right;
    /* padding-right:10px; */
}
#risultati table.table td {
    font-size: 90%;
}
table.t-euro tbody td:not(:first-child)::after, span.euro::after {
    content: "€";
    margin-left: 2px;
}
table.t-ore tbody td:not(:first-child)::after, td.t-ore::after {
    content: "h";
    margin-left: 2px;
    font-size: 85%;
}
table.t-ore.t-min tbody td:not(:first-child)::after, td.t-min::after {
    content: "m";
    margin-left: 2px;
    font-size: 85%;
}
.detCosti td {
    height: initial;
}
tr.accordion-toggle td {
    cursor: pointer;
    color: #5eb1bf;
    color: var(--impacta);
    font-weight: bold;
    padding: 0.2rem 0.5rem;
}
tr.accordion-toggle td:hover {
    background-color: #222e502e;
}
tr.accordion-toggle td::before {
    content: "\f285";
    margin-right: 5px;
    font-family: bootstrap-icons !important;
    display: inline-block;
    transform: rotate(90deg);
    transition: .3s ease-in-out;
}
tr.accordion-toggle.collapsed td::before {
    transform: rotate(0deg);
    transition: .3s ease-in-out;
}
.tot {
    font-weight: bold;
}
.tot td {
    background: var(--grigio2);
}
table i:not(.info), h2 > i {
    margin-right: 7px;
    font-size: 130%;
    color: var(--impacta);
    border-radius: 50%;
    vertical-align: middle;
}
h2 > i {
    margin-right: 5px;
    font-size: 100%;
    vertical-align: unset;
}
span.diff {
    padding: 0 4px;
    margin: 2px 5px;
    font-size: 85%;
    background-color: var(--grigio);
    background-color: #fff;
    color: green;
    border-radius: 2px;
    float: left;
}
span.diff.neg {
    color: red;
}
span.diff::after {
    content: "%";
    /*margin-left:2px;*/
}
.dettaglio, tr.dettaglio i {
    background-color: var(--impacta) !important;
    color: #fff;
    /* font-weight: bold; */
}
div.dettaglio {
    border-left: 2px solid var(--impacta);
    border-right: 2px solid var(--impacta);
    padding-bottom: 2px;
}
tr.dettaglio i {
    margin-left: 0;
    font-weight: 100;
}
#graCosti .grafico {
    height: 380px;
    /* margin: 20px 0; */
}
#graTempi .grafico {
    height: 220px;
}
.totArea {
    /* font-weight:normal; */
    font-size: 90%;
}
#pulCumulato {
    padding: 0;
    color: var(--impacta);
    background-color: #ffffff;
    border: 3px solid var(--giallo);
    font-family: 'Funnel Display';
    font-weight: bold;
}
#pulCumulato i {
    margin-right: 10px;
    font-weight: bold;
}
#cumulato {
    text-align: center;
    padding: 7px;
    color: #ffffff;
    background-color: var(--impacta);
    border: 3px solid #ffffff;
    border-radius: 10px;
    box-shadow: inset 0px 0px 10px 0px #00000036;
    cursor: pointer;
}
#cumulato > div,
#pulCumulato > div {
    margin: 10px;
}
#cumulato span {
    font-weight: bold;
    font-size: 1.5em;
    display: inline-block;
    margin-top: 5px;
}
#cumulato.collapsing,
#pulCumulato.collapsing {
    /*transition: none !important;*/
    transition-property: height, visibility;
    transition-duration: 0.15s
}

/* ======= Info-salva-apri =======*/

#navbar .nav-funz {
    cursor: pointer;
    font-size: 125%;
    margin-left: 18px;
    color: var(--impacta);
}

#header #navbar .bi-info-circle {
    margin-left: 48px;
}

#header.header-top #navbar .nav-funz {
    color: unset;
}
i.bi.info {
    cursor: pointer;
    float: right;
    position: relative;
    margin-left: -15px;
}
.infoProspettiva > i.info {
    float: unset;
    margin-left: 10px;
}
td[a=anniDiVita]::after,
td[a=anniDiTrattamento]::after,
.no-euro::after {
    content: "" !important;
    margin: unset !important;
}